Skip to content

Commit 2566545

Browse files
authored
Merge pull request #541 from ProgressPlanner/ari/update-composer-20250703
Update composer packages to support PHP 8.4, removing PHP 7.4
2 parents 7e3a37a + ad3043c commit 2566545

6 files changed

Lines changed: 419 additions & 438 deletions

File tree

.github/workflows/cs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Install PHP
4040
uses: shivammathur/setup-php@v2
4141
with:
42-
php-version: '7.4'
42+
php-version: '8.3'
4343
coverage: none
4444
tools: cs2pr
4545

.github/workflows/lint.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ jobs:
2424

2525
strategy:
2626
matrix:
27-
# Lint against the highest/lowest supported versions of each PHP major.
28-
# And also do a run against "nightly" (the current dev version of PHP).
29-
php_version: ['7.4', '8.0', '8.1', '8.2']
27+
php_version: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
3028

3129
name: "Lint: PHP ${{ matrix.php_version }}"
3230

@@ -37,7 +35,7 @@ jobs:
3735
- name: Install PHP for the composer install
3836
uses: shivammathur/setup-php@v2
3937
with:
40-
php-version: 7.4
38+
php-version: ${{ matrix.php_version }}
4139
coverage: none
4240

4341
# The lint stage doesn't use code style, so no need for WPCS or phpcompatibility.

.github/workflows/phpunit.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,31 @@ jobs:
2020
strategy:
2121
matrix:
2222
include:
23-
- php_version: '8.1'
23+
- php_version: '8.2'
2424
wp_version: '6.2'
2525
multisite: false
2626

27-
- php_version: '8.1'
27+
- php_version: '8.2'
2828
wp_version: 'latest'
2929
multisite: false
3030

31-
- php_version: '8.1'
31+
- php_version: '8.2'
3232
wp_version: 'latest'
3333
multisite: true
3434

35-
- php_version: '8.2'
35+
- php_version: '8.3'
36+
wp_version: 'latest'
37+
multisite: false
38+
39+
- php_version: '8.3'
40+
wp_version: 'latest'
41+
multisite: true
42+
43+
- php_version: '8.4'
44+
wp_version: 'latest'
45+
multisite: false
46+
47+
- php_version: '8.4'
3648
wp_version: 'latest'
3749
multisite: true
3850

.php-cs-fixer.dist.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
]
1111
);
1212

13-
return ( new PhpCsFixer\Config() )->setRules(
13+
$config = new PhpCsFixer\Config();
14+
15+
return $config->setRules(
1416
[
1517
'native_function_invocation' => [
1618
'include' => [ '@all' ],

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
"@php ./vendor/bin/phpcs -s"
2626
],
2727
"fix-cs": [
28-
"@php ./vendor/bin/phpcbf && ./vendor/bin/php-cs-fixer fix . --allow-risky=yes"
28+
"PHP_CS_FIXER_IGNORE_ENV=1",
29+
"@php ./vendor/bin/phpcbf",
30+
"@php ./vendor/bin/php-cs-fixer fix . --allow-risky=yes"
2931
],
3032
"lint": [
3133
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude node_modules --exclude .git"
@@ -41,6 +43,9 @@
4143
]
4244
},
4345
"config": {
46+
"platform": {
47+
"php": "8.3"
48+
},
4449
"allow-plugins": {
4550
"dealerdirect/phpcodesniffer-composer-installer": true,
4651
"phpstan/extension-installer": true

0 commit comments

Comments
 (0)