protected function updateRootComposerJson(array $requires, array $devRequires, int $type): RootPackageInterface
    {
        $this->io->writeError('Updating root package');

        $this->updateRootPackageRequire($requires, $type);
        $this->updateRootPackageDevRequire($devRequires, $type);

        return $this->rootPackage;
    }