Skip to content

Commit 3a40c4b

Browse files
authored
Merge pull request #17 from anhofmann/patch-1
deal with empty result
2 parents 716335c + 40b9a93 commit 3a40c4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UrlGeneratorService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ private function addSid(string $url, ?\Illuminate\Routing\Route $route = null):
1414
}
1515

1616
// Get the current query string and parameters
17-
$queryString = parse_url($url, PHP_URL_QUERY);
17+
$queryString = parse_url($url, PHP_URL_QUERY) ?? '';
1818
parse_str($queryString, $queryParameters);
1919

2020
// Add the session to the query string if needed

0 commit comments

Comments
 (0)