Skip to content

Commit 00eccab

Browse files
committed
[TASK] Fix friendsofphp/php-cs-fixer for PHP 8.2
1 parent 7714583 commit 00eccab

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.build/php-cs-rules.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
return (new PhpCsFixer\Config())
1212
->setRiskyAllowed(true)
13+
->setCacheFile(__DIR__ . '/.php-cs-fixer.cache')
1314
->setRules([
1415
'@PSR2' => true,
1516
'@DoctrineAnnotation' => true,

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/.php_cs.cache
55
/.build/reports
66
/.build/.cache
7+
/.build/*.cache

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@
8383
"@test-php-functional-coverage"
8484
],
8585
"php-stan": "phpstan analyse -c .build/phpstan.neon",
86-
"php-cs": "php-cs-fixer fix --config .build/php-cs-rules.php --ansi --verbose --diff --dry-run",
86+
"php-cs": [
87+
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
88+
"php-cs-fixer fix --config .build/php-cs-rules.php --ansi --verbose --diff --dry-run"
89+
],
8790
"php-fix": "php-cs-fixer fix --config .build/php-cs-rules.php --ansi",
8891
"test-php-unit": "phpunit -c .build/phpunit-unit.xml --no-coverage",
8992
"test-php-functional": "phpunit -c .build/phpunit-functional.xml --no-coverage",

0 commit comments

Comments
 (0)