1
0
Fork 0

Fix deprecation notice on PHP 8.4 (#12046)

PHP 8.4 requires nullable arguments to be explicitly declared as such.
pull/11995/head
ADmad 2024-07-25 19:56:39 +05:30 committed by GitHub
parent db869409e1
commit 029dda0b43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class TransportException extends \RuntimeException
/** @var array<mixed> */
protected $responseInfo = [];
public function __construct(string $message = "", int $code = 400, \Throwable $previous = null)
public function __construct(string $message = "", int $code = 400, ?\Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}