You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no replacement. This function is an implementation detail of the empty test, that's why the new CodeExtension::testEmpty() is flagged as @internal and should not be used. It can be modified or removed in any minor version.
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected
5.4.31, 6.4.0, 7.0.0, 7.1
Description
The
twig_*
global functions are deprecated in Twig 3.9 twigphp/Twig#3883, and removed in Twig 4.0 twigphp/Twig#3937The function
twig_test_empty
is used inSymfony\Bridge\Twig\Node\SearchAndRenderBlockNode
:symfony/src/Symfony/Bridge/Twig/Node/SearchAndRenderBlockNode.php
Line 53 in 228a275
symfony/src/Symfony/Bridge/Twig/Node/SearchAndRenderBlockNode.php
Line 100 in 228a275
How to reproduce
Go to
https://localhost:8000/fr/admin/post/1/edit
Deprecation message:
Possible Solution
Duplicate the function as a static method in
SearchAndRenderBlockNode
.Additional Context
No response
The text was updated successfully, but these errors were encountered: