Skip to content

Commit

Permalink
explicit null check
Browse files Browse the repository at this point in the history
  • Loading branch information
shmax committed Oct 22, 2019
1 parent e6ec026 commit 7e0ad3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ast/PhpDoc/TemplateTagValueNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(string $name, ?TypeNode $bound, string $description)

public function __toString(): string
{
$bound = isset($this->bound) ? " of {$this->bound}" : '';
$bound = $this->bound !== null ? " of {$this->bound}" : '';
return trim("{$this->name}{$bound} {$this->description}");
}

Expand Down

0 comments on commit 7e0ad3a

Please sign in to comment.