From 15677da35a23f752819d52a2cbf9301428e278bd Mon Sep 17 00:00:00 2001 From: Max Loeb Date: Mon, 21 Oct 2019 22:03:52 -0700 Subject: [PATCH] fix unrelated phpstan error --- src/Ast/PhpDoc/TemplateTagValueNode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ast/PhpDoc/TemplateTagValueNode.php b/src/Ast/PhpDoc/TemplateTagValueNode.php index 4c82ba7..dd59b90 100644 --- a/src/Ast/PhpDoc/TemplateTagValueNode.php +++ b/src/Ast/PhpDoc/TemplateTagValueNode.php @@ -26,7 +26,7 @@ class TemplateTagValueNode implements PhpDocTagValueNode public function __toString(): string { - $bound = $this->bound ? " of {$this->bound}" : ''; + $bound = isset($this->bound) ? " of {$this->bound}" : ''; return trim("{$this->name}{$bound} {$this->description}"); }