From 293042cce5a2d72c6a9f29c509d1fe5fa291eb12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 19 Jan 2021 18:01:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Abstracts/Pool.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } /**