-
Notifications
You must be signed in to change notification settings - Fork 9
/
phpstan.neon
19 lines (19 loc) · 1015 Bytes
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
level: max
inferPrivatePropertyTypeFromConstructor: true
paths:
- %currentWorkingDirectory%/src/
autoload_files:
- %currentWorkingDirectory%/tests/phpstan/bootstrap.php
- %currentWorkingDirectory%/tests/phpstan/wp-cli-stubs-2.2.0.php
ignoreErrors:
- '#[a-zA-Z0-9\\_]+superglobal[a-zA-Z0-9\\_]+#'
- '#Call to static method l\(\) on an unknown class WP2Static\\WsLog.#'
- '#Call to static method getPath\(\) on an unknown class WP2Static\\SiteInfo.#'
- '#Call to static method fileisCached\(\) on an unknown class WP2Static\\DeployCache.#'
- '#Call to static method addFile\(\) on an unknown class WP2Static\\DeployCache.#'
- '#Call to static method encrypt_decrypt\(\) on an unknown class WP2Static\\CoreOptions.#'