-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
32 lines (27 loc) · 1.25 KB
/
phpstan.neon
File metadata and controls
32 lines (27 loc) · 1.25 KB
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
includes:
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
level: 5
paths:
- optimizations-ace-mc.php
- class-optimizations-ace-mc.php
excludePaths:
- .github
- .vscode
bootstrapFiles:
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
- optimizations-ace-mc.php
treatPhpDocTypesAsCertain: false
ignoreErrors:
# Ignore WordPress global variables that might not be defined in test context
- '#Variable \$wpdb might not be defined#'
- '#Variable \$wp_query might not be defined#'
- '#Variable \$post might not be defined#'
# Ignore singleton pattern type checking issues
- '#Call to function is_null\(\) with .* will always evaluate to false#'
# Ignore WP Store Locator functions that may not be available during analysis
- '#Function wpsl_store_header_template not found#'
- '#Function wpsl_address_format_placeholders not found#'
# Ignore WP_Term property checks as they are always strings but we need to check for empty values
- '#Property WP_Term::\$name \(string\) in isset\(\) is not nullable#'
- '#Property WP_Term::\$name \(string\) in empty\(\) is not nullable#'