From b128cb98acf45e22e2de1ee38fa923af2e8c1d58 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 31 May 2020 00:40:25 +0200 Subject: [PATCH] Update ynh_composer__2 --- scripts/ynh_composer__2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ynh_composer__2 b/scripts/ynh_composer__2 index 5c8775b0..762b7f7d 100644 --- a/scripts/ynh_composer__2 +++ b/scripts/ynh_composer__2 @@ -16,7 +16,7 @@ ynh_composer_exec () { # Manage arguments with getopts ynh_handle_getopts_args "$@" workdir="${workdir:-$final_path}" - phpversion="${phpversion:-7.0}" + phpversion="${phpversion:-$YNH_PHP_VERSION}" COMPOSER_HOME="$workdir/.composer" \ php${phpversion} "$workdir/composer.phar" $commands \ @@ -39,7 +39,7 @@ ynh_install_composer () { # Manage arguments with getopts ynh_handle_getopts_args "$@" workdir="${workdir:-$final_path}" - phpversion="${phpversion:-7.0}" + phpversion="${phpversion:-$YNH_PHP_VERSION}" install_args="${install_args:-}" curl -sS https://getcomposer.org/installer \