Skip to content

Commit 352df9a

Browse files
Upgrade minimum PHP version to 7.2 across the project. (#214)
Updated the PHPCS configuration, CI workflows, and composer requirements to reflect the new minimum PHP version of 7.2. Adjusted the supported PHP versions in `.travis.yml` and updated metadata in `wpmn-loader.php` accordingly. This ensures compatibility with a modern PHP environment. Co-authored-by: Jonny Harris <[email protected]>
1 parent 3077a9f commit 352df9a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/workflows/php-sniffer-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup PHP
1818
uses: shivammathur/setup-php@v2
1919
with:
20-
php-version: '5.6'
20+
php-version: '7.2'
2121
coverage: none
2222
tools: composer, cs2pr
2323

@@ -41,4 +41,4 @@ jobs:
4141
run: composer install --prefer-dist --no-suggest --no-progress --no-interaction
4242

4343
- name: Detect coding standard violations (PHPCS)
44-
run: vendor/bin/phpcs -q --report=checkstyle --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 | cs2pr --graceful-warnings
44+
run: vendor/bin/phpcs -q --report=checkstyle --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 | cs2pr --graceful-warnings

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ matrix:
2020
env: WP_VERSION=latest WP_MULTISITE=1
2121
- php: 7.2
2222
env: WP_VERSION=latest WP_MULTISITE=1
23-
- php: 5.6
23+
- php: 8.0
2424
env: WP_VERSION=latest WP_MULTISITE=1 PHPLINT=1
2525
dist: precise
2626
- php: 7.2
2727
env: WP_VERSION=4.9 WP_MULTISITE=1
28-
- php: 5.6
28+
- php: 8.0
2929
env: WP_VERSION=4.9 WP_MULTISITE=1
3030
dist: precise
3131
- php: nightly

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"source": "https://github.com/stuttter/wp-multi-network"
1717
},
1818
"require": {
19-
"php": ">=5.2",
19+
"php": ">=7.2",
2020
"composer/installers": "^1.0 || ^2.0"
2121
},
2222
"require-dev": {

phpcs.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</properties>
3535
</rule>
3636

37-
<config name="testVersion" value="5.6-" />
37+
<config name="testVersion" value="7.2-" />
3838

3939
<file>.</file>
4040

wpmn-loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Text Domain: wp-multi-network
1717
* Network: true
1818
* Requires at least: 4.9
19-
* Requires PHP: 5.2
19+
* Requires PHP: 7.2
2020
* Tested up to: 6.1
2121
* Version: 2.5.2
2222
*/

0 commit comments

Comments
 (0)