chore: Update PHPStan configuration - add deprecations baseline.

This commit is contained in:
Pol Dellaiera 2021-11-23 15:18:25 +01:00
parent ffbd572513
commit d586f848f5
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA
3 changed files with 1651 additions and 8 deletions

View File

@ -1,10 +1,13 @@
imports: imports:
- { resource: tests/app/vendor/drupol/php-conventions/config/php73/grumphp.yml } - {
resource: tests/app/vendor/drupol/php-conventions/config/php73/grumphp.yml,
}
parameters: parameters:
tasks.phpcsfixer.config: .php_cs.dist.php tasks.phpcsfixer.config: .php_cs.dist.php
tasks.license.name: AGPL-3.0 tasks.license.name: AGPL-3.0
tasks.license.holder: Champs-Libres tasks.license.holder: Champs-Libres
tasks.license.date_from: 2001 tasks.license.date_from: 2001
tasks.phpcsfixer.allow_risky: false tasks.phpcsfixer.allow_risky: false
tasks.phpstan.level: 1

1638
phpstan-deprecations.neon Normal file

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,7 @@ parameters:
paths: paths:
- src/ - src/
excludePaths: excludePaths:
- docs/
- src/Bundle/*/Tests/* - src/Bundle/*/Tests/*
- src/Bundle/*/tests/* - src/Bundle/*/tests/*
- src/Bundle/*/Test/* - src/Bundle/*/Test/*
@ -18,7 +19,8 @@ parameters:
- src/Bundle/*/src/Resources/* - src/Bundle/*/src/Resources/*
includes: includes:
- phpstan-types.neon
- phpstan-critical.neon
- phpstan-baseline.neon - phpstan-baseline.neon
- phpstan-critical.neon
- phpstan-deprecations.neon
- phpstan-types.neon