Skip to content

Commit 115128b

Browse files
swissspidyclaude
andauthored
Exclude the wp-compat false positive from the PHPStan config (#343)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 52041f6 commit 115128b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎phpstan.neon.dist‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,13 @@ parameters:
1212
- identifier: missingType.iterableValue
1313
- identifier: missingType.parameter
1414
- identifier: missingType.return
15+
16+
# johnbillion/wp-compat checks every WordPress symbol against the WordPress 4.9
17+
# baseline that wp-cli-tests configures, and reports anything newer.
18+
19+
# WordPress 6.0 only formalized the already documented `...$args` parameter of
20+
# `apply_filters()` by adding it to the function signature. Additional arguments
21+
# were collected through `func_get_args()` before that.
22+
-
23+
identifier: WPCompat.parameterNotAvailable.applyfilters.args
24+
path: src/WP_CLI/Core/CoreUpgrader.php

0 commit comments

Comments
 (0)