@@ -448,7 +448,7 @@ |
||
448 | 448 | */ |
449 | 449 | protected function getStructAttributeTypeGetAnnotation(StructAttributeModel $attribute = null) { |
450 | 450 | $attribute = $this->getStructAttribute($attribute); |
451 | - return sprintf('%s%s%s', $this->getStructAttributeType($attribute, true), $attribute->isArray() ? '[]' : '', $attribute->isRequired() ? '': '|null'); |
|
451 | + return sprintf('%s%s%s', $this->getStructAttributeType($attribute, true), $attribute->isArray() ? '[]' : '', $attribute->isRequired() ? '' : '|null'); |
|
452 | 452 | } |
453 | 453 | /** |
454 | 454 | * @param StructAttributeModel $attribute |