Skip to content

Commit 985b2cf

Browse files
authored
Fix ThrottleRequestsException (#39951)
1 parent 8bbe427 commit 985b2cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Http/Exceptions/ThrottleRequestsException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ class ThrottleRequestsException extends TooManyRequestsHttpException
1010
/**
1111
* Create a new throttle requests exception instance.
1212
*
13-
* @param string|null $message
13+
* @param string $message
1414
* @param \Throwable|null $previous
1515
* @param array $headers
1616
* @param int $code
1717
* @return void
1818
*/
19-
public function __construct($message = null, Throwable $previous = null, array $headers = [], $code = 0)
19+
public function __construct($message = '', Throwable $previous = null, array $headers = [], $code = 0)
2020
{
2121
parent::__construct(null, $message, $previous, $code, $headers);
2222
}

0 commit comments

Comments
 (0)