Add PHPStan configuration

This commit is contained in:
Oliver Davies 2024-01-18 13:55:28 +00:00
parent 1977b567dc
commit 58f32fdaf4
2 changed files with 13 additions and 0 deletions

6
phpstan-baseline.neon Normal file
View file

@ -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

7
phpstan.neon.dist Normal file
View file

@ -0,0 +1,7 @@
parameters:
level: 5
paths:
- web/modules/custom/example
includes:
- phpstan-baseline.neon