Add PHPStan

This commit is contained in:
Oliver Davies 2020-04-24 08:54:02 +01:00
parent 1ab692bb16
commit cb781a8583
4 changed files with 355 additions and 2 deletions

12
phpstan.neon Normal file
View file

@ -0,0 +1,12 @@
parameters:
level: 7
paths:
- web/modules/custom
- web/themes/custom
excludes_analyse:
- *Test.php
- *TestBase.php
checkMissingIterableValueType: false
includes:
- vendor/mglaman/phpstan-drupal/extension.neon
- vendor/phpstan/phpstan-deprecation-rules/rules.neon