Skip to content

Commit d4fc658

Browse files
authored
Fixes
1 parent b843658 commit d4fc658

File tree

7 files changed

+27
-21
lines changed

7 files changed

+27
-21
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Setup PHP
3131
uses: shivammathur/setup-php@v2
3232
with:
33-
php-version: '7.4'
33+
php-version: '8.1'
3434
tools: composer:v2, phpcs
3535

3636
- name: Check for package-lock.json
@@ -57,7 +57,7 @@ jobs:
5757
run: |
5858
if [ -f composer.json ]; then
5959
# Configure platform to ensure compatibility
60-
composer config platform.php 7.4
60+
composer config platform.php 8.1
6161
composer install --prefer-dist --no-progress || {
6262
echo "Standard install failed, trying with --ignore-platform-reqs"
6363
composer install --prefer-dist --no-progress --ignore-platform-reqs
@@ -125,14 +125,14 @@ jobs:
125125
- name: Setup PHP
126126
uses: shivammathur/setup-php@v2
127127
with:
128-
php-version: '7.4'
128+
php-version: '8.1'
129129
tools: composer:v2
130130

131131
- name: Install dependencies
132132
run: |
133133
if [ -f composer.json ]; then
134134
# Configure platform to ensure compatibility
135-
composer config platform.php 7.4
135+
composer config platform.php 8.1
136136
composer install --no-dev --prefer-dist --no-progress || {
137137
echo "Standard install failed, trying with --ignore-platform-reqs"
138138
composer install --no-dev --prefer-dist --no-progress --ignore-platform-reqs

.github/workflows/new-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
2626
**Before we review:**
2727
- [ ] Have you tested your changes with WordPress 6.6+?
28-
- [ ] Are your changes compatible with PHP 7.4+?
28+
- [ ] Are your changes compatible with PHP 8.1+?
2929
- [ ] Have you followed WordPress coding standards?
3030
- [ ] Did you update the CHANGELOG.md if needed?
3131

.github/workflows/wp-compatibility-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This workflow performs comprehensive WordPress plugin compatibility and quality checks.
22
# It runs multiple validation processes including:
33
# - WordPress Plugin Check for WordPress.org compatibility
4-
# - PHPUnit tests across PHP versions (7.4/8.0: PHPUnit 9+polyfills2; 8.1: PHPUnit 9+polyfills4; 8.2: PHPUnit 11+polyfills4; 8.3: PHPUnit 12+polyfills4)
5-
# - PHP compatibility testing across multiple PHP versions (7.4, 8.0, 8.3, 8.4, 8.5)
4+
# - PHPUnit tests across PHP versions (8.1, 8.2, 8.3, 8.4, 8.5)
5+
# - PHP compatibility testing across multiple PHP versions (8.1, 8.2, 8.3, 8.4, 8.5)
66
# - WordPress compatibility testing across multiple WP versions (6.6, latest, nightly)
77
# - PHPStan static analysis for WordPress-specific code quality
88
# - WordPress security vulnerability scanning using pattern analysis
@@ -587,7 +587,7 @@ jobs:
587587
runs-on: ubuntu-latest
588588
strategy:
589589
matrix:
590-
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
590+
php-version: ['8.1', '8.2', '8.3', '8.4', '8.5']
591591
wp-version: ['6.6', 'latest', 'nightly']
592592
fail-fast: false
593593

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111

12+
- **CI/CD:**
13+
- Updated WordPress compatibility workflow matrix to test PHP 8.1-8.5 only
14+
- Removed PHP 7.4 and 8.0 matrix jobs that are below the plugin minimum requirement
15+
1216
- **PHP 8.1+ Modernization:**
1317
- Raised minimum PHP version from 7.4 to 8.1 across plugin header, composer.json, readme.txt
1418
- Added typed properties (`?self`, `array`, `readonly array`, `string`) to all class properties

composer.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@
1111
],
1212
"minimum-stability": "stable",
1313
"require": {
14-
"php": ">=7.4"
14+
"php": ">=8.1"
1515
},
1616
"require-dev": {
17-
"phpunit/phpunit": "9.*",
18-
"yoast/phpunit-polyfills": "2.*",
19-
"squizlabs/php_codesniffer": "3.*",
20-
"wp-coding-standards/wpcs": "3.*",
21-
"phpcsstandards/phpcsextra": "1.*",
22-
"dealerdirect/phpcodesniffer-composer-installer": "1.*",
23-
"friendsofphp/php-cs-fixer": "3.*",
24-
"php-stubs/wordpress-stubs": "6.*",
25-
"szepeviktor/phpstan-wordpress": "2.*",
26-
"phpstan/phpstan": "2.*",
27-
"phpcompatibility/phpcompatibility-wp": "2.*"
17+
"phpunit/phpunit": "^9.*",
18+
"yoast/phpunit-polyfills": "^2.*",
19+
"squizlabs/php_codesniffer": "^3.*",
20+
"wp-coding-standards/wpcs": "^3.*",
21+
"phpcsstandards/phpcsextra": "^1.*",
22+
"dealerdirect/phpcodesniffer-composer-installer": "^1.*",
23+
"friendsofphp/php-cs-fixer": "^3.*",
24+
"php-stubs/wordpress-stubs": "^6.*",
25+
"szepeviktor/phpstan-wordpress": "^2.*",
26+
"phpstan/phpstan": "^2.*",
27+
"phpcompatibility/phpcompatibility-wp": "^2.*"
2828
},
2929
"scripts": {
3030
"phpcs": "phpcs --standard=phpcs.xml",

phpcs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116

117117
<!-- Set minimum WordPress version for deprecated function checks -->
118118
<config name="minimum_wp_version" value="6.6"/>
119-
<config name="testVersion" value="7.4-"/>
119+
<config name="testVersion" value="8.1-"/>
120120

121121
<!-- Show progress -->
122122
<arg value="p"/>

readme.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ Yes, this plugin focuses on specific admin and functionality enhancements rather
6969
== Changelog ==
7070

7171
= Unreleased =
72+
* Changed: Updated WordPress compatibility workflow matrix to test PHP 8.1-8.5 only
73+
* Changed: Removed PHP 7.4 and 8.0 workflow matrix jobs (below minimum supported PHP version)
7274
* Changed: Raised minimum PHP version from 7.4 to 8.1
7375
* Changed: Added typed properties, parameter types, and return types to all class members (PHP 8.1+)
7476
* Changed: Extracted inline admin CSS to enqueued assets/css/admin.css stylesheet

0 commit comments

Comments
 (0)