Skip to content
Prev Previous commit
Next Next commit
fix unrelated phpstan error
  • Loading branch information
shmax committed Oct 22, 2019
commit e6ec02660f995ab1adb0c8ed50a189eeedbcb2e5
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 = $this->bound ? " of {$this->bound}" : '';
$bound = isset($this->bound) ? " of {$this->bound}" : '';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be $this->bound !== null

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 7e0ad3a

return trim("{$this->name}{$bound} {$this->description}");
}

Expand Down