Skip to content

Commit 18e0f68

Browse files
swissspidyclaude
andauthored
Exclude the wp-compat false positives from the PHPStan config (#76)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 35c811d commit 18e0f68

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
@@ -11,3 +11,15 @@ parameters:
1111
ignoreErrors:
1212
- identifier: missingType.parameter
1313
- identifier: missingType.return
14+
15+
# johnbillion/wp-compat checks every WordPress symbol against the WordPress 4.9
16+
# baseline that wp-cli-tests configures, and reports anything newer.
17+
18+
# WordPress 5.3 only formalized the already documented `...$arg` parameter of
19+
# `do_action()` by adding it to the function signature. Additional arguments were
20+
# collected through `func_get_args()` before that, so passing the user ID to
21+
# `grant_super_admin` and friends has always worked. The identifier already names one
22+
# specific parameter of one specific function.
23+
-
24+
identifier: WPCompat.parameterNotAvailable.doaction.arg
25+
path: src/Super_Admin_Command.php

0 commit comments

Comments
 (0)