Skip to content

Commit ace259a

Browse files
Michael Knappejaapio
Michael Knappe
authored andcommitted
fixed generic tag to parse description with 0 as expected
1 parent 94fd000 commit ace259a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DocBlock/Tags/Generic.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static function create(
5757
Assert::stringNotEmpty($name);
5858
Assert::notNull($descriptionFactory);
5959

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

6262
return new static($name, $description);
6363
}

0 commit comments

Comments
 (0)