Skip to content

Commit

Permalink
Improve performance
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioribeiro committed Sep 26, 2024
1 parent c13b627 commit 43208dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Support/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ public static function rebuildUrl(array $components): string
}

if (filled($components['query'] ?? null)) {
$query = new Collection($components['query']);
ksort($components['query']);

$url .= '?' . http_build_query($query->sortKeys()->toArray());
$url .= '?' . http_build_query($components['query']);
}

return $url;
Expand Down

0 comments on commit 43208dc

Please sign in to comment.