Skip to content

Commit

Permalink
Merge pull request #478 from Afnisse/PHP8-FIX-BREAKING-CHANGES
Browse files Browse the repository at this point in the history
Fix PHP 8 introduced breaking change to call_user_func_array()
  • Loading branch information
yoshdog authored Jan 5, 2022
2 parents 5e1146f + e12de3f commit c4e499e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Zendesk/API/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ public function getSideload(array $params = [])

if (! empty($sideloads = array_intersect_key($params, array_flip($sideloadKeys)))) {
// Merge to a single array
return call_user_func_array('array_merge', $sideloads);
return call_user_func_array('array_merge', array_values($sideloads));
} else {
return $this->sideload;
}
Expand Down

0 comments on commit c4e499e

Please sign in to comment.