mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-04 22:47:21 +00:00
minor #4455 Simplify enum usage in docs (ruudk)
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Simplify enum usage in docs
There is no need to use `()`.
Commits
-------
7556fe1c6f Simplify enum usage in docs
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
{{ enum('App\\MyEnum').SomeCase.value }}
|
||||
|
||||
{# get all cases of an enum #}
|
||||
{% enum('App\\MyEnum').cases() %}
|
||||
{% enum('App\\MyEnum').cases %}
|
||||
|
||||
{# call any methods of the enum class #}
|
||||
{% enum('App\\MyEnum').someMethod() %}
|
||||
|
||||
Reference in New Issue
Block a user