Skip to content

Commit 36353d0

Browse files
swissspidyclaude
andauthored
Exclude the wp-compat false positives from the PHPStan config (#145)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5541c04 commit 36353d0

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎phpstan.neon.dist‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,21 @@ parameters:
1414
- identifier: missingType.property
1515
- identifier: missingType.parameter
1616
- identifier: missingType.return
17+
18+
# johnbillion/wp-compat checks every WordPress symbol against the WordPress 4.9
19+
# baseline that wp-cli-tests configures, and reports anything newer.
20+
21+
# WordPress 6.0 and 5.3 only formalized the already documented `...$args` and
22+
# `...$arg` parameters of `apply_filters()` and `do_action()` by adding them to the
23+
# function signatures. Additional arguments were collected through `func_get_args()`
24+
# before that, so passing them has always worked. Both identifiers already name one
25+
# specific parameter of one specific function.
26+
-
27+
identifier: WPCompat.parameterNotAvailable.applyfilters.args
28+
path: src/WP_Export_Query.php
29+
-
30+
identifier: WPCompat.parameterNotAvailable.doaction.arg
31+
paths:
32+
- src/WP_Export_Returner.php
33+
- src/WP_Export_Split_Files_Writer.php
34+
- src/WP_Export_XML_Over_HTTP.php

0 commit comments

Comments
 (0)