From 646c0106ad4fac48c8e2086f7304227c0235d2ae Mon Sep 17 00:00:00 2001 From: Denis Zunke Date: Thu, 3 Apr 2025 07:21:39 +0200 Subject: [PATCH] Make constructor argument explicit nullable --- src/MySQLReplication/MySQLReplicationFactory.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/MySQLReplication/MySQLReplicationFactory.php b/src/MySQLReplication/MySQLReplicationFactory.php index 59e9604..9a692e6 100644 --- a/src/MySQLReplication/MySQLReplicationFactory.php +++ b/src/MySQLReplication/MySQLReplicationFactory.php @@ -33,11 +33,11 @@ class MySQLReplicationFactory public function __construct( Config $config, - RepositoryInterface $repository = null, - CacheInterface $cache = null, - EventDispatcherInterface $eventDispatcher = null, - SocketInterface $socket = null, - LoggerInterface $logger = null + ?RepositoryInterface $repository = null, + ?CacheInterface $cache = null, + ?EventDispatcherInterface $eventDispatcher = null, + ?SocketInterface $socket = null, + ?LoggerInterface $logger = null ) { $config->validate();