Skip to content

Commit b2f1eb1

Browse files
authored
Merge pull request ecamp#8432 from BacLuc/cs-fixer-env-var-deprecated
chore(api): fix 'Setting PHP_CS_FIXER_IGNORE_ENV environment variable is deprecated'
2 parents 61f3202 + b5c506b commit b2f1eb1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
- run: composer install --no-interaction --no-plugins --no-scripts --prefer-dist
111111
working-directory: api
112112

113-
- run: PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php -v --dry-run --diff
113+
- run: php vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php -v --dry-run --diff
114114
working-directory: api
115115

116116
frontend-eslint:

api/.php-cs-fixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@
2020
])
2121
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
2222
->setFinder($finder)
23+
->setUnsupportedPhpVersionAllowed(true)
2324
;

api/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@
124124
"symfony/polyfill-php71": "*"
125125
},
126126
"scripts": {
127-
"cs-check": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --dry-run",
128-
"cs-fix": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix",
127+
"cs-check": "php-cs-fixer fix --dry-run",
128+
"cs-fix": "php-cs-fixer fix",
129129
"test": [
130130
"Composer\\Config::disableProcessTimeout",
131131
"vendor/bin/phpunit -d memory_limit=-1 -c phpunit.xml.dist"

0 commit comments

Comments
 (0)