RoboFile.php
function upgrade(): Result {
    $composer = PHP_OS_FAMILY == 'Windows' ? 'php '.escapeshellarg('C:\Program Files\PHP\share\composer.phar') : 'composer';
    return $this->taskExecStack()
      ->exec('git reset --hard')
      ->exec('git fetch --all --prune')
      ->exec('git pull --rebase')
      ->exec("$composer update --no-interaction")
      ->run();
  }
function upgrade(): Result {
    $composer = PHP_OS_FAMILY == 'Windows' ? 'php '.escapeshellarg('C:\Program Files\PHP\share\composer.phar') : 'composer';
    return $this->taskExecStack()
      ->exec('git reset --hard')
      ->exec('git fetch --all --prune')
      ->exec('git pull --rebase')
      ->exec("$composer update --no-interaction")
      ->run();
  }
function upgrade ( ) : Result { $ composer = PHP_OS_FAMILY == 'Windows' ? 'php ' . escapeshellarg ( 'C:\Program Files\PHP\share\composer.phar' ) : 'composer' ; return $ this -> taskExecStack ( ) -> exec ( 'git reset --hard' ) -> exec ( 'git fetch --all --prune' ) -> exec ( 'git pull --rebase' ) -> exec ( "$composer update --no-interaction" ) -> run ( ) ; }
Upgrades the project to the latest revision.
@return Result The task result.
Upgrades the project to the latest revision .