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

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

        $this->rootPackage->setRequires($requires);
    }
protected function updateRootPackageRequire ( array $ packages , int $ type ) : void { $ requires = $ this -> manipulateRootPackage ( $ packages , $ type , $ this -> rootPackage -> getRequires ( ) ) ; $ this -> rootPackage -> setRequires ( $ requires ) ; }
Update the root required packages.

@param array $packages
@param int   $type

@return void
Update the root required packages .