Skip to content

Commit 7f56cb3

Browse files
committed
Bump min php support to 7.4
1 parent 608225a commit 7f56cb3

File tree

10 files changed

+18
-23
lines changed

10 files changed

+18
-23
lines changed

.github/workflows/behat-test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ jobs:
6060
fail-fast: true
6161
matrix:
6262
php:
63-
- '7.2'
64-
- '7.3'
6563
- '7.4'
6664
- '8.0'
6765
- '8.1'
@@ -70,7 +68,7 @@ jobs:
7068
- php: '8.2'
7169
wordpress: 'latest'
7270
coverage: true
73-
- php: '7.2'
71+
- php: '7.4'
7472
wordpress: '6.3'
7573
- php: '8.3'
7674
wordpress: 'trunk'

.github/workflows/php-test.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,12 @@ jobs:
4848
fail-fast: true
4949
matrix:
5050
php:
51-
- '7.3'
5251
- '7.4'
5352
- '8.0'
5453
- '8.1'
5554
wordpress: [ 'latest' ]
5655
include:
57-
- php: '7.2'
56+
- php: '7.4'
5857
wordpress: '6.3'
5958
- php: '8.2'
6059
wordpress: 'latest'
@@ -115,8 +114,6 @@ jobs:
115114
fail-fast: true
116115
matrix:
117116
php:
118-
- '7.2'
119-
- '7.3'
120117
- '7.4'
121118
- '8.0'
122119
- '8.1'

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Thank you for your interest in contributing to the Plugin Check plugin!
77
In general, all code must follow the [WordPress Coding Standards and best practices](https://developer.wordpress.org/coding-standards/). All code in the Plugin Check plugin must follow these requirements:
88

99
- **WordPress**: The plugin's minimum WordPress version requirement is 6.3.
10-
- **PHP**: Always match the latest WordPress version. The minimum required version right now is 7.2.24.
10+
- **PHP**: The plugin's minimum PHP version requirement is 7.4.
1111

1212
## Guidelines
1313

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "GPL-2.0-or-later",
55
"type": "wordpress-plugin",
66
"require": {
7-
"php": ">=7.2.24",
7+
"php": ">=7.4",
88
"ext-json": "*",
99
"afragen/wordpress-plugin-readme-parser": "dev-master#67fba498d0b112acf84386b95e4905c539a33f0b",
1010
"automattic/vipwpcs": "^3.0.0",
@@ -56,7 +56,7 @@
5656
"phpstan/extension-installer": true
5757
},
5858
"platform": {
59-
"php": "7.2.24"
59+
"php": "7.4"
6060
}
6161
},
6262
"scripts": {

composer.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpcs-sniffs/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=7.2.24",
19+
"php": ">=7.4",
2020
"ext-libxml": "*",
2121
"ext-tokenizer": "*",
2222
"ext-xmlreader": "*",
@@ -38,7 +38,7 @@
3838
"dealerdirect/phpcodesniffer-composer-installer": true
3939
},
4040
"platform": {
41-
"php": "7.2.24"
41+
"php": "7.4"
4242
}
4343
},
4444
"scripts": {
@@ -67,4 +67,4 @@
6767
"lint": "Lint PHP files against parse errors.",
6868
"run-tests": "Run all the unit tests for the Plugin Check Coding Standards sniffs."
6969
}
70-
}
70+
}

phpcs-sniffs/composer.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpcs-sniffs/phpcs.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</rule>
3838

3939
<!-- Check code for cross-version PHP compatibility. -->
40-
<config name="testVersion" value="7.2-"/>
40+
<config name="testVersion" value="7.4-"/>
4141

4242
<!-- Enforce PSR1 compatible namespaces. -->
4343
<rule ref="PSR1.Classes.ClassDeclaration"/>

phpcs.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<description>Sniffs for WordPress plugins, with minor modifications for Performance</description>
44

55
<rule ref="PHPCompatibility"/>
6-
<config name="testVersion" value="7.2-"/>
6+
<config name="testVersion" value="7.4-"/>
77

88
<rule ref="WordPress-Core">
99
<exclude name="WordPress.Files.FileName"/>

plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin URI: https://github.com/WordPress/plugin-check
55
* Description: Plugin Check is a WordPress.org tool which provides checks to help plugins meet the directory requirements and follow various best practices.
66
* Requires at least: 6.3
7-
* Requires PHP: 7.2.24
7+
* Requires PHP: 7.4
88
* Version: 1.2.0
99
* Author: WordPress Performance Team and Plugin Review Team
1010
* License: GPLv2 or later
@@ -17,7 +17,7 @@
1717
use WordPress\Plugin_Check\Plugin_Main;
1818

1919
define( 'WP_PLUGIN_CHECK_VERSION', '1.2.0' );
20-
define( 'WP_PLUGIN_CHECK_MINIMUM_PHP', '7.2.24' );
20+
define( 'WP_PLUGIN_CHECK_MINIMUM_PHP', '7.4' );
2121
define( 'WP_PLUGIN_CHECK_MAIN_FILE', __FILE__ );
2222
define( 'WP_PLUGIN_CHECK_PLUGIN_DIR_PATH', plugin_dir_path( WP_PLUGIN_CHECK_MAIN_FILE ) );
2323
define( 'WP_PLUGIN_CHECK_PLUGIN_DIR_URL', plugin_dir_url( WP_PLUGIN_CHECK_MAIN_FILE ) );

0 commit comments

Comments
 (0)