diff --git a/src/Client.php b/src/Client.php index 551340e..bd34dc0 100644 --- a/src/Client.php +++ b/src/Client.php @@ -62,8 +62,8 @@ public function __construct( 'You must give a LoopInterface instance with the Client' ); } - $this->loop = (null !== $loop) ?: ReactFactory::buildEventLoop(); - $this->client = (null !== $client) ?: ReactFactory::buildHttpClient($this->loop); + $this->loop = $loop ?: ReactFactory::buildEventLoop(); + $this->client = $client ?: ReactFactory::buildHttpClient($this->loop); $this->messageFactory = $messageFactory ?: MessageFactoryDiscovery::find(); }