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;
    }
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;
    }
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 ; }
Update the root package require and dev-require.

@param array $requires
@param array $devRequires
@param int   $type

@return \Composer\Package\RootPackageInterface
Update the root package require and dev - require .