forked from driftingly/rector-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
29 lines (21 loc) · 1.04 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
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 (.*?) of method RectorLaravel\\(.*?)\:\:(refactor|refactorWithScope)\(\) should be contravariant with parameter \$node \(PhpParser\\Node\) of method Rector\\Contract\\Rector\\RectorInterface\:\:refactor\(\)#'
- '#Parameter \#1 \$className of method Rector\\Reflection\\ReflectionResolver\:\:resolveMethodReflection\(\) expects class\-string, string given#'