-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
phpstan.neon
21 lines (21 loc) · 1.01 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
phpVersion: 80000
inferPrivatePropertyTypeFromConstructor: true
paths:
- %currentWorkingDirectory%/src/
- %currentWorkingDirectory%/views/
- %currentWorkingDirectory%/wp2static-addon-netlify.php
scanFiles:
- %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 getUrl\(\) on an unknown class WP2Static\\SiteInfo.#'
- '#Call to static method getPath\(\) on an unknown class WP2Static\\SiteInfo.#'
- '#Call to static method encrypt_decrypt\(\) on an unknown class WP2Static\\CoreOptions.#'