Skip to content

Commit c61d6c4

Browse files
committed
Clean up support scripts
1 parent 6d64c2e commit c61d6c4

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.php-cs-fixer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
->in(__DIR__.'/tests')->exclude('Fixtures/var')
1616
;
1717

18-
$config = new PhpCsFixer\Config();
19-
return $config
18+
return (new PhpCsFixer\Config())
19+
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
20+
->setUnsupportedPhpVersionAllowed(true)
21+
2022
->setRiskyAllowed(true)
2123
->setRules([
2224
'@Symfony' => true,

bin/prepare-commit

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ cd $(dirname $0)/..
44

55
export APP_ENV=test
66
export APP_DEBUG=1
7-
export PHP_CS_FIXER_IGNORE_ENV=true
87
export XDEBUG_MODE=coverage
98

10-
vendor/bin/php-cs-fixer fix
9+
vendor/bin/php-cs-fixer fix --quiet
1110
vendor/bin/phpstan
1211

1312
# Clear cache manually to avoid locking up with corrupted container

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ parameters:
55
ignoreErrors:
66
- '#FetchJoinORMOptions contains unresolvable type#'
77

8+
# Symfony Config component is not compatible with high PHPstan levels yet
9+
- '#Symfony\\Component\\Config\\Definition\\Builder#'
10+
811
# New PHPStan 2 errors
912
- { identifier: missingType.generics }
1013
excludePaths:

0 commit comments

Comments
 (0)