Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase minimum required version of PHP to 7.1 (up from 7.0). #1212

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions .github/workflows/pr-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
fail-fast: false
matrix:
# We test against the earliest and latest PHP versions for each major supported version.
php: [ '7.0', '7.4', '8.0', '8.3' ]
php: [ '7.1', '7.4', '8.0', '8.3' ]
wp: [ '6.4', '6.5', '6.6', 'latest', 'nightly' ]
multisite: [ '0', '1' ]
exclude:
# WordPress 6.6+ requires PHP 7.2+
- php: 7.0
- php: 7.1
wp: 6.6
- php: 7.0
- php: 7.1
wp: latest
- php: 7.0
- php: 7.1
wp: nightly
services:
database:
Expand Down Expand Up @@ -62,12 +62,8 @@ jobs:

- name: Setup PHPUnit
run: |
# PHPUnit 5.7 when using PHP 5.6 - 7.0.
if [ "$(php -r "echo version_compare( PHP_VERSION, '7.1', '<' );")" ]; then
curl -L https://phar.phpunit.de/phpunit-5.7.phar -o /tmp/phpunit
OVERWRITE=1
# PHPUnit 7.5 when using PHP 7.1 - 7.4.
elif [ "$(php -r "echo version_compare( PHP_VERSION, '8.0', '<' );")" ]; then
if [ "$(php -r "echo version_compare( PHP_VERSION, '8.0', '<' );")" ]; then
curl -L https://phar.phpunit.de/phpunit-7.5.phar -o /tmp/phpunit
OVERWRITE=1
# PHPUnit 7.5 (Custom Fork) when using PHP 8.0+.
Expand Down
2 changes: 1 addition & 1 deletion action-scheduler.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* License: GPLv3
* Requires at least: 6.4
* Tested up to: 6.7
* Requires PHP: 7.0
* Requires PHP: 7.1
*
* Copyright 2019 Automattic, Inc. (https://automattic.com/contact/)
*
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"prefer-stable": true,
"minimum-stability": "dev",
"require": {
"php": ">=7.0"
"php": ">=7.1"
},
"require-dev": {
"phpunit/phpunit": "^7.5",
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Stable tag: 3.8.2
License: GPLv3
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.0
Requires PHP: 7.1

Action Scheduler - Job Queue for WordPress

Expand Down
Loading