Skip to content

Commit

Permalink
Fix PHP 5 syntax error
Browse files Browse the repository at this point in the history
(This wasn't possible with PHP 5?!?!)
  • Loading branch information
bwoebi committed Jul 5, 2017
1 parent c87fc25 commit d7ccc09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ConnectionPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public function getConnectionPromise() {
}
}
}
return ($this->connectionDeferred = new \Amp\Deferred)->promise();
$this->connectionDeferred = new \Amp\Deferred;
return $this->connectionDeferred->promise();
}

public function addConnection() {
Expand Down

0 comments on commit d7ccc09

Please sign in to comment.