mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/16382] Update Twig_Node_Expression_Name
PHPBB3-16382
This commit is contained in:
parent
3b1f936dcf
commit
dbb9cbe280
1 changed files with 1 additions and 1 deletions
|
@ -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 -->
|
||||||
|
|
Loading…
Add table
Reference in a new issue