Skip to content

Commit d018b5f

Browse files
committed
Fix phpcs for PHP 8.4
1 parent 9961afd commit d018b5f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

composer.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,14 @@
3636
"sort-packages": true
3737
},
3838
"scripts": {
39-
"cs:check": "php-cs-fixer fix --dry-run --format=txt --verbose --config=.cs.php --ansi",
40-
"cs:fix": "php-cs-fixer fix --config=.cs.php --ansi --verbose",
39+
"cs:check": [
40+
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
41+
"php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi"
42+
],
43+
"cs:fix": [
44+
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
45+
"php-cs-fixer fix --config=.cs.php --ansi --verbose"
46+
],
4147
"sniffer:check": "phpcs --standard=phpcs.xml",
4248
"sniffer:fix": "phpcbf --standard=phpcs.xml",
4349
"stan": "phpstan analyse -c phpstan.neon --no-progress --ansi",

0 commit comments

Comments
 (0)