-
Notifications
You must be signed in to change notification settings - Fork 69
/
phpstan.neon
27 lines (27 loc) · 1.12 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
parameters:
paths:
- docroot/modules/custom
- docroot/themes/custom
- tests
excludePaths:
- *Test.php
- *TestBase.php
level: 2
ignoreErrors:
- '#Unsafe usage of new static\(\)#'
- '#Access to an undefined property Drupal\\Core\\Entity\\ContentEntityInterface::\$[^\.]+\.#'
- '#Access to an undefined property Drupal\\Core\\Entity\\EntityInterface::\$[^\.]+\.#'
- '#Access to an undefined property Drupal\\Core\\Field\\FieldItemListInterface::\$[^\.]+\.#'
- '#Call to an undefined method Drupal\\Core\\Entity\\EntityInterface::[^\(]+\(\)\.#'
- '#Call to an undefined method Drupal\\Core\\Field\\FieldDefinitionInterface::[^\(]+\(\)\.#'
- '#Call to an undefined method Drupal\\Core\\Field\\FieldItemListInterface::[^\(]+\(\)\.#'
- '#Call to deprecated function _va_gov_db_uninstall_modules\(\).*#'
reportUnmatchedIgnoredErrors: false
bootstrapFiles:
- phpstan_bootstrap.php
scanFiles:
- scripts/content/script-library.php
includes:
- docroot/vendor/mglaman/phpstan-drupal/extension.neon
- docroot/vendor/phpstan/phpstan-deprecation-rules/rules.neon
- phpstan-baseline.neon