|
|
|
|
@ -465,7 +465,7 @@ trait BinaryOpTrait |
|
|
|
|
protected function parseBinaryOpSpaceship(Expr\BinaryOp\Spaceship $expr): string |
|
|
|
|
{ |
|
|
|
|
return $this->genBigNumericCmp($expr) |
|
|
|
|
?? 'php::compare(' . $this->parseOrderedOperand($expr->left, false) . ', ' . $this->parseOrderedOperand($expr->right, false) . ')'; |
|
|
|
|
?? '(php::Int) php::compare(' . $this->parseOrderedOperand($expr->left, false) . ', ' . $this->parseOrderedOperand($expr->right, false) . ')'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected function genBigNumericCmp(Expr\BinaryOp $expr, string $suffix = ''): ?string |
|
|
|
|
|