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();