mirror of
https://github.com/danog/phpdoc-parser.git
synced 2025-01-22 13:51:20 +01:00
explicit null check
This commit is contained in:
parent
15677da35a
commit
cbcf081a8c
@ -26,7 +26,7 @@ class TemplateTagValueNode implements PhpDocTagValueNode
|
||||
|
||||
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}");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user