forked from johnbillion/query-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.dist
42 lines (41 loc) · 1.11 KB
/
phpstan.neon.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
includes:
- 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/acceptance
- tests/integration
- wp-content
scanDirectories:
- tests/_support
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\.$#'
# 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#'
# False positive
-
path: collectors/theme.php
message: '#^Offset (string|mixed) on array\{\} in isset\(\) does not exist\.$#'
# Data providers for acceptance tests:
-
path: tests/acceptance/*
message: '#^Method [^:]+::data[a-zA-Z]+\(\) is unused\.$#'
reportUnmatchedIgnoredErrors: false