mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
9 lines
288 B
Plaintext
9 lines
288 B
Plaintext
--TEST--
|
|
Twig supports the "matches" operator with a great error message
|
|
--TEMPLATE--
|
|
{{ 'foo' matches 1 + 2 }}
|
|
--DATA--
|
|
return []
|
|
--EXCEPTION--
|
|
Twig\Error\RuntimeError: Regexp "3" passed to "matches" is not valid: Delimiter must not be alphanumeric%sbackslash%sin "index.twig" at line 2
|