Skip to content

Commit d7ccc09

Browse files
committed
Fix PHP 5 syntax error
(This wasn't possible with PHP 5?!?!)
1 parent c87fc25 commit d7ccc09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ConnectionPool.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ public function getConnectionPromise() {
4848
}
4949
}
5050
}
51-
return ($this->connectionDeferred = new \Amp\Deferred)->promise();
51+
$this->connectionDeferred = new \Amp\Deferred;
52+
return $this->connectionDeferred->promise();
5253
}
5354

5455
public function addConnection() {

0 commit comments

Comments
 (0)