Skip to content

Commit d61364a

Browse files
committed
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.
1 parent 27e9363 commit d61364a

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: php
22
os: linux
3-
dist: xenial
3+
dist: trusty
44

55
env:
66
# `master` is now 3.x.
@@ -13,6 +13,8 @@ cache:
1313
- $HOME/.cache/composer/files
1414

1515
php:
16+
- 5.4
17+
- 5.5
1618
- 5.6
1719
- 7.0
1820
- 7.1
@@ -36,7 +38,7 @@ jobs:
3638
include:
3739

3840
- stage: lint
39-
php: 7.3
41+
php: 7.4
4042
env: PHPCS_BRANCH="dev-master"
4143
before_install: phpenv config-rm xdebug.ini || echo 'No xdebug config.'
4244
install: skip
@@ -59,7 +61,7 @@ jobs:
5961
- libxml2-utils
6062

6163
- stage: sniff
62-
php: 7.3
64+
php: 7.4
6365
env: PHPCS_BRANCH="dev-master"
6466
before_install: phpenv config-rm xdebug.ini || echo 'No xdebug config.'
6567
install: composer install --dev --no-suggest

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Go to https://wpvip.com/documentation/phpcs-review-feedback/ to learn about why
1515

1616
## Minimal requirements
1717

18+
* PHP 5.4+
1819
* [PHPCS 3.3.1+](https://github.com/squizlabs/PHP_CodeSniffer/releases)
1920
* [WPCS 2.*](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/releases)
2021

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
}
1616
],
1717
"require": {
18-
"php": ">=5.6",
18+
"php": ">=5.4",
1919
"squizlabs/php_codesniffer": "^3.5.5",
2020
"wp-coding-standards/wpcs": "^2.3"
2121
},
2222
"require-dev": {
2323
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
2424
"phpcompatibility/php-compatibility": "^9",
25-
"phpunit/phpunit": "^5 || ^6 || ^7"
25+
"phpunit/phpunit": "^4 || ^5 || ^6 || ^7"
2626
},
2727
"suggest": {
2828
"dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will manage the PHPCS 'installed_paths' automatically."

0 commit comments

Comments
 (0)