From b37ca14cb478a3b8ca55a275be492384d7bc9e8c Mon Sep 17 00:00:00 2001 From: Yurun Date: Fri, 3 Jul 2026 17:17:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(compiler):=20=E4=BF=AE=E5=A4=8D=E5=A4=AA?= =?UTF-8?q?=E7=A9=BA=E8=88=B9=E8=BF=90=E7=AE=97=E7=AC=A6=E5=9C=A8=20Window?= =?UTF-8?q?s=20=E6=97=A0=E6=B3=95=E7=BC=96=E8=AF=91=E9=80=9A=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Php/Parser/BinaryOpTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Php/Parser/BinaryOpTrait.php b/src/Php/Parser/BinaryOpTrait.php index 5637f3b5..41ee0cba 100644 --- a/src/Php/Parser/BinaryOpTrait.php +++ b/src/Php/Parser/BinaryOpTrait.php @@ -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 -- 2.34.1