diff --git a/plugin-name/phpstan.neon b/plugin-name/phpstan.neon index 4a73945..d6675c9 100644 --- a/plugin-name/phpstan.neon +++ b/plugin-name/phpstan.neon @@ -40,6 +40,8 @@ parameters: # {{/if}} ignoreErrors: - '/^Parameter #1 \$var of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.$/' + - '/^Call to function is_wp_error\(\) with WP_REST_Response will always evaluate to false.$\' + - '/^is_wp_error\(WP_REST_Response\) will always evaluate to false.$/' # Not used in the boilerplate. # # Uses func_get_args() # - '#^Function apply_filters invoked with [34567] parameters, 2 required\.$#'