Skip to content

Commit 752c0bf

Browse files
committed
Don't allow null for loop
1 parent a0515e8 commit 752c0bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Factory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
final class Factory
1919
{
2020
public static function create(
21-
LoopInterface $loop = null,
21+
LoopInterface $loop,
2222
array $options = []
2323
): Client {
2424
return new Client(
@@ -49,7 +49,7 @@ private static function createContainer(LoopInterface $loop, array $options): Co
4949

5050
private static function createTransport(
5151
ContainerInterface $container,
52-
LoopInterface $loop = null,
52+
LoopInterface $loop,
5353
array $options = []
5454
): TransportClient {
5555
if (!isset($options[Options::TRANSPORT_OPTIONS])) {

0 commit comments

Comments
 (0)