diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index e22016eb..c41ce559 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -35,8 +35,8 @@ abstract class Pool extends Component if (isset($this->_items[$name]) && $this->_items[$name] instanceof Channel) { return; } - $this->_items[$name] = new Channel($max); - $this->max = $max; + $this->_items[$name] = new Channel((int)$max); + $this->max = (int)$max; } /**