fix abstract pool consts

This commit is contained in:
prolic 2018-06-30 01:08:58 +08:00
parent 15336ca7fc
commit 2f18fa41c4
No known key found for this signature in database
GPG Key ID: 29722F9F48E9DE59
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ abstract class AbstractPool implements Pool
private $pending = 0;
/** @var int */
private $idleTimeout = self::DEFAULT_IDLE_TIMEOUT;
private $idleTimeout = Pool::DEFAULT_IDLE_TIMEOUT;
/** @var string */
private $timeoutWatcher;
@ -58,7 +58,7 @@ abstract class AbstractPool implements Pool
public function __construct(
ConnectionConfig $config,
int $maxConnections = self::DEFAULT_MAX_CONNECTIONS,
int $maxConnections = Pool::DEFAULT_MAX_CONNECTIONS,
Connector $connector = null
) {
$this->connector = $connector ?? $this->createDefaultConnector();