Skip to content

Commit 8a251b5

Browse files
authored
Make constructor argument explicit nullable (#134)
1 parent a7f7f00 commit 8a251b5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/MySQLReplication/MySQLReplicationFactory.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ class MySQLReplicationFactory
3333

3434
public function __construct(
3535
Config $config,
36-
RepositoryInterface $repository = null,
37-
CacheInterface $cache = null,
38-
EventDispatcherInterface $eventDispatcher = null,
39-
SocketInterface $socket = null,
40-
LoggerInterface $logger = null
36+
?RepositoryInterface $repository = null,
37+
?CacheInterface $cache = null,
38+
?EventDispatcherInterface $eventDispatcher = null,
39+
?SocketInterface $socket = null,
40+
?LoggerInterface $logger = null
4141
) {
4242
$config->validate();
4343

0 commit comments

Comments
 (0)