We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7d2f4c7 + 8617265 commit 7fd01bfCopy full SHA for 7fd01bf
src/Client.php
@@ -62,8 +62,8 @@ public function __construct(
62
'You must give a LoopInterface instance with the Client'
63
);
64
}
65
- $this->loop = (null !== $loop) ?: ReactFactory::buildEventLoop();
66
- $this->client = (null !== $client) ?: ReactFactory::buildHttpClient($this->loop);
+ $this->loop = $loop ?: ReactFactory::buildEventLoop();
+ $this->client = $client ?: ReactFactory::buildHttpClient($this->loop);
67
68
$this->messageFactory = $messageFactory ?: MessageFactoryDiscovery::find();
69
0 commit comments