This is the list of deprecations I get when building the cache on a project using
sylius/twig-extra 0.9.1 Additional Twig extensions for your Symfony projects
sylius/twig-hooks 0.9.1 Composable Twig layouts
- Since twig/twig 3.21: Method "Twig\Parser::getExpressionParser()" is deprecated, use "parseExpression()" instead.
- Since twig/twig 3.21: Class "Twig\ExpressionParser" is deprecated, use "Parser::parseExpression()" instead.
- Since twig/twig 3.21: The "Twig\ExpressionParser::parseExpression()" method is deprecated, use "Parser::parseExpression()" instead
These all relate to HookTokenParser.php Line 29
|
$hooksNames = $this->parser->getExpressionParser()->parseExpression(); |
- Since twig/twig 3.21: The "Twig\ExpressionParser::parseMultitargetExpression()" method is deprecated.
|
$hookContext = $this->parser->getExpressionParser()->parseMultitargetExpression(); |
- Since twig/twig 3.12: The "tag" constructor argument of the "Sylius\TwigHooks\Twig\Node\HookNode" class is deprecated and ignored (check which TokenParser class set it to "hook"), the tag is now automatically set by the Parser when needed.
|
parent::__construct( |
|
[ |
|
'name' => $name, |
|
'hook_level_context' => $context ?? new ArrayExpression([], $lineno), |
|
], |
|
[ |
|
'only' => $only, |
|
], |
|
$lineno, |
|
$tag, |
|
); |
- Since twig/twig 3.9: Twig node "Sylius\TwigHooks\Twig\Node\HookNode" is not marked as ready for using "yield" instead of "echo"; please make it ready and then flag it with the #[\Twig\Attribute\YieldReady] attribute.
This is the list of deprecations I get when building the cache on a project using
These all relate to HookTokenParser.php Line 29
Stack/src/TwigHooks/src/Twig/TokenParser/HookTokenParser.php
Line 29 in baf5558
Stack/src/TwigHooks/src/Twig/TokenParser/HookTokenParser.php
Line 33 in baf5558
Stack/src/TwigHooks/src/Twig/Node/HookNode.php
Lines 30 to 40 in baf5558