forked from department-of-veterans-affairs/va.gov-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
23 lines (23 loc) · 937 Bytes
/
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
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\\Field\\FieldItemListInterface::\$entity\.#'
- '#Access to an undefined property Drupal\\Core\\Field\\FieldItemListInterface::\$target_id\.#'
- '#Access to an undefined property Drupal\\Core\\Field\\FieldItemListInterface::\$value\.#'
- '#Call to an undefined method Drupal\\Core\\Field\\FieldDefinitionInterface::get\(\)\.#'
- '#Access to an undefined property Drupal\\Core\\Entity\\ContentEntityInterface::\$.*\.#'
reportUnmatchedIgnoredErrors: false
bootstrapFiles:
- phpstan_bootstrap.php
includes:
- docroot/vendor/mglaman/phpstan-drupal/extension.neon
- docroot/vendor/phpstan/phpstan-deprecation-rules/rules.neon
- phpstan-baseline.neon