From 3df151485ff60c501bf550fc841a8eefe99ce3a3 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Tue, 21 Nov 2023 10:55:08 +0000 Subject: [PATCH] WIP --- phpstan.neon.dist | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 87d8e08..6c8fec4 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -5,9 +5,11 @@ parameters: level: 1 paths: - src - - config tmpDir: build/phpstan checkOctaneCompatibility: true checkModelProperties: true checkMissingIterableValueType: false + ignoreErrors: + # new static() is a best practice in Drupal, so we cannot fix that. + - "#^Unsafe usage of new static#"