Skip to content

Commit 7e0ad3a

Browse files
committed
explicit null check
1 parent e6ec026 commit 7e0ad3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ast/PhpDoc/TemplateTagValueNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(string $name, ?TypeNode $bound, string $description)
2626

2727
public function __toString(): string
2828
{
29-
$bound = isset($this->bound) ? " of {$this->bound}" : '';
29+
$bound = $this->bound !== null ? " of {$this->bound}" : '';
3030
return trim("{$this->name}{$bound} {$this->description}");
3131
}
3232

0 commit comments

Comments
 (0)