From 09dcf38c59758e66f5d3513ac41f0e913772b4a8 Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Fri, 11 Jun 2021 11:21:54 -0500 Subject: [PATCH] qa: ignore platform reqs when installing mongo client library under PHP 8 Signed-off-by: Matthew Weier O'Phinney --- .laminas-ci/pre-run.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.laminas-ci/pre-run.sh b/.laminas-ci/pre-run.sh index 01e11fe..d78a188 100755 --- a/.laminas-ci/pre-run.sh +++ b/.laminas-ci/pre-run.sh @@ -2,4 +2,12 @@ set -e -composer require --dev --no-interaction --prefer-dist alcaeus/mongo-php-adapter +JOB=$3 +PHP_VERSION=$(echo "${JOB}" | jq -r '.php') + +if [[ "$PHP_VERSION" =~ 8. ]];then + composer require --ignore-platform-req=php --dev --no-interaction --prefer-dist alcaeus/mongo-php-adapter +else + composer require --dev --no-interaction --prefer-dist alcaeus/mongo-php-adapter +fi +