src/objects/Pool.php
public final function remove($id): void
    {
        if (is_object($id)) {
            $id = spl_object_hash($id);
            foreach ($this->objects as $i => $object) {
                if ($object[0] == $id) {
                    unset($this->objects[$i]);
                    break;
                }
            }
        } else {
            unset($this->objects[$id]);
        }
    }
public final function remove($id): void
    {
        if (is_object($id)) {
            $id = spl_object_hash($id);
            foreach ($this->objects as $i => $object) {
                if ($object[0] == $id) {
                    unset($this->objects[$i]);
                    break;
                }
            }
        } else {
            unset($this->objects[$id]);
        }
    }
Remove.
@param  int|string|object $id
@return void