From ffa3158418373b4bf6a6475236ebc213a4348836 Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Thu, 31 Oct 2024 10:02:22 +0100 Subject: [PATCH 1/2] Add 8.1 - 8.4 to matrix --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e4d0050..4eb5937 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['7.1', '7.2', '7.3', '7.4', '8.0'] + php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] steps: - name: Checkout code From 960054fc207e22cd09ee134a8edaa1d1f8902128 Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Thu, 31 Oct 2024 10:03:25 +0100 Subject: [PATCH 2/2] Make compatible with PHP 8.4 > Http\Client\Common\Plugin\LoggerPlugin::__construct(): Implicitly marking parameter $formatter as nullable is deprecated, the explicit nullable type must be used instead --- src/LoggerPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LoggerPlugin.php b/src/LoggerPlugin.php index ce0b67a..0ef7be9 100644 --- a/src/LoggerPlugin.php +++ b/src/LoggerPlugin.php @@ -23,7 +23,7 @@ final class LoggerPlugin implements Plugin private $formatter; - public function __construct(LoggerInterface $logger, Formatter $formatter = null) + public function __construct(LoggerInterface $logger, ?Formatter $formatter = null) { $this->logger = $logger; $this->formatter = $formatter ?: new SimpleFormatter();