-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
33 lines (30 loc) · 1.39 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
33 lines (30 loc) · 1.39 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
parameters:
level: 9
paths:
- src
- media-command.php
scanDirectories:
- vendor/wp-cli/wp-cli/php
scanFiles:
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
treatPhpDocTypesAsCertain: false
ignoreErrors:
- identifier: missingType.iterableValue
# 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 `wp_version_compare()` checks used
# throughout this command.
# WordPress 6.0 only formalized the already documented `...$args` parameter of
# `apply_filters()` by adding it to the function signature. Additional arguments
# were collected through `func_get_args()` before that. The two
# `intermediate_image_sizes_advanced` calls are already split across a
# `wp_version_compare()` check for exactly this reason.
-
identifier: WPCompat.parameterNotAvailable.applyfilters.args
path: src/Media_Command.php
# `Media_Command::wp_get_registered_image_subsizes()` only calls its WordPress 5.3
# namesake behind a `wp_version_compare()` check, and reimplements it otherwise.
-
identifier: WPCompat.functionNotAvailable
message: '#^wp_get_registered_image_subsizes\(\) is only available since WordPress version 5\.3\.0\.$#'
path: src/Media_Command.php