From d61364aa81e49b9085764d6f4486ed55d116d5ae Mon Sep 17 00:00:00 2001 From: Gary Jones Date: Mon, 6 Jul 2020 14:03:04 +0100 Subject: [PATCH] Travis: Expand supported PHP down to 5.4 PHP 5.4 is the minimum that PHPCS and WPCS support, so it would be nice to be able to say VIPCS supports the same minimum version of PHP. --- .travis.yml | 8 +++++--- README.md | 1 + composer.json | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index bb2e70c8..33d17326 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: php os: linux -dist: xenial +dist: trusty env: # `master` is now 3.x. @@ -13,6 +13,8 @@ cache: - $HOME/.cache/composer/files php: + - 5.4 + - 5.5 - 5.6 - 7.0 - 7.1 @@ -36,7 +38,7 @@ jobs: include: - stage: lint - php: 7.3 + php: 7.4 env: PHPCS_BRANCH="dev-master" before_install: phpenv config-rm xdebug.ini || echo 'No xdebug config.' install: skip @@ -59,7 +61,7 @@ jobs: - libxml2-utils - stage: sniff - php: 7.3 + php: 7.4 env: PHPCS_BRANCH="dev-master" before_install: phpenv config-rm xdebug.ini || echo 'No xdebug config.' install: composer install --dev --no-suggest diff --git a/README.md b/README.md index 4ac0c9c4..9b3626b5 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Go to https://wpvip.com/documentation/phpcs-review-feedback/ to learn about why ## Minimal requirements +* PHP 5.4+ * [PHPCS 3.3.1+](https://github.com/squizlabs/PHP_CodeSniffer/releases) * [WPCS 2.*](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/releases) diff --git a/composer.json b/composer.json index d545d818..27133da1 100644 --- a/composer.json +++ b/composer.json @@ -15,14 +15,14 @@ } ], "require": { - "php": ">=5.6", + "php": ">=5.4", "squizlabs/php_codesniffer": "^3.5.5", "wp-coding-standards/wpcs": "^2.3" }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^0.7", "phpcompatibility/php-compatibility": "^9", - "phpunit/phpunit": "^5 || ^6 || ^7" + "phpunit/phpunit": "^4 || ^5 || ^6 || ^7" }, "suggest": { "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will manage the PHPCS 'installed_paths' automatically."