original_string: private function updateCurrentVersion(
          Manager $manager,
          $version,
          $allowMajor,
          $allowPreRelease,
          OutputInterface $output
      ) {
          if ($manager->update($version, $allowMajor, $allowPreRelease)) {
              $output->writeln('<info>Updated to latest version.</info>');
          } else {
              $output->writeln('<comment>Already up-to-date.</comment>');
          }
      }
code: private function updateCurrentVersion(
          Manager $manager,
          $version,
          $allowMajor,
          $allowPreRelease,
          OutputInterface $output
      ) {
          if ($manager->update($version, $allowMajor, $allowPreRelease)) {
              $output->writeln('<info>Updated to latest version.</info>');
          } else {
              $output->writeln('<comment>Already up-to-date.</comment>');
          }
      }
code_tokens: private function updateCurrentVersion ( Manager $ manager , $ version , $ allowMajor , $ allowPreRelease , OutputInterface $ output ) { if ( $ manager -> update ( $ version , $ allowMajor , $ allowPreRelease ) ) { $ output -> writeln ( '<info>Updated to latest version.</info>' ) ; } else { $ output -> writeln ( '<comment>Already up-to-date.</comment>' ) ; } }
docstring: Updates current version.
  
  @param Manager         $manager
  @param string          $version
  @param bool|null       $allowMajor
  @param bool|null       $allowPreRelease
  @param OutputInterface $output
  
  @return void
docstring_tokens: Updates current version .