Skip to content

Commit 26aca72

Browse files
committed
update php-cs fixer to get rid of PHP_CS_FIXER_IGNORE_ENV variable
1 parent 93d6a45 commit 26aca72

File tree

6 files changed

+189
-178
lines changed

6 files changed

+189
-178
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
> If a modification is not involved, please skip it directly.
99
1010
- If you modified `*.php` or `*.json`, run them locally to ensure your changes are valid:
11-
- [ ] `PHP_CS_FIXER_IGNORE_ENV=1 composer cs-fix`
11+
- [ ] `composer cs-fix`
1212
- [ ] `composer analyse`
1313
- [ ] `composer test`
1414
- [ ] `bin/spc dev:sort-config`

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
tools: pecl, composer, php-cs-fixer
4040

4141
- name: Run PHP-CS-Fixer fix
42-
run: PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --dry-run --diff --ansi
42+
run: php-cs-fixer fix --dry-run --diff --ansi
4343

4444
phpstan:
4545
runs-on: ubuntu-latest

.php-cs-fixer.php

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

55
return (new PhpCsFixer\Config())
66
->setRiskyAllowed(true)
7+
->setUnsupportedPhpVersionAllowed(true)
78
->setRules([
89
'@PSR12' => true,
910
'@Symfony' => true,

bin/php-cs-fixer-wrapper

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
22

33
# get parent dir, and run the php-cs-fixer
4-
PHP_CS_FIXER_IGNORE_ENV=1 "$(dirname "$0")/../vendor/bin/php-cs-fixer" "$@"
4+
"$(dirname "$0")/../vendor/bin/php-cs-fixer" "$@"

0 commit comments

Comments
 (0)