Skip to content

Commit 5195908

Browse files
swissspidyclaude
andauthored
Exclude the wp-compat false positive from the PHPStan config (#97)
Co-authored-by: Pascal Birchler <pascal.birchler@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 8d09da0 commit 5195908

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
@@ -13,3 +13,15 @@ parameters:
1313
- identifier: missingType.property
1414
- identifier: missingType.parameter
1515
- identifier: missingType.return
16+
17+
# johnbillion/wp-compat checks every WordPress symbol against the WordPress 4.9
18+
# baseline that wp-cli-tests configures, and reports anything newer.
19+
20+
# WordPress 6.0 only formalized the already documented `...$args` parameter of
21+
# `apply_filters()` by adding it to the function signature. Additional arguments were
22+
# collected through `func_get_args()` before that, so passing `$url` and
23+
# `$oembed_args` to `pre_oembed_result` has always worked. The identifier already
24+
# names one specific parameter of one specific function.
25+
-
26+
identifier: WPCompat.parameterNotAvailable.applyfilters.args
27+
path: src/Fetch_Command.php

0 commit comments

Comments
 (0)