From 5bc2d5cb5bc359afa45134dcbd62b863913711c7 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 21 Mar 2021 02:24:18 +0100 Subject: [PATCH] Travis: fix PHP 8.0 build Even though we'll soon be moving to GH Actions, I think it is important to fix the failing build on PHP 8.0 ahead of this and ahead of the 1.8.0 release, as otherwise any badges in the README, on Packagist and on the website, will show the CI build as failing until we release version 2.0.0 and that wouldn't be right. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 596d67f52..99f6db042 100644 --- a/.travis.yml +++ b/.travis.yml @@ -75,7 +75,7 @@ install: travis_retry composer remove --dev --no-update squizlabs/php_codesniffer phpcompatibility/php-compatibility wp-coding-standards/wpcs dealerdirect/phpcodesniffer-composer-installer fi - | - if [[ $TRAVIS_PHP_VERSION == "nightly" ]]; then + if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" || $TRAVIS_PHP_VERSION == "nightly" ]]; then travis_retry composer install --no-interaction --ignore-platform-reqs else travis_retry composer install --no-interaction