Skip to content

Commit 535ab0b

Browse files
committed
[TwigBridge] Fix emojify as function in Undefined Handler
`emojify` was registered as a function in UndefinedCallableHandler, instead of a filter. * https://symfony.com/doc/current/reference/twig_reference.html#emojify * https://twig.symfony.com/doc/3.x/#symfony-filters
1 parent 91c6794 commit 535ab0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UndefinedCallableHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
class UndefinedCallableHandler
2424
{
2525
private const FILTER_COMPONENTS = [
26+
'emojify' => 'emoji',
2627
'humanize' => 'form',
2728
'form_encode_currency' => 'form',
2829
'serialize' => 'serializer',
@@ -37,7 +38,6 @@ class UndefinedCallableHandler
3738
'asset_version' => 'asset',
3839
'importmap' => 'asset-mapper',
3940
'dump' => 'debug-bundle',
40-
'emojify' => 'emoji',
4141
'encore_entry_link_tags' => 'webpack-encore-bundle',
4242
'encore_entry_script_tags' => 'webpack-encore-bundle',
4343
'expression' => 'expression-language',

0 commit comments

Comments
 (0)