Skip to content

Commit 095cf6d

Browse files
author
Michael Knappe
committed
fixed generic tag to parse description with 0 as expected
1 parent 90ae750 commit 095cf6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DocBlock/Tags/Generic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function create(
5353
Assert::stringNotEmpty($name);
5454
Assert::notNull($descriptionFactory);
5555

56-
$description = $descriptionFactory && $body ? $descriptionFactory->create($body, $context) : null;
56+
$description = $descriptionFactory && $body !== "" ? $descriptionFactory->create($body, $context) : null;
5757

5858
return new static($name, $description);
5959
}

0 commit comments

Comments
 (0)