Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cbcf081

Browse files
shmaxondrejmirtes
authored andcommitted
explicit null check
1 parent 15677da commit cbcf081

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)

AltStyle によって変換されたページ (->オリジナル) /