Skip to content

Commit fe609e8

Browse files
swissspidyclaude
andauthored
Exclude the wp-compat false positive from the PHPStan config (#186)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5a362ed commit fe609e8

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎phpstan.neon.dist‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,15 @@ parameters:
1818
switchConditionsMatchingType: true
1919
ignoreErrors:
2020
- identifier: missingType.return
21+
22+
# johnbillion/wp-compat checks every WordPress symbol against the WordPress 4.9
23+
# baseline that wp-cli-tests configures, and reports anything newer.
24+
25+
# WordPress 6.0 only formalized the already documented `...$args` parameter of
26+
# `apply_filters()` by adding it to the function signature. Additional arguments were
27+
# collected through `func_get_args()` before that, so passing `$package`, `$this` and
28+
# `$hook_extra` to `upgrader_pre_download` has always worked. The identifier already
29+
# names one specific parameter of one specific function.
30+
-
31+
identifier: WPCompat.parameterNotAvailable.applyfilters.args
32+
path: src/WP_CLI/LanguagePackUpgrader.php

0 commit comments

Comments
 (0)