-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
phpstan.neon.dist
28 lines (28 loc) · 1.06 KB
/
phpstan.neon.dist
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
28
parameters:
level: 4
editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'
bootstrapFiles:
- phpstan-bootstrap.php
paths:
- src
universalObjectCratesClasses:
# Useful until we have https://www.drupal.org/project/drupal/issues/2024043
- Drupal\Core\Extension\Extension
- Drupal\views\ViewExecutable
excludePaths:
# Deliberately calls optional external code.
- src/Psysh/Caster.php
# Remove once https://github.com/mglaman/phpstan-drupal/issues/741 is resolved
- src/Commands/core/LocaleCommands.php
- src/Commands/core/LanguageCommands.php
ignoreErrors:
# XHprof
- '#tideways_xhprof_enable#'
- '#tideways_xhprof_disable#'
- '#Constant DRUSH_DRUPAL_CORE not found.#'
- '#Constant TIDEWAYS_XHPROF_FLAGS_NO_BUILTINS not found.#'
- '#Constant TIDEWAYS_XHPROF_FLAGS_CPU not found.#'
- '#Constant TIDEWAYS_XHPROF_FLAGS_MEMORY not found.#'
includes:
- vendor/mglaman/phpstan-drupal/extension.neon
- phpstan-baseline.neon