From 86172657fff549fe67d2ea0a760db7634a37aa5a Mon Sep 17 00:00:00 2001 From: Robin van der Vleuten Date: Tue, 8 Mar 2016 11:23:12 +0100 Subject: [PATCH] Fixed incorrect assigning of custom and variable --- src/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }