diff --git a/Library/Statements/Let/ObjectPropertyAppend.php b/Library/Statements/Let/ObjectPropertyAppend.php index a8f75fe386..67b69793cf 100644 --- a/Library/Statements/Let/ObjectPropertyAppend.php +++ b/Library/Statements/Let/ObjectPropertyAppend.php @@ -128,6 +128,7 @@ public function assign($variable, ZephirVariable $symbolVariable, CompiledExpres case 'string': $tempVariable = $compilationContext->symbolTable->getTempNonTrackedVariable('variable', $compilationContext, true); + $tempVariable->initVariant($compilationContext); $compilationContext->backend->assignString($tempVariable, $resolvedExpr->getCode(), $compilationContext); $compilationContext->backend->assignArrayProperty($symbolVariable, $property, null, $tempVariable, $compilationContext); if ($tempVariable->isTemporal()) {