forked from driftingly/rector-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
34 lines (25 loc) · 1.31 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
includes:
- vendor/symplify/phpstan-rules/config/rector-rules.neon
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\|UnitEnum\|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#'
# Laravel Container not being recognized properly in some of the tests
- '#Call to method needs\(\) on an unknown class Illuminate\\Contracts\\Container\\ContextualBindingBuilder#'