This commit is contained in:
2021-02-03 18:52:25 +08:00
parent e03eb733f7
commit b62a6b51f4
+1 -1
View File
@@ -147,7 +147,7 @@ abstract class Pool extends Component
public function hasItem(string $name): bool public function hasItem(string $name): bool
{ {
if (isset($this->_items[$name])) { if (isset($this->_items[$name])) {
return $this->_items[$name]->isEmpty(); return !$this->_items[$name]->isEmpty();
} }
return false; return false;
} }