Skip to content

Commit 7fd01bf

Browse files
committed
Merge pull request #12 from webstronauts/master
Fixed incorrect assigning of custom $loop and $client
2 parents 7d2f4c7 + 8617265 commit 7fd01bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/Client.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public function __construct(
6262
'You must give a LoopInterface instance with the Client'
6363
);
6464
}
65-
$this->loop = (null !== $loop) ?: ReactFactory::buildEventLoop();
66-
$this->client = (null !== $client) ?: ReactFactory::buildHttpClient($this->loop);
65+
$this->loop = $loop ?: ReactFactory::buildEventLoop();
66+
$this->client = $client ?: ReactFactory::buildHttpClient($this->loop);
6767

6868
$this->messageFactory = $messageFactory ?: MessageFactoryDiscovery::find();
6969
}

0 commit comments

Comments
 (0)