Skip to content

Commit

Permalink
SDK-5671: Use array_merge instead of array unpacking
Browse files Browse the repository at this point in the history
  • Loading branch information
DmytroKlymanSpryker committed Dec 12, 2023
1 parent 9597d9b commit 06e51ca
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()));

Check warning on line 69 in src/Builder/Extractor/ExpressionExtractor.php

View check run for this annotation

Codecov / codecov/patch

src/Builder/Extractor/ExpressionExtractor.php#L69

Added line #L69 was not covered by tests
} catch (ValueExtractorException $exception) {
continue;
}
Expand Down

0 comments on commit 06e51ca

Please sign in to comment.