From 1a473f6ea8b51d347de9019041a86fa1837e5f1a Mon Sep 17 00:00:00 2001 From: Bram Driesen <4761-BramDriesen@users.noreply.drupalcode.org> Date: Fri, 8 Mar 2024 15:27:11 +0000 Subject: [PATCH] Issue #3426675: Tweak PHPStan to ignore static warnings --- phpstan.neon | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 phpstan.neon diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 00000000..129b9c2c --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,7 @@ +parameters: + level: 1 + + ignoreErrors: + # new static() is a best practice in Drupal, so we cannot fix that. + # @see https://www.drupal.org/docs/develop/development-tools/phpstan/handling-unsafe-usage-of-new-static + - "#^Unsafe usage of new static#" -- GitLab