Add PHPStan

This commit is contained in:
Oliver Davies 2025-05-04 21:45:20 +01:00
parent 419d1cec14
commit 9abfb29af7
7 changed files with 203 additions and 19 deletions

19
phpstan-baseline.neon Normal file
View file

@ -0,0 +1,19 @@
parameters:
ignoreErrors:
-
message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:identicalTo\(\)\.$#'
identifier: staticMethod.dynamicCall
count: 1
path: tests/Presentation/TwigExtension/PresentationTwigExtensionTest.php
-
message: '#^Static method PHPUnit\\Framework\\Assert\:\:assertSame\(\) invoked with named argument \$actual, but it''s not allowed because of @no\-named\-arguments\.$#'
identifier: argument.named
count: 1
path: tests/Presentation/TwigExtension/PresentationTwigExtensionTest.php
-
message: '#^Static method PHPUnit\\Framework\\Assert\:\:assertSame\(\) invoked with named argument \$expected, but it''s not allowed because of @no\-named\-arguments\.$#'
identifier: argument.named
count: 1
path: tests/Presentation/TwigExtension/PresentationTwigExtensionTest.php