-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
211 lines (177 loc) · 6.67 KB
/
phpstan-baseline.neon
File metadata and controls
211 lines (177 loc) · 6.67 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
parameters:
ignoreErrors:
-
message: '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#'
identifier: ternary.shortNotAllowed
count: 1
path: src/Image.php
-
message: '#^Variable property access on \$this\(Contributte\\ImageStorage\\Image\)\.$#'
identifier: property.dynamicName
count: 1
path: src/Image.php
-
message: '#^Only booleans are allowed in &&, array\<int\> given on the left side\.$#'
identifier: booleanAnd.leftNotBoolean
count: 1
path: src/ImageNameScript.php
-
message: '#^Only booleans are allowed in &&, int given on the right side\.$#'
identifier: booleanAnd.rightNotBoolean
count: 2
path: src/ImageNameScript.php
-
message: '#^Only booleans are allowed in &&, string given on the left side\.$#'
identifier: booleanAnd.leftNotBoolean
count: 1
path: src/ImageNameScript.php
-
message: '#^Only booleans are allowed in &&, string given on the right side\.$#'
identifier: booleanAnd.rightNotBoolean
count: 3
path: src/ImageNameScript.php
-
message: '#^Only booleans are allowed in an if condition, array\<int\> given\.$#'
identifier: if.condNotBoolean
count: 1
path: src/ImageNameScript.php
-
message: '#^Only booleans are allowed in an if condition, int given\.$#'
identifier: if.condNotBoolean
count: 2
path: src/ImageNameScript.php
-
message: '#^Only booleans are allowed in an if condition, int\<0, max\> given\.$#'
identifier: if.condNotBoolean
count: 2
path: src/ImageNameScript.php
-
message: '#^Parameter \#1 \$pattern of function preg_match expects string, string\|null given\.$#'
identifier: argument.type
count: 1
path: src/ImageNameScript.php
-
message: '#^Cannot use array destructuring on Contributte\\ImageStorage\\Image\|list\<Contributte\\ImageStorage\\ImageNameScript\|string\>\.$#'
identifier: offsetAccess.nonArray
count: 2
path: src/ImageStorage.php
-
message: '#^Method Contributte\\ImageStorage\\ImageStorage\:\:fromIdentifier\(\) should return Contributte\\ImageStorage\\Image but returns Contributte\\ImageStorage\\Image\|list\<Contributte\\ImageStorage\\ImageNameScript\|string\>\.$#'
identifier: return.type
count: 1
path: src/ImageStorage.php
-
message: '#^Negated boolean expression is always false\.$#'
identifier: booleanNot.alwaysFalse
count: 1
path: src/ImageStorage.php
-
message: '#^Only booleans are allowed in &&, int given on the right side\.$#'
identifier: booleanAnd.rightNotBoolean
count: 1
path: src/ImageStorage.php
-
message: '#^Only booleans are allowed in a negated boolean, int given\.$#'
identifier: booleanNot.exprNotBoolean
count: 2
path: src/ImageStorage.php
-
message: '#^Only booleans are allowed in a negated boolean, int\|false given\.$#'
identifier: booleanNot.exprNotBoolean
count: 1
path: src/ImageStorage.php
-
message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#'
identifier: booleanNot.exprNotBoolean
count: 2
path: src/ImageStorage.php
-
message: '#^Only booleans are allowed in a negated boolean, string given\.$#'
identifier: booleanNot.exprNotBoolean
count: 1
path: src/ImageStorage.php
-
message: '#^Only booleans are allowed in a negated boolean, string\|null given\.$#'
identifier: booleanNot.exprNotBoolean
count: 2
path: src/ImageStorage.php
-
message: '#^Parameter \#1 \$identifier of static method Contributte\\ImageStorage\\ImageNameScript\:\:fromIdentifier\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/ImageStorage.php
-
message: '#^Parameter \#1 \$name of static method Contributte\\ImageStorage\\ImageNameScript\:\:fromName\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/ImageStorage.php
-
message: '#^Parameter \#1 \$pattern of function preg_match expects string, string\|null given\.$#'
identifier: argument.type
count: 1
path: src/ImageStorage.php
-
message: '#^Parameter \#1 \$s of static method Nette\\Utils\\Image\:\:fromString\(\) expects string, string\|false given\.$#'
identifier: argument.type
count: 1
path: src/ImageStorage.php
-
message: '#^Parameter \#2 \$quality of method Nette\\Utils\\Image\:\:save\(\) expects int\|null, mixed given\.$#'
identifier: argument.type
count: 1
path: src/ImageStorage.php
-
message: '#^Parameter \#3 \$checksum of method Contributte\\ImageStorage\\ImageStorage\:\:getSavePath\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 2
path: src/ImageStorage.php
-
message: '#^Parameter \#3 \$mode of method Nette\\Utils\\Image\:\:resize\(\) expects int\<0, 15\>, int given\.$#'
identifier: argument.type
count: 1
path: src/ImageStorage.php
-
message: '#^Parameter \#4 \$identifier of class Contributte\\ImageStorage\\Image constructor expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/ImageStorage.php
-
message: '#^Parameter \#5 \$props of class Contributte\\ImageStorage\\Image constructor expects array\<bool\|Contributte\\ImageStorage\\ImageNameScript\|string\|null\>, array\<string, mixed\> given\.$#'
identifier: argument.type
count: 2
path: src/ImageStorage.php
-
message: '#^Right side of && is always true\.$#'
identifier: booleanAnd.rightAlwaysTrue
count: 1
path: src/ImageStorage.php
-
message: '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#'
identifier: ternary.shortNotAllowed
count: 1
path: src/ImageStorage.php
-
message: '#^Undefined variable\: \$i$#'
identifier: variable.undefined
count: 1
path: src/ImageStorage.php
-
message: '#^Variable \$i might not be defined\.$#'
identifier: variable.undefined
count: 1
path: src/ImageStorage.php
-
message: '#^Variable \$path might not be defined\.$#'
identifier: variable.undefined
count: 1
path: src/ImageStorage.php
-
message: '#^Trait Contributte\\ImageStorage\\ImageStoragePresenterTrait is used zero times and is not analysed\.$#'
identifier: trait.unused
count: 1
path: src/ImageStoragePresenterTrait.php
-
message: '#^Return type \(array\<mixed\>\) of method Contributte\\ImageStorage\\Latte\\LatteExtension\:\:getTags\(\) should be covariant with return type \(array\<string, \(callable\(Latte\\Compiler\\Tag, Latte\\Compiler\\TemplateParser\)\: \(Generator\|Latte\\Compiler\\Node\|void\)\)\|stdClass\>\) of method Latte\\Extension\:\:getTags\(\)$#'
identifier: method.childReturnType
count: 1
path: src/Latte/LatteExtension.php