mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 12:26:30 +00:00
Restore unused var
This commit is contained in:
@@ -300,7 +300,7 @@ class Twig_ExpressionParser
|
|||||||
{
|
{
|
||||||
switch ($name) {
|
switch ($name) {
|
||||||
case 'parent':
|
case 'parent':
|
||||||
$this->parseArguments();
|
$args = $this->parseArguments();
|
||||||
if (!count($this->parser->getBlockStack())) {
|
if (!count($this->parser->getBlockStack())) {
|
||||||
throw new Twig_Error_Syntax('Calling "parent" outside a block is forbidden', $line, $this->parser->getFilename());
|
throw new Twig_Error_Syntax('Calling "parent" outside a block is forbidden', $line, $this->parser->getFilename());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user