diff --git a/src/ExpressionParser.php b/src/ExpressionParser.php index 8b3f6de79..bfe052cf7 100644 --- a/src/ExpressionParser.php +++ b/src/ExpressionParser.php @@ -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()); }