From 49368f4f50e63c543511bad983e7bcef038e9794 Mon Sep 17 00:00:00 2001 From: Maarten Buis Date: Mon, 27 Jun 2022 22:42:12 +0200 Subject: [PATCH] explode(): Passing null to parameter #2 ($string) of type string is deprecated (#42980) --- src/Illuminate/Routing/UrlGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Routing/UrlGenerator.php b/src/Illuminate/Routing/UrlGenerator.php index 5478fbf004a4..2220f82c6f8f 100755 --- a/src/Illuminate/Routing/UrlGenerator.php +++ b/src/Illuminate/Routing/UrlGenerator.php @@ -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('&');