Add PHPStan configuration
This commit is contained in:
parent
1977b567dc
commit
58f32fdaf4
6
phpstan-baseline.neon
Normal file
6
phpstan-baseline.neon
Normal 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
7
phpstan.neon.dist
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
parameters:
|
||||||
|
level: 5
|
||||||
|
paths:
|
||||||
|
- web/modules/custom/example
|
||||||
|
|
||||||
|
includes:
|
||||||
|
- phpstan-baseline.neon
|
Loading…
Reference in a new issue