-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
phpstan.neon
40 lines (29 loc) · 1.81 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
37
38
39
40
parameters:
paths:
- bootstrap
- src
- tests
excludePaths:
- */Fixture/*
- */Expected/*
bootstrapFiles:
- vendor/rector/rector/vendor/symplify/rule-doc-generator-contracts/src/ValueObject/RuleDefinition.php
level: 8
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# in glob() we trust
- '#Method Rector\\Website\\Repository\\PostRepository\:\:findPostsFilePaths\(\) should return array<string> but returns array<int, string\|false>#'
# invalid doc type
- '#Parameter \#2 \$font of method Imagine\\Draw\\DrawerInterface\:\:text\(\) expects Imagine\\Image\\AbstractFont, Imagine\\Image\\FontInterface given#'
# float allowed
- '#Parameter (.*?) of class Imagine\\Image\\Box constructor expects int, float given#'
# will be solved most likely once Larastan is updated to Laravel 11 conventions
- '#Call to an undefined method Illuminate\\Contracts\\(.*?)|Illuminate\\#'
- '#Method Rector\\Website\\PhpParser\\NodeResolver\\FocusedNodeResolver\:\:focus\(\) should return PhpParser\\Node but returns PhpParser\\Node\|null#'
- '#Method Rector\\Website\\PhpParser\\ClickablePrinter\:\:pObjectProperty\(\) has parameter \$node with no type specified#'
-
message: '#Method Rector\\Website\\FileSystem\\RectorFinder\:\:findRectorClasses\(\) should return array<class\-string<Rector\\Contract\\Rector\\RectorInterface>> but returns array<int, string>#'
path: src/FileSystem/RectorFinder.php
# wip
- '#Property Rector\\Website\\RuleFilter\\ValueObject\\RectorSet\:\:\$setFilePath is never read, only written#'
- '#Method Rector\\Website\\Utils\\ClassNameResolver\:\:resolveFromFileContents\(\) should return class\-string\|null but returns string#'