From a2b37072015742735128b8e6a2b80dc333f6bd0e Mon Sep 17 00:00:00 2001 From: Lee Mills <8024370+millnut@users.noreply.github.com> Date: Tue, 26 Sep 2023 18:39:08 +0100 Subject: [PATCH] ci: fix phpstan - ignore new static() --- phpstan.neon | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpstan.neon b/phpstan.neon index 5450422..15d821d 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -8,3 +8,5 @@ parameters: - '#Plugin definitions cannot be altered.#' - '#Missing cache backend declaration for performance.#' - '#Plugin manager has cache backend specified but does not declare cache tags.#' + # new static() is a best practice in Drupal, so we cannot fix that. + - '#^Unsafe usage of new static#'