src/Pool.php
public function forget($type, $id)
    {
        $this->requireRegisteredType($type);

        $ids_to_forget = (array) $id;

        foreach ($ids_to_forget as $id_to_forget) {
            $id_to_forget = (int) $id_to_forget;

            if ($id_to_forget < 1) {
                throw new InvalidArgumentException('ID is expected to be a number larger than 0');
            }

            if (isset($this->objects_pool[$type][$id_to_forget])) {
                unset($this->objects_pool[$type][$id_to_forget]);
            }
        }
    }
public function forget($type, $id)
    {
        $this->requireRegisteredType($type);

        $ids_to_forget = (array) $id;

        foreach ($ids_to_forget as $id_to_forget) {
            $id_to_forget = (int) $id_to_forget;

            if ($id_to_forget < 1) {
                throw new InvalidArgumentException('ID is expected to be a number larger than 0');
            }

            if (isset($this->objects_pool[$type][$id_to_forget])) {
                unset($this->objects_pool[$type][$id_to_forget]);
            }
        }
    }
{@inheritdoc}