- 移除无效的 offsetSet 方法调用 - 解决字符串无法使用 [] 操作符的问题
@ -1086,7 +1086,6 @@ class CompilerBase extends \PhpAot\Core\Translator
if ($left->dim === null) {
$this->fatalError($left, 'Cannot use [] for strings');
}
return $tmp . '.offsetSet(' . $this->parseExpr($left->dim) . ', ' . $this->convertExprType($expr, $this->detectExprType($left), $this->detectExprType($right)) . ')';