-
Notifications
You must be signed in to change notification settings - Fork 11
/
phpstan.neon.dist
21 lines (20 loc) · 1.02 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
includes:
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
level: max
treatPhpDocTypesAsCertain: false
paths:
- src
- tests
- views
bootstrapFiles:
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
excludePaths:
- tests/php/Fixture/views/broken-view.php
ignoreErrors:
# Ignore errors related to ReflectionClass subtype, see https://github.com/phpstan/phpstan/issues/4078
- '#SimpleInjector::get_dependencies_for\(\) has parameter \$reflection with generic class ReflectionClass but does not specify its types#'
- '#SimpleInjector::ensure_is_instantiable\(\) has parameter \$reflection with generic class ReflectionClass but does not specify its types#'
- '#SimpleInjector::get_class_reflection\(\) return type with generic class ReflectionClass does not specify its types#'
# Ignore errors related to echo and type casting in views.
- '#Parameter \#1 \(mixed\) of echo cannot be converted to string.#'