Skip to content

Commit

Permalink
Merge pull request #168 from spryker-sdk/bugfix/SDK-5671
Browse files Browse the repository at this point in the history
SDK-5671: Use array_merge instead of array unpacking
  • Loading branch information
pavelmaksimov25 committed Dec 12, 2023
2 parents 9597d9b + 06e51ca commit 6396b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builder/Extractor/ExpressionExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6396b56

Please sign in to comment.