removed dead code

This commit is contained in:
Fabien Potencier
2019-04-23 18:36:23 +02:00
parent 592ab0376e
commit 73f5b8115b
-2
View File
@@ -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());
}