Skip to content

Commit 60793e2

Browse files
Merge pull request #402 from Yoast/feature/drop-php-7.2-7.3
Drop support for Php 7.2 and 7.3
2 parents 59ddeea + 286edab commit 60793e2

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: Install PHP
6161
uses: shivammathur/setup-php@v2
6262
with:
63-
php-version: 7.2
63+
php-version: 7.4
6464
coverage: none
6565

6666
# This action also handles the caching of the Yarn dependencies.

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
matrix:
8080
# Lint against the highest/lowest supported versions of each PHP major.
8181
# And also do a run against "nightly" (the current dev version of PHP).
82-
php_version: ['7.2', '7.4', '8.0', '8.4', 'nightly']
82+
php_version: [ '7.4', '8.0', '8.4', 'nightly']
8383

8484
name: "Lint: PHP ${{ matrix.php_version }}"
8585

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ jobs:
7373

7474
strategy:
7575
matrix:
76-
php_version: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
76+
php_version: ['7.4', '8.0', '8.1', '8.2', '8.3']
7777
coverage: [false]
7878

7979
# Run code coverage only on high/low PHP.
8080
include:
81-
- php_version: 7.2
81+
- php_version: 7.4
8282
coverage: true
8383
- php_version: 8.4
8484
coverage: true
@@ -127,12 +127,12 @@ jobs:
127127
strategy:
128128
matrix:
129129
include:
130-
- php_version: "7.2"
130+
- php_version: "7.4"
131131
wp_version: "6.5"
132132
multisite: true
133133
coverage: true
134134

135-
- php_version: "7.3"
135+
- php_version: "7.4"
136136
wp_version: "trunk"
137137
multisite: true
138138
coverage: false
@@ -175,9 +175,9 @@ jobs:
175175

176176
services:
177177
mysql:
178-
# Use MySQL 5.6 for PHP 7.2, use MySQL 5.7 for PHP 7.3 < 7.4, otherwise MySQL 8.0.
178+
# Use MySQL 5.6 for PHP 7.4, use MySQL 5.7 for PHP 8.0, otherwise MySQL 8.0.
179179
# Also see: https://core.trac.wordpress.org/ticket/52496
180-
image: mysql:${{ ( matrix.php_version == '7.2' && '5.6' ) || ( matrix.php_version < '7.4' && '5.7' ) || '8.0' }}
180+
image: mysql:${{ ( matrix.php_version == '7.4' && '5.6' ) || ( matrix.php_version == '8.0' && '5.7' ) || '8.0' }}
181181
env:
182182
MYSQL_ALLOW_EMPTY_PASSWORD: false
183183
ports:
@@ -187,7 +187,7 @@ jobs:
187187
steps:
188188
- name: Install subversion
189189
run: sudo apt-get install -y subversion
190-
190+
191191
- name: Checkout code
192192
uses: actions/checkout@v4
193193

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"security": "https://yoast.com/security-program/"
2525
},
2626
"require": {
27-
"php": "^7.2.5 || ^8.0",
27+
"php": "^7.4 || ^8.0",
2828
"composer/installers": "^1.12.0 || ^2.0"
2929
},
3030
"require-dev": {

duplicate-post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Author URI: https://yoa.st/team-yoast-duplicate
1515
* Text Domain: duplicate-post
1616
* Requires at least: 6.6
17-
* Requires PHP: 7.2.5
17+
* Requires PHP: 7.4
1818
*
1919
* Copyright 2020-2024 Yoast BV (email : [email protected])
2020
*

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: duplicate post, copy, clone
55
Requires at least: 6.6
66
Tested up to: 6.8
77
Stable tag: 4.5
8-
Requires PHP: 7.2.5
8+
Requires PHP: 7.4
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

0 commit comments

Comments
 (0)