wp2static-addon-netlify/phpstan.neon
2020-11-28 15:21:03 +10:30

19 lines
973 B
Text

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/
- %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.#'