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>');
        }
    }
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>');
        }
    }
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>' ) ; } }
Updates current version.

@param Manager         $manager
@param string          $version
@param bool|null       $allowMajor
@param bool|null       $allowPreRelease
@param OutputInterface $output

@return void
Updates current version .