Skip to content

Commit 5929f1c

Browse files
committed
more composer tweaks
1 parent 53129a1 commit 5929f1c

5 files changed

Lines changed: 21 additions & 9 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: '8.4'
42+
php-version: '8.3'
4343
coverage: none
4444
tools: cs2pr
4545

.github/workflows/phpunit.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ jobs:
3232
wp_version: 'latest'
3333
multisite: true
3434

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+
3543
- php_version: '8.4'
3644
wp_version: 'latest'
3745
multisite: false

.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: 4 additions & 2 deletions
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"
@@ -42,7 +44,7 @@
4244
},
4345
"config": {
4446
"platform": {
45-
"php": "8.4"
47+
"php": "8.3"
4648
},
4749
"allow-plugins": {
4850
"dealerdirect/phpcodesniffer-composer-installer": true,

composer.lock

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

0 commit comments

Comments
 (0)