Skip to content

Commit 5347fc4

Browse files
committed
Display enum case signature only if there is a value.
1 parent f688959 commit 5347fc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/php_api_ref/.phpdoc/template/components/enum-case.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% embed 'components/content-header.html.twig' with { node: case, anchor: 'enumcase_' ~ case.name, anchor_link: link(case), header_tag: 'h3' } %}
33
{% endembed %}
44
{% include 'components/summary.html.twig' with { node: case } %}
5-
{% include 'components/enum-case-signature.html.twig' with { node: case } %}
5+
{% if case.value %}{% include 'components/enum-case-signature.html.twig' with { node: case } %}{% endif %}
66
{% include 'components/deprecation.html.twig' with { node: case } %}
77
{% include 'components/description.html.twig' with { node: case } %}
88
{% include 'components/description.html.twig' with { node: case.var[0] } %}

0 commit comments

Comments
 (0)