explicit null check

This commit is contained in:
Max Loeb 2019-10-22 07:09:57 -07:00 committed by Ondřej Mirtes
parent 15677da35a
commit cbcf081a8c

View File

@ -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}");
}