diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 7b36ea07..2a5da9f5 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -54,7 +54,8 @@ abstract class Pool extends Component } else { $client = $this->_items[$name]->pop(); } - if (!$this->checkCanUse($name, ...$client)) { + [$timeout, $connection] = $client; + if (!$this->checkCanUse($name, $timeout, $connection)) { unset($client); return [0, null]; } else {