-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
phpstan.neon
24 lines (24 loc) · 1.07 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
parameters:
level: max
paths:
- config
- src
- tests
scanDirectories:
- stubs
excludePaths:
- */Source/*
- *Source/*
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# false positive
# - '#Parameter \#1 \$value of static method PhpParser\\BuilderHelpers\:\:normalizeValue\(\) expects array\|bool\|float\|int\|PhpParser\\Node\\Expr\|string\|null, mixed given#'
# -
# path: src/Rector/Class_/UnifyModelDatesWithCastsRector.php
# message: '#Parameter \#1 \$array of function array_keys expects array, mixed given#'
# rector co-variant
# - '#Parameter \#1 \$node \(PhpParser\\Node\\(.*?) of method RectorLaravel\\(.*?)\(\) should be contravariant with parameter \$node \(PhpParser\\Node\) of method Rector\\Core\\Contract\\Rector\\PhpRectorInterface\:\:refactor\(\)#'
# - '#Parameter \#1 \$className of method Rector\\Core\\Reflection\\ReflectionResolver\:\:resolveMethodReflection\(\) expects class\-string, string given#'
-
message: '#Do not use chained method calls\. Put each on separated lines#'
path: config/*