Skip to content

Commit

Permalink
Add compatibility for order filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasglachant committed May 10, 2019
1 parent 0e8fdf6 commit 87a36c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ClientHydra/Utils/IriConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ private function formatFilters(array $filters = []): string
foreach ($filter as $arrayVal) {
$response .= \sprintf('%s[]=%s&', $key, $arrayVal);
}
} elseif (null === $filter) {
$response .= \sprintf("%s&", $key);
} else {
$response .= \sprintf('%s=%s&', $key, $filter);
}
Expand Down

0 comments on commit 87a36c2

Please sign in to comment.