改名
This commit is contained in:
@@ -146,7 +146,10 @@ abstract class Pool extends Component
|
||||
*/
|
||||
public function hasItem(string $name): bool
|
||||
{
|
||||
return $this->size($name) > 0;
|
||||
if (isset($this->_items[$name])) {
|
||||
return $this->_items[$name]->isEmpty();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user