mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-05 02:25:02 +00:00
11 lines
309 B
Plaintext
11 lines
309 B
Plaintext
--TEST--
|
|
"format_list" filter
|
|
--CONDITION--
|
|
PHP_VERSION_ID < 80500
|
|
--TEMPLATE--
|
|
{{ ['Alice', 'Bob', 'Carol']|format_list() }}
|
|
--DATA--
|
|
return []
|
|
--EXCEPTION--
|
|
Twig\Error\RuntimeError: The "format_list" filter requires the "IntlListFormatter" class, which is available since PHP 8.5 in "index.twig" at line 2.
|