Skip to content

Commit 840e026

Browse files
MithrandirDKthilanga
authored andcommitted
Set challenge on UnauthorizedHttpException (dingo#1526)
the first parameter of Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException can not be null in Symfony 4.
1 parent 5fa3c34 commit 840e026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Auth/Auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected function throwUnauthorizedException(array $exceptionStack)
110110
$exception = array_shift($exceptionStack);
111111

112112
if ($exception === null) {
113-
$exception = new UnauthorizedHttpException(null, 'Failed to authenticate because of bad credentials or an invalid authorization header.');
113+
$exception = new UnauthorizedHttpException('dingo', 'Failed to authenticate because of bad credentials or an invalid authorization header.');
114114
}
115115

116116
throw $exception;

0 commit comments

Comments
 (0)