mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-08 10:53:13 +02:00
[ticket/16382] Update Twig_Node_Expression_Name
PHPBB3-16382
This commit is contained in:
@ -37,7 +37,7 @@ class defineparser extends \Twig_TokenParser
|
|||||||
$stream->next();
|
$stream->next();
|
||||||
$value = $this->parser->getExpressionParser()->parseExpression();
|
$value = $this->parser->getExpressionParser()->parseExpression();
|
||||||
|
|
||||||
if ($value instanceof \Twig_Node_Expression_Name)
|
if ($value instanceof \Twig\Node\Expression\NameExpression)
|
||||||
{
|
{
|
||||||
// This would happen if someone improperly formed their DEFINE syntax
|
// This would happen if someone improperly formed their DEFINE syntax
|
||||||
// e.g. <!-- DEFINE $VAR = foo -->
|
// e.g. <!-- DEFINE $VAR = foo -->
|
||||||
|
Reference in New Issue
Block a user