diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 320835a33..603801133 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -23,7 +23,18 @@ parameters: - includes/ ignoreErrors: - # core/classes/class-setup.php + # includes/core/classes/class-setup.php # # A dev-only errors, which can occur if the gatherpress is symlinked into a WP instance or called via wp-env or Playground. - '#^Path in require_once\(\) "\./wp-admin/includes/upgrade\.php" is not a file or it does not exist\.$#' + + # includes/core/classes/endpoints/class-endpoint.php + # + # A known issue, but not a problem. + # This "callable-string" is only used in a debug message and is not run. + - + # I was not able to get the escaping work for the "'", so this matches all argument.type errors in this file, + # which is not nice, but the workaround. + # message: '#Parameter #1 \$function_name of function wp_trigger_error expects callable-string, \'GatherPress\\Core\\Endpoints\\Endpoint\' given.#' + identifier: argument.type + path: includes/core/classes/endpoints/class-endpoint.php \ No newline at end of file