src/Container.php
protected function remove(Argument $argument, string $serviceId): void
    {
        $returnType = $argument->getReturnType();

        unset($this->map[$returnType][array_search($serviceId, $this->map[$returnType], true)]);
        if (empty($this->map[$returnType])) {
            unset($this->map[$returnType]);
        }

        unset($this->list[$serviceId], $this->ids[$serviceId]);
    }
protected function remove(Argument $argument, string $serviceId): void
    {
        $returnType = $argument->getReturnType();

        unset($this->map[$returnType][array_search($serviceId, $this->map[$returnType], true)]);
        if (empty($this->map[$returnType])) {
            unset($this->map[$returnType]);
        }

        unset($this->list[$serviceId], $this->ids[$serviceId]);
    }
@param Argument $argument
@param string $serviceId

@return void