mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
removed dead code
This commit is contained in:
@@ -194,8 +194,6 @@ class ExpressionParser
|
||||
break;
|
||||
} elseif (isset($this->unaryOperators[$token->getValue()])) {
|
||||
$class = $this->unaryOperators[$token->getValue()]['class'];
|
||||
|
||||
$ref = new \ReflectionClass($class);
|
||||
if (!\in_array($class, [NegUnary::class, PosUnary::class])) {
|
||||
throw new SyntaxError(sprintf('Unexpected unary operator "%s".', $token->getValue()), $token->getLine(), $this->parser->getStream()->getSourceContext());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user