From 33c3891854745fcbad159dab9eb437e89d148c50 Mon Sep 17 00:00:00 2001 From: Daniele Scasciafratte Date: Fri, 19 Jul 2024 15:58:53 +0200 Subject: [PATCH] fix(phpstan): warning --- plugin-name/phpstan.neon | 2 ++ 1 file changed, 2 insertions(+) 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\.$#'