1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 22:28:46 +01:00

Merge pull request #6302 from 3D-I/ticket/16885

[ticket/16885] Add type casting filters to Twig
This commit is contained in:
Marc Alexander 2021-10-17 20:32:49 +02:00
commit 01a22e7223
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -79,6 +79,8 @@ class extension extends \Twig\Extension\AbstractExtension
new \Twig\TwigFilter('subset', array($this, 'loop_subset'), array('needs_environment' => true)),
// @deprecated 3.2.0 Uses twig's JS escape method instead of addslashes
new \Twig\TwigFilter('addslashes', 'addslashes'),
new \Twig\TwigFilter('int', 'intval'),
new \Twig\TwigFilter('float', 'floatval'),
);
}