Skip to content

Commit

Permalink
Ignore phpstan error (probably introduced with #928)
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion committed Oct 25, 2024
1 parent 3f1429f commit 7f1510a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7f1510a

Please sign in to comment.