@@ -462,7 +462,7 @@ |
||
462 | 462 | protected function getStructAttributeTypeGetAnnotation(StructAttributeModel $attribute = null, $returnArrayType = true) |
463 | 463 | { |
464 | 464 | $attribute = $this->getStructAttribute($attribute); |
465 | - return sprintf('%s%s%s', $this->getStructAttributeType($attribute, true), $this->useBrackets($attribute, $returnArrayType) ? '[]' : '', $attribute->isRequired() ? '': '|null'); |
|
465 | + return sprintf('%s%s%s', $this->getStructAttributeType($attribute, true), $this->useBrackets($attribute, $returnArrayType) ? '[]' : '', $attribute->isRequired() ? '' : '|null'); |
|
466 | 466 | } |
467 | 467 | /** |
468 | 468 | * @param StructAttributeModel $attribute |