Skip to content

Commit ce66a0f

Browse files
committed
Increase minimum required version of PHP to 7.1 (up from 7.0).
1 parent 7181366 commit ce66a0f

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

.github/workflows/pr-unit-tests.yml

+5-9
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
# We test against the earliest and latest PHP versions for each major supported version.
13-
php: [ '7.0', '7.4', '8.0', '8.3' ]
13+
php: [ '7.1', '7.4', '8.0', '8.3' ]
1414
wp: [ '6.4', '6.5', '6.6', 'latest', 'nightly' ]
1515
multisite: [ '0', '1' ]
1616
exclude:
1717
# WordPress 6.6+ requires PHP 7.2+
18-
- php: 7.0
18+
- php: 7.1
1919
wp: 6.6
20-
- php: 7.0
20+
- php: 7.1
2121
wp: latest
22-
- php: 7.0
22+
- php: 7.1
2323
wp: nightly
2424
services:
2525
database:
@@ -62,12 +62,8 @@ jobs:
6262

6363
- name: Setup PHPUnit
6464
run: |
65-
# PHPUnit 5.7 when using PHP 5.6 - 7.0.
66-
if [ "$(php -r "echo version_compare( PHP_VERSION, '7.1', '<' );")" ]; then
67-
curl -L https://phar.phpunit.de/phpunit-5.7.phar -o /tmp/phpunit
68-
OVERWRITE=1
6965
# PHPUnit 7.5 when using PHP 7.1 - 7.4.
70-
elif [ "$(php -r "echo version_compare( PHP_VERSION, '8.0', '<' );")" ]; then
66+
if [ "$(php -r "echo version_compare( PHP_VERSION, '8.0', '<' );")" ]; then
7167
curl -L https://phar.phpunit.de/phpunit-7.5.phar -o /tmp/phpunit
7268
OVERWRITE=1
7369
# PHPUnit 7.5 (Custom Fork) when using PHP 8.0+.

action-scheduler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* License: GPLv3
1010
* Requires at least: 6.4
1111
* Tested up to: 6.7
12-
* Requires PHP: 7.0
12+
* Requires PHP: 7.1
1313
*
1414
* Copyright 2019 Automattic, Inc. (https://automattic.com/contact/)
1515
*

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"prefer-stable": true,
88
"minimum-stability": "dev",
99
"require": {
10-
"php": ">=7.0"
10+
"php": ">=7.1"
1111
},
1212
"require-dev": {
1313
"phpunit/phpunit": "^7.5",

readme.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Stable tag: 3.8.2
55
License: GPLv3
66
Requires at least: 6.4
77
Tested up to: 6.7
8-
Requires PHP: 7.0
8+
Requires PHP: 7.1
99

1010
Action Scheduler - Job Queue for WordPress
1111

0 commit comments

Comments
 (0)