From 58f32fdaf4617a592aa1c294aaf412d97a49c7b8 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 18 Jan 2024 13:55:28 +0000 Subject: [PATCH] Add PHPStan configuration --- phpstan-baseline.neon | 6 ++++++ phpstan.neon.dist | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 phpstan-baseline.neon create mode 100644 phpstan.neon.dist diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon new file mode 100644 index 0000000..6a03a98 --- /dev/null +++ b/phpstan-baseline.neon @@ -0,0 +1,6 @@ +parameters: + ignoreErrors: + - + message: "#^Method Drupal\\\\example\\\\Controller\\\\BlogPageController\\:\\:create\\(\\) should return static\\(Drupal\\\\example\\\\Controller\\\\BlogPageController\\) but returns Drupal\\\\example\\\\Controller\\\\BlogPageController\\.$#" + count: 1 + path: web/modules/custom/example/src/Controller/BlogPageController.php diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 0000000..9f2e38e --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,7 @@ +parameters: + level: 5 + paths: + - web/modules/custom/example + +includes: + - phpstan-baseline.neon