From cd3657ec05af51b9d5cd650cf71079fd912e846f Mon Sep 17 00:00:00 2001 From: rango Date: Fri, 8 May 2026 15:05:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=BD=E5=90=8D=E5=8F=82=E6=95=B0=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E5=AE=8C=E6=88=90=E5=90=8E=EF=BC=8C=E5=BF=AB=E9=80=9F?= =?UTF-8?q?=E9=94=80=E6=AF=81=E4=B8=B4=E6=97=B6=E6=95=B0=E7=BB=84=EF=BC=8C?= =?UTF-8?q?=E5=87=8F=E5=B0=91=E5=86=85=E5=AD=98=E5=8D=A0=E7=94=A8=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Php/CompilerBase.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Php/CompilerBase.php b/src/Php/CompilerBase.php index 7d12efff..05b0eebc 100644 --- a/src/Php/CompilerBase.php +++ b/src/Php/CompilerBase.php @@ -3106,8 +3106,9 @@ class CompilerBase extends \PhpAot\Core\Translator $array .= $tmpVar . '.set(' . $this->getLiteralString($k) . ', ' . $v . ');' . PHP_EOL; } $this->context->beforeStmtLines[] = $array; + $this->context->afterStmtLines[] = $tmpVar . '.unset();'; - return '{' . implode(', ', $listArgs) . '}, ' . $tmpVar . '.array()'; + return Symbol::argList() . '{' . implode(', ', $listArgs) . '}, ' . $tmpVar . '.array()'; } protected function parseCallArgs(array $args, string $funcName = '', string $className = ''): string