From 09ad01673cdfb9f893c138d92fce3bc965f5f8ed Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Fri, 5 Jan 2018 18:20:10 +0100 Subject: [PATCH] Force php5 for composer --- scripts/_common.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index 566747d..431d2c2 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -26,6 +26,9 @@ init_composer() { php -- --quiet --install-dir="$destdir" \ || ynh_die "Unable to install Composer" + # Force the dependance to php 5.6 + exec_composer "$destdir" config -g platform.php 5.6 + exec_composer "$destdir" update --no-dev # update dependencies to create composer.lock exec_composer "$destdir" install --no-dev \ || ynh_die "Unable to update PhpMyAdmin core dependencies"