Simplify enum usage in docs

This commit is contained in:
Ruud Kamphuis
2024-11-20 09:46:14 +01:00
committed by Fabien Potencier
parent 709fc6abce
commit 7556fe1c6f
+1 -1
View File
@@ -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() %}