-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphpstan.neon
More file actions
29 lines (22 loc) · 842 Bytes
/
phpstan.neon
File metadata and controls
29 lines (22 loc) · 842 Bytes
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
parameters:
level: 8
errorFormat: symplify
treatPhpDocTypesAsCertain: false
paths:
- src
- tests
excludePaths:
- '*/tests/**/Source/*'
- '*/tests/**/Fixture/*'
- '*/tests/**/data/*'
ignoreErrors:
# php version depends on runtime
-
message: '#Comparison operation ">=" between int<(.*?), 80499> and 80000 is always true#'
path: src/NodeFactory/ArgsNodeFactory.php
# unclear what to do
- '#Parameter \#1 \$items of class PhpParser\\Node\\Expr\\Array_ constructor expects array<PhpParser\\Node\\ArrayItem>, array<PhpParser\\Node\\Arg> given#'
# runs also on older PHP versions, like 7.4+
-
message: '#Right side of && is always true#'
path: src/NodeFactory/ArgsNodeFactory.php