-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathphpstan.neon
36 lines (28 loc) · 1.64 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
parameters:
level: max
paths:
- ecs.php
- packages
excludePaths:
- packages/*/tests/*/Fixture*
- */tests/*/Source/*
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# BC promise
- '#(.*?) interface PHPStan\\Rules\\Rule but does not specify its types\: TNodeType#'
- '#(.*?) is not covered by backward compatibility promise\. The (.*?) might change in a minor PHPStan version#'
- '#Parameter \#2 \$expectedErrors of method PHPStan\\Testing\\RuleTestCase(.*?) expects array<int, array\{0\: string, 1\: int, 2\?\: string\}>, (.*?) given#'
# known type in tests
-
message: '#Cannot cast mixed to string#'
path: packages/twig-phpstan-compiler/tests/TwigToPhpCompiler/
- '#Parameter \#1 \$path of function dirname expects string, string\|false given#'
- '#Method Reveal\\LattePHPStanCompiler\\NodeVisitor\\ParentLayoutNameNodeVisitor\:\:matchParentLayoutName\(\) should return string\|null but returns mixed#'
- '#Method Reveal\\LattePHPStanCompiler\\NodeVisitor\\TemplateIncludesNameNodeVisitor\:\:matchIncludedTemplateName\(\) should return string\|null but returns mixed#'
-
message: '#Cannot access an offset on mixed#'
path: packages/latte-phpstan-compiler/src/LinkProcessor/PresenterActionLinkProcessor.php
- '#Method Reveal\\TemplatePHPStanCompiler\\PHPStan\\PHPStanServicesFactory\:\:createPHPStanParser\(\) should return PHPStan\\Parser\\Parser but returns mixed#'
-
message: '#Unreachable statement \- code above always terminates#'
path: */tests/*