diff --git a/src/Builder/Extractor/ExpressionExtractor.php b/src/Builder/Extractor/ExpressionExtractor.php index bd2aed37..ba555447 100644 --- a/src/Builder/Extractor/ExpressionExtractor.php +++ b/src/Builder/Extractor/ExpressionExtractor.php @@ -66,7 +66,7 @@ public function extractExpressions(array $syntaxTree): array continue; } - $expressions[$key] = [...$expressions[$key], ...$this->getValue($chainAssignValue->getValue())]; + $expressions[$key] = array_merge($expressions[$key], $this->getValue($chainAssignValue->getValue())); } catch (ValueExtractorException $exception) { continue; }