Просмотр исходного кода

Merge pull request #2777 from hestiacp/update-default-composer-version

Use version 2.x instead 1.x when not defined
Raphael 3 лет назад
Родитель
Сommit
c0b2873b0d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      web/src/app/System/HestiaApp.php

+ 1 - 1
web/src/app/System/HestiaApp.php

@@ -104,7 +104,7 @@ class HestiaApp
         $this->runUser('v-run-cli-cmd', ["composer", "selfupdate","--$version"]);
     }
 
-    public function runComposer($args, &$cmd_result=null, $version=1): bool
+    public function runComposer($args, &$cmd_result=null, $version=2): bool
     {
         $composer = $this->getUserHomeDir() . DIRECTORY_SEPARATOR . '.composer' . DIRECTORY_SEPARATOR . 'composer';
         if (!is_file($composer)) {