1
0
mirror of synced 2025-02-13 10:49:25 +03:00

#6068 simplified variable docblock codegen for nullable instance properties

This commit is contained in:
Marco Pivetta 2016-11-26 06:22:25 +01:00
parent 3341781f52
commit 1d2baedfd5

View File

@ -1627,7 +1627,9 @@ public function __construct(<params>)
{ {
$lines = array(); $lines = array();
$lines[] = $this->spaces . '/**'; $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) { if ($this->generateAnnotations) {
$lines[] = $this->spaces . ' *'; $lines[] = $this->spaces . ' *';