diff --git a/phpstan.neon.dist b/phpstan.neon.dist index ecb0735b..fa01e11b 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -18,3 +18,15 @@ parameters: switchConditionsMatchingType: true ignoreErrors: - identifier: missingType.return + + # johnbillion/wp-compat checks every WordPress symbol against the WordPress 4.9 + # baseline that wp-cli-tests configures, and reports anything newer. + + # WordPress 6.0 only formalized the already documented `...$args` parameter of + # `apply_filters()` by adding it to the function signature. Additional arguments were + # collected through `func_get_args()` before that, so passing `$package`, `$this` and + # `$hook_extra` to `upgrader_pre_download` has always worked. The identifier already + # names one specific parameter of one specific function. + - + identifier: WPCompat.parameterNotAvailable.applyfilters.args + path: src/WP_CLI/LanguagePackUpgrader.php