fixed generic tag to parse description with 0 as expected

This commit is contained in:
Michael Knappe
2019-04-30 13:21:57 +02:00
parent 90ae750874
commit 095cf6d37a
+1 -1
View File
@@ -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);
} }