#6068 simplified variable docblock codegen for nullable instance properties
This commit is contained in:
parent
3341781f52
commit
1d2baedfd5
@ -1627,7 +1627,9 @@ public function __construct(<params>)
|
||||
{
|
||||
$lines = array();
|
||||
$lines[] = $this->spaces . '/**';
|
||||
$lines[] = $this->spaces . ' * @var ' . $this->getType($fieldMapping['type']) . ($this->getNullableField($fieldMapping) ? '|' . $this->getNullableField($fieldMapping) : '');
|
||||
$lines[] = $this->spaces . ' * @var '
|
||||
. $this->getType($fieldMapping['type'])
|
||||
. ($this->getNullableField($fieldMapping) ? '|null' : '');
|
||||
|
||||
if ($this->generateAnnotations) {
|
||||
$lines[] = $this->spaces . ' *';
|
||||
|
Loading…
x
Reference in New Issue
Block a user