Skip to content

Commit 05f513b

Browse files
authored
Merge pull request hestiacp#2777 from hestiacp/update-default-composer-version
Use version 2.x instead 1.x when not defined
2 parents 0c7ac44 + 5523463 commit 05f513b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/app/System/HestiaApp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function updateComposer($version)
105105
$this->runUser('v-run-cli-cmd', ["composer", "selfupdate","--$version"]);
106106
}
107107

108-
public function runComposer($args, &$cmd_result=null, $version=1): bool
108+
public function runComposer($args, &$cmd_result=null, $version=2): bool
109109
{
110110
$composer = $this->getUserHomeDir() . DIRECTORY_SEPARATOR . '.composer' . DIRECTORY_SEPARATOR . 'composer';
111111
if (!is_file($composer)) {

0 commit comments

Comments
 (0)