Skip to content

Commit 7a672e8

Browse files
committed
bug symfony#58823 [TwigBridge] Fix emojify as function in Undefined Handler (smnandre)
This PR was merged into the 7.1 branch. Discussion ---------- [TwigBridge] Fix emojify as function in Undefined Handler | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #... | License | MIT Bug is a strong word here, but `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 Commits ------- cc93622 [TwigBridge] Fix emojify as function in Undefined Handler
2 parents ffd60b6 + cc93622 commit 7a672e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/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)