From 029dda0b43d45a259b41c396ca03deafef348cf8 Mon Sep 17 00:00:00 2001 From: ADmad Date: Thu, 25 Jul 2024 19:56:39 +0530 Subject: [PATCH] Fix deprecation notice on PHP 8.4 (#12046) PHP 8.4 requires nullable arguments to be explicitly declared as such. --- src/Composer/Downloader/TransportException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Downloader/TransportException.php b/src/Composer/Downloader/TransportException.php index 5ab5ca6f3..a30842e1e 100644 --- a/src/Composer/Downloader/TransportException.php +++ b/src/Composer/Downloader/TransportException.php @@ -26,7 +26,7 @@ class TransportException extends \RuntimeException /** @var array */ 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); }