Repository navigation
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
52 lines (51 loc) · 2.36 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
52 lines (51 loc) · 2.36 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
parameters:
level: 9
paths:
- src
- ability-command.php
scanDirectories:
- vendor/wp-cli/wp-cli/php
scanFiles:
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
treatPhpDocTypesAsCertain: false
ignoreErrors:
# WP-CLI command method signatures use untyped arrays
-
message: '#no value type specified in iterable type array#'
reportUnmatched: false
# WordPress Abilities API classes (WP 6.9+) not yet in stubs
-
message: '#Call to an undefined method WP_Ability::#'
reportUnmatched: false
-
message: '#Call to an undefined method WP_Ability_Category::#'
reportUnmatched: false
-
message: '#Call to static method YAMLDump\(\) on an unknown class Spyc#'
reportUnmatched: false
# Mixed type from assoc_args iteration
-
message: '#Cannot access offset string on mixed#'
reportUnmatched: false
# johnbillion/wp-compat checks every WordPress symbol against the WordPress 4.9
# baseline that wp-cli-tests configures. It only recognizes function_exists() and
# method_exists() guards, so it cannot see the `before_invoke` check in
# ability-command.php that aborts every `wp ability` command below WordPress 6.9.
#
# The entries below match on the message as well as the identifier, naming both the
# symbols and that version, so a call to anything introduced after 6.9 still gets
# reported rather than swallowed by a file-wide ignore.
-
identifier: WPCompat.functionNotAvailable
message: '#^(wp_get_abilities|wp_get_ability|wp_get_ability_categories|wp_get_ability_category|wp_has_ability|wp_has_ability_category)\(\) is only available since WordPress version 6\.9\.0\.$#'
paths:
- src/Ability_Command.php
- src/Ability_Category_Command.php
-
identifier: WPCompat.methodNotAvailable
message: '#^WP_Ability::(check_permissions|execute|get_category|get_description|get_input_schema|get_label|get_meta|get_meta_item|get_name|get_output_schema|normalize_input|validate_input)\(\) is only available since WordPress version 6\.9\.0\.$#'
path: src/Ability_Command.php
-
identifier: WPCompat.methodNotAvailable
message: '#^WP_Ability_Category::(get_description|get_label|get_meta|get_slug)\(\) is only available since WordPress version 6\.9\.0\.$#'
path: src/Ability_Category_Command.php