wp2static-addon-s3/phpstan.neon
2021-01-15 11:47:22 +10:00

23 lines
1.2 KiB
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
phpVersion: 80000
inferPrivatePropertyTypeFromConstructor: true
paths:
- %currentWorkingDirectory%/src/
- %currentWorkingDirectory%/views/
- %currentWorkingDirectory%/wp2static-addon-s3.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 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.#'