original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Update the root package require and dev-require.
  
  @param array $requires
  @param array $devRequires
  @param int   $type
  
  @return \Composer\Package\RootPackageInterface
docstring_tokens: Update the root package require and dev - require .