Files
2024-09-27 08:23:21 +02:00

11 lines
363 B
Plaintext

--TEST--
"enum" function with invalid enum class
--CONDITION--
\PHP_VERSION_ID >= 80100
--TEMPLATE--
{% for c in enum('Twig\\Tests\\NonExistentEnum').cases() %}
{{~ c.name }}
{% endfor %}
--EXCEPTION--
Twig\Error\SyntaxError: The first argument of the "enum" function must be the name of an enum, "Twig\Tests\NonExistentEnum" given in "index.twig" at line 2.