From 8a3f8feb50cb8192e579d444ed3417e6163b1544 Mon Sep 17 00:00:00 2001 From: Cauan Cabral Date: Sun, 5 Apr 2020 12:04:02 -0300 Subject: [PATCH] Ensure $url['path'] exists before use Fix Psalm 167 error --- src/AuthenticationService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AuthenticationService.php b/src/AuthenticationService.php index 95a57940..5e3a37fb 100644 --- a/src/AuthenticationService.php +++ b/src/AuthenticationService.php @@ -379,6 +379,7 @@ public function getUnauthenticatedRedirectUrl(ServerRequestInterface $request): $url['query'] = $query; } $fragment = isset($url['fragment']) ? '#' . $url['fragment'] : ''; + $url['path'] = $url['path'] ?? '/'; return $url['path'] . '?' . $url['query'] . $fragment; }