diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 25c2e56..5d5751e 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -13,3 +13,15 @@ parameters: - identifier: missingType.property - identifier: missingType.parameter - 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 `$url` and + # `$oembed_args` to `pre_oembed_result` has always worked. The identifier already + # names one specific parameter of one specific function. + - + identifier: WPCompat.parameterNotAvailable.applyfilters.args + path: src/Fetch_Command.php