Skip to content

Commit

Permalink
explode(): Passing null to parameter #2 ($string) of type string is d…
Browse files Browse the repository at this point in the history
…eprecated (#42980)
  • Loading branch information
buismaarten authored Jun 27, 2022
1 parent 3b3a568 commit 49368f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/UrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ public function hasCorrectSignature(Request $request, $absolute = true, array $i

$url = $absolute ? $request->url() : '/'.$request->path();

$queryString = collect(explode('&', $request->server->get('QUERY_STRING')))
$queryString = collect(explode('&', (string) $request->server->get('QUERY_STRING')))
->reject(fn ($parameter) => in_array(Str::before($parameter, '='), $ignoreQuery))
->join('&');

Expand Down

0 comments on commit 49368f4

Please sign in to comment.