Skip to content

Commit b4a3683

Browse files
committed
PHP84: strpos(): Passing null to parameter laravel#1 ($haystack) of type string is deprecated
1 parent 0fc5528 commit b4a3683

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Illuminate/Routing/UrlGenerator.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,10 @@ public function formatParameters($parameters)
608608
*/
609609
protected function extractQueryString($path)
610610
{
611-
if (($queryPosition = strpos($path, '?')) !== false) {
611+
if (
612+
$path !== null
613+
&& ($queryPosition = strpos($path, '?')) !== false
614+
) {
612615
return [
613616
substr($path, 0, $queryPosition),
614617
substr($path, $queryPosition),

0 commit comments

Comments
 (0)