diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 8168aa3..1fee9bf 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -9,3 +9,15 @@ parameters: - vendor/php-stubs/wordpress-stubs/wordpress-stubs.php - vendor/wp-cli/mustangostang-spyc/src/Spyc.php treatPhpDocTypesAsCertain: false + ignoreErrors: + # johnbillion/wp-compat checks every WordPress symbol against the WordPress 4.9 + # baseline that wp-cli-tests configures, and reports anything newer. + + # WordPress 5.3 only formalized the already documented `...$arg` parameter of + # `do_action()` by adding it to the function signature. Additional arguments were + # collected through `func_get_args()` before that, so passing the server instance to + # `rest_api_init` has always worked. The identifier already names one specific + # parameter of one specific function. + - + identifier: WPCompat.parameterNotAvailable.doaction.arg + path: inc/Runner.php