-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
phpstan.neon
95 lines (72 loc) · 3.55 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
parameters:
treatPhpDocTypesAsCertain: false
paths:
- bin
- bootstrap/app.php
- src
- tests
excludePaths:
- */Fixture/*
- */Expected/*
# generated and slow
- src/Ast/PhpParser/ClickablePrinter.php
bootstrapFiles:
- vendor/rector/rector/vendor/symplify/rule-doc-generator-contracts/src/ValueObject/RuleDefinition.php
- vendor/rector/rector/vendor/symplify/rule-doc-generator-contracts/src/Contract/CodeSampleInterface.php
- tests/bootstrap.php
level: 8
# unused_public:
# template_paths:
# - resources/views
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# in glob() we trust
- '#Method App\\Repository\\PostRepository\:\:findPostsFilePaths\(\) should return array<string> but returns array<int, string\|false>#'
# float allowed
- '#Parameter (.*?) of class Imagine\\Image\\Box constructor expects int, float given#'
# known values
-
message: '#Offset 1 on array\{string\} on left side of \?\? does not exist#'
paths:
- src/Controller/
- src/Ast/Controller/
- '#Call to an undefined method Illuminate\\Contracts\\(.*?)|Illuminate\\#'
-
message: '#Method App\\FileSystem\\RectorFinder\:\:findRectorClasses\(\) should return array<class\-string<Rector\\Contract\\Rector\\RectorInterface>> but returns array<int, string>#'
path: src/FileSystem/RectorFinder.php
# stmts vs nodes
- '#Method App\\PhpParser\\SimplePhpParser\:\:parseString\(\) should return array<PhpParser\\Node\\Stmt> but returns array<PhpParser\\Node>#'
# parent laravel model configuration property
- '#Public property "App\\Ast\\Entity\\AstRun\:\:\$timestamps" is never used#'
# make models pass without ide helper
-
path: src/Ast/Entity/AstRun.php
message: '#Access to an undefined property App\\Ast\\Entity\\AstRun\:\:\$(content|hash)#'
- '#PHPDoc tag @mixin contains unknown class App\\Ast\\Entity\\IdeHelperAstRun#'
- '#Call to an undefined static method App\\Ast\\Entity\\AstRun\:\:firstWhere\(\)#'
- '#Parameter \#1 \$rectorClass of method App\\RuleFilter\\ValueObject\\RectorSet\:\:hasRule\(\) expects class\-string, string given#'
# inherited from php-parser
-
message: '#Parameter \#1 \$nodes of method PhpParser\\PrettyPrinterAbstract\:\:pCommaSeparatedMultiline\(\) expects array<PhpParser\\Node>, array<PhpParser\\Node\\Expr\\ArrayItem\|null> given#'
path: src/RuleFilter/PhpParser/Printer/RectorConfigStmtsPrinter.php
# livewire component
-
message: '#Variable \$step might not be defined#'
path: src/Livewire/StepByStepComponent.php
# only type
- '#Method App\\Thumbnail\\ThumbnailGenerator\:\:createFont\(\) should return Imagine\\Image\\AbstractFont but returns Imagine\\Image\\FontInterface#'
# false positive
-
message: '#Cannot call method format\(\) on Carbon\\Carbon\|null#'
path: src/Controller/Stats/FindRuleStatsController.php
-
message: '#Call to an undefined method Rector\\Contract\\Rector\\RectorInterface\:\:getRuleDefinition\(\)#'
path: src/FileSystem/RectorFinder.php
-
identifier: argument.type
# realpath usage
-
identifier: return.type
# enforce native
-
identifier: varTag.nativeType