original_string: protected function updateRootPackageRequire(array $packages, int $type): void
      {
          $requires = $this->manipulateRootPackage(
              $packages,
              $type,
              $this->rootPackage->getRequires()
          );
  
          $this->rootPackage->setRequires($requires);
      }
code: protected function updateRootPackageRequire(array $packages, int $type): void
      {
          $requires = $this->manipulateRootPackage(
              $packages,
              $type,
              $this->rootPackage->getRequires()
          );
  
          $this->rootPackage->setRequires($requires);
      }
code_tokens: protected function updateRootPackageRequire ( array $ packages , int $ type ) : void { $ requires = $ this -> manipulateRootPackage ( $ packages , $ type , $ this -> rootPackage -> getRequires ( ) ) ; $ this -> rootPackage -> setRequires ( $ requires ) ; }
docstring: Update the root required packages.
  
  @param array $packages
  @param int   $type
  
  @return void
docstring_tokens: Update the root required packages .