/** * @param mixed|string $offset */ public function offsetUnset($offset) { Lib::array_forget($this->items, $offset); }
/** * @param string $name * * @throws DBCannotRemoveCachedConnection */ public function removeConnection(string $name) { if ($this->isCached($name)) { throw new DBCannotRemoveCachedConnection("Connection `{$name}` is active and therefore cannot be removed."); } if ($this->hasConnection($name)) { Lib::array_forget($this->connections, $name); } }