From 5f3f092d7d8151dd3f5a738dc41f94d42533aef8 Mon Sep 17 00:00:00 2001 From: Baptiste <65629571+BaptisteChabrol@users.noreply.github.com> Date: Mon, 30 Dec 2024 15:58:07 +0100 Subject: [PATCH] Update enum.rst --- doc/functions/enum.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/functions/enum.rst b/doc/functions/enum.rst index 66e2c9dba4..0823679e88 100644 --- a/doc/functions/enum.rst +++ b/doc/functions/enum.rst @@ -13,10 +13,10 @@ {{ 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() %} + {{ enum('App\\MyEnum').someMethod() }} When using a string literal for the ``enum`` argument, it will be validated during compile time to be a valid enum name.