Skip to content

Commit 5607c7b

Browse files
committed
add class exits check.
1 parent 75b4505 commit 5607c7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/AuthenticationService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ public function getUnauthenticatedRedirectUrl(ServerRequestInterface $request):
373373
if ($target === null) {
374374
return null;
375375
}
376-
if (is_array($target)) {
376+
if (is_array($target) && class_exists(Router::class)) {
377377
$target = Router::url($target);
378378
}
379379
if ($param === null) {

0 commit comments

Comments
 (0)