qqq
This commit is contained in:
@@ -87,9 +87,9 @@ class Pool extends Component
|
|||||||
/**
|
/**
|
||||||
* @param $name
|
* @param $name
|
||||||
* @param int $max
|
* @param int $max
|
||||||
* @param \Closure $closure
|
* @param callable $closure
|
||||||
*/
|
*/
|
||||||
public function created($name, int $max, \Closure $closure): void
|
public function created($name, int $max, callable $closure): void
|
||||||
{
|
{
|
||||||
if (!isset($this->_connections[$name])) {
|
if (!isset($this->_connections[$name])) {
|
||||||
$this->_connections[$name] = new PoolItem($max, $closure);
|
$this->_connections[$name] = new PoolItem($max, $closure);
|
||||||
|
|||||||
Reference in New Issue
Block a user