From 15514ea1078ba6837ce3eb1866b2dc611823dca9 Mon Sep 17 00:00:00 2001 From: Alessandro Lai Date: Tue, 19 Nov 2024 23:15:22 +0100 Subject: [PATCH] Fix PHP 8.4 deprecations --- src/Command/AbstractCommand.php | 2 +- src/Models/ClientConfiguration.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Command/AbstractCommand.php b/src/Command/AbstractCommand.php index 4314534..54259f4 100644 --- a/src/Command/AbstractCommand.php +++ b/src/Command/AbstractCommand.php @@ -28,7 +28,7 @@ abstract class AbstractCommand extends Command /** * AbstractCommand constructor. */ - public function __construct(ContainerInterface $container, string $name = null) + public function __construct(ContainerInterface $container, ?string $name = null) { parent::__construct($name); $this->container = $container; diff --git a/src/Models/ClientConfiguration.php b/src/Models/ClientConfiguration.php index 1c694b6..0e6c7ff 100644 --- a/src/Models/ClientConfiguration.php +++ b/src/Models/ClientConfiguration.php @@ -27,7 +27,7 @@ public function __construct( string $uri, string $username = '', string $password = '', - string $authSource = null, + ?string $authSource = null, array $options = [], array $driverOptions = [] ) {