mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
fixed generic tag to parse description with 0 as expected
This commit is contained in:
@@ -53,7 +53,7 @@ class Generic extends BaseTag implements Factory\StaticMethod
|
|||||||
Assert::stringNotEmpty($name);
|
Assert::stringNotEmpty($name);
|
||||||
Assert::notNull($descriptionFactory);
|
Assert::notNull($descriptionFactory);
|
||||||
|
|
||||||
$description = $descriptionFactory && $body ? $descriptionFactory->create($body, $context) : null;
|
$description = $descriptionFactory && $body !== "" ? $descriptionFactory->create($body, $context) : null;
|
||||||
|
|
||||||
return new static($name, $description);
|
return new static($name, $description);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user