From 07996360829cb1ba27e31aba990e5a5c1078e422 Mon Sep 17 00:00:00 2001 From: matyhtf Date: Tue, 25 Feb 2025 15:45:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AB=E5=B0=BE=E6=B7=BB=E5=8A=A0=E5=88=86?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Python/Translator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Python/Translator.php b/src/Python/Translator.php index 4ffba73e..4e78d25d 100644 --- a/src/Python/Translator.php +++ b/src/Python/Translator.php @@ -679,9 +679,9 @@ class Translator extends \PhpAot\Core\Translator $right = $this->parseValue($value->value); $op_str = $this->parseOp($op); if ($op_str) { - return $left . ' ' . $op_str . '= ' . $right; + return $left . ' ' . $op_str . '= ' . $right . ';'; } else { - return $left .' = $operator->' . strtolower($op) . '(' . $left . ' , ' . $right . ')'; + return $left . ' = $operator->' . strtolower($op) . '(' . $left . ' , ' . $right . ');'; } }