Skip to content

Commit

Permalink
array_merge params
Browse files Browse the repository at this point in the history
  • Loading branch information
deluxetom committed Dec 17, 2024
1 parent aeba2c1 commit a5172d1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Api/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ public function setApiParams(): array
$this->apiParams = self::GLOBAL_API_PARAMS;

foreach ($this->manipulators as $manipulator) {
foreach ($manipulator->getApiParams() as $param) {
$this->apiParams[] = $param;
}
$this->apiParams = array_merge($this->apiParams, $manipulator->getApiParams());
}

return $this->apiParams = array_values(array_unique($this->apiParams));
Expand Down

0 comments on commit a5172d1

Please sign in to comment.