Skip to content

Commit

Permalink
#6068 simplified variable docblock codegen for nullable instance prop…
Browse files Browse the repository at this point in the history
…erties
  • Loading branch information
Ocramius committed Nov 26, 2016
1 parent 3341781 commit 1d2baed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Doctrine/ORM/Tools/EntityGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -1627,7 +1627,9 @@ protected function generateFieldMappingPropertyDocBlock(array $fieldMapping, Cla
{
$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 . ' *';
Expand Down

0 comments on commit 1d2baed

Please sign in to comment.