We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 911b608 + ea4074d commit 9c9bee0Copy full SHA for 9c9bee0
src/Resolver/NodeExpressionResolver.php
@@ -589,6 +589,16 @@ protected function resolveExprBinaryOpLogicalXor(Expr\BinaryOp\LogicalXor $node)
589
return $this->resolve($node->left) xor $this->resolve($node->right);
590
}
591
592
+ protected function resolveExprUnaryMinus(Expr\UnaryMinus $node): int|float
593
+ {
594
+ return -$this->resolve($node->expr);
595
+ }
596
+
597
+ protected function resolveExprUnaryPlus(Expr\UnaryPlus $node): int|float
598
599
+ return $this->resolve($node->expr);
600
601
602
private function getDispatchMethodFor(Node $node): string
603
{
604
$nodeType = $node->getType();
0 commit comments