From b62a6b51f41f7cfd4088d1e546c307b9ccbe88f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 3 Feb 2021 18:52:25 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 501c55a9..97f7d979 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -147,7 +147,7 @@ abstract class Pool extends Component public function hasItem(string $name): bool { if (isset($this->_items[$name])) { - return $this->_items[$name]->isEmpty(); + return !$this->_items[$name]->isEmpty(); } return false; }