original_string: protected function runInstaller(RootPackageInterface $rootPackage, array $whitelistPackages): int
      {
          $this->io->writeError('Running an update to install dependent packages');
  
          $this->composer->setPackage($rootPackage);
  
          $installer = $this->getInstaller();
          $installer->setUpdateWhitelist($whitelistPackages);
  
          return $installer->run();
      }
code: protected function runInstaller(RootPackageInterface $rootPackage, array $whitelistPackages): int
      {
          $this->io->writeError('Running an update to install dependent packages');
  
          $this->composer->setPackage($rootPackage);
  
          $installer = $this->getInstaller();
          $installer->setUpdateWhitelist($whitelistPackages);
  
          return $installer->run();
      }
code_tokens: protected function runInstaller ( RootPackageInterface $ rootPackage , array $ whitelistPackages ) : int { $ this -> io -> writeError ( 'Running an update to install dependent packages' ) ; $ this -> composer -> setPackage ( $ rootPackage ) ; $ installer = $ this -> getInstaller ( ) ; $ installer -> setUpdateWhitelist ( $ whitelistPackages ) ; return $ installer -> run ( ) ; }
docstring: Install selected packages.
  
  @param \Composer\Package\RootPackageInterface $rootPackage
  @param array                                  $whitelistPackages
  
  @throws \Exception
  
  @return int
docstring_tokens: Install selected packages .