protected function updateRootPackageRequire(array $packages, int $type): void
    {
        $requires = $this->manipulateRootPackage(
            $packages,
            $type,
            $this->rootPackage->getRequires()
        );

        $this->rootPackage->setRequires($requires);
    }