parent
092f88f187
commit
b61e110c61
@ -1,32 +1,32 @@
|
||||
includes:
|
||||
- vendor/phpstan/phpstan-phpunit/extension.neon
|
||||
- vendor/szepeviktor/phpstan-wordpress/extension.neon
|
||||
- vendor/phpstan/phpstan-phpunit/extension.neon
|
||||
- vendor/szepeviktor/phpstan-wordpress/extension.neon
|
||||
parameters:
|
||||
level: 6
|
||||
tmpDir: tests/cache
|
||||
paths:
|
||||
- query-monitor.php
|
||||
- classes
|
||||
- collectors
|
||||
- dispatchers
|
||||
- output
|
||||
- tests/integration
|
||||
- wp-content
|
||||
excludePaths:
|
||||
analyse:
|
||||
- tests/cache
|
||||
- tests/integration/Supports
|
||||
bootstrapFiles:
|
||||
- tests/phpstan/stubs.php
|
||||
dynamicConstantNames:
|
||||
- SAVEQUERIES
|
||||
ignoreErrors:
|
||||
# Uses func_get_args()
|
||||
- '#^Function apply_filters invoked with [34567] parameters, 2 required\.$#'
|
||||
# These are false positives
|
||||
- '#Instanceof between string and mysqli will always evaluate to false#'
|
||||
- '#Call to function is_resource\(\) with string will always evaluate to false#'
|
||||
# The `wpdb` class exposes its properties via `__get()`
|
||||
- '#Access to private property wpdb::#'
|
||||
- '#Access to protected property wpdb::#'
|
||||
- '#Property wpdb::\$use_mysqli \(bool\) in isset\(\) is not nullable#'
|
||||
level: 6
|
||||
tmpDir: tests/cache
|
||||
paths:
|
||||
- query-monitor.php
|
||||
- classes
|
||||
- collectors
|
||||
- dispatchers
|
||||
- output
|
||||
- tests/integration
|
||||
- wp-content
|
||||
excludePaths:
|
||||
analyse:
|
||||
- tests/cache
|
||||
- tests/integration/Supports
|
||||
bootstrapFiles:
|
||||
- tests/phpstan/stubs.php
|
||||
dynamicConstantNames:
|
||||
- SAVEQUERIES
|
||||
ignoreErrors:
|
||||
# Uses func_get_args()
|
||||
- '#^Function apply_filters invoked with [34567] parameters, 2 required\.$#'
|
||||
# These are false positives
|
||||
- '#Instanceof between string and mysqli will always evaluate to false#'
|
||||
- '#Call to function is_resource\(\) with string will always evaluate to false#'
|
||||
# The `wpdb` class exposes its properties via `__get()`
|
||||
- '#Access to private property wpdb::#'
|
||||
- '#Access to protected property wpdb::#'
|
||||
- '#Property wpdb::\$use_mysqli \(bool\) in isset\(\) is not nullable#'
|
||||
|
Loading…
Reference in new issue