You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
+47-29Lines changed: 47 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -31,26 +31,20 @@ parameters:
31
31
path:src/Forms/Blueprint.php
32
32
33
33
-
34
-
message:'#^Method Nette\\Forms\\Controls\\BaseControl@anonymous/Forms/Blueprint\.php\:97\:\:getControl\(\) never returns Nette\\Utils\\Html so it can be removed from the return type\.$#'
34
+
message:'#^Method Nette\\Forms\\Controls\\BaseControl@anonymous/Forms/Blueprint\.php\:94\:\:getLabel\(\) never returns null so it can be removed from the return type\.$#'
35
35
identifier:return.unusedType
36
36
count:1
37
37
path:src/Forms/Blueprint.php
38
38
39
39
-
40
-
message:'#^Method Nette\\Forms\\Controls\\BaseControl@anonymous/Forms/Blueprint\.php\:97\:\:getLabel\(\) never returns Nette\\Utils\\Html so it can be removed from the return type\.$#'
41
-
identifier:return.unusedType
42
-
count:1
43
-
path:src/Forms/Blueprint.php
44
-
45
-
-
46
-
message:'#^Method Nette\\Forms\\Form@anonymous/Forms/Blueprint\.php\:89\:\:receiveHttpData\(\) never returns null so it can be removed from the return type\.$#'
47
-
identifier:return.unusedType
40
+
message:'#^Property Nette\\Forms\\Controls\\BaseControl@anonymous/Forms/Blueprint\.php\:94\:\:\$inner \(Nette\\Forms\\Controls\\BaseControl\) does not accept Nette\\Forms\\Control\.$#'
41
+
identifier:assign.propertyType
48
42
count:1
49
43
path:src/Forms/Blueprint.php
50
44
51
45
-
52
-
message:'#^Property Nette\\Forms\\Controls\\BaseControl@anonymous/Forms/Blueprint\.php\:97\:\:\$inner has no type specified\.$#'
53
-
identifier:missingType.property
46
+
message:'#^Ternary operator condition is always true\.$#'
47
+
identifier:ternary.alwaysTrue
54
48
count:1
55
49
path:src/Forms/Blueprint.php
56
50
@@ -84,12 +78,6 @@ parameters:
84
78
count:1
85
79
path:src/Forms/Container.php
86
80
87
-
-
88
-
message:'#^Unable to resolve the template type T in call to method Nette\\Forms\\Container\:\:getUntrustedValues\(\)$#'
89
-
identifier:argument.templateType
90
-
count:1
91
-
path:src/Forms/Container.php
92
-
93
81
-
94
82
message:'#^Call to an undefined method Nette\\Forms\\Control\:\:getForm\(\)\.$#'
95
83
identifier:method.notFound
@@ -150,18 +138,54 @@ parameters:
150
138
count:1
151
139
path:src/Forms/Controls/CheckboxList.php
152
140
141
+
-
142
+
message:'#^Parameter \#1 \$value \(BackedEnum\|int\|string\|null\) of method Nette\\Forms\\Controls\\ChoiceControl\:\:setValue\(\) should be contravariant with parameter \$value \(mixed\) of method Nette\\Forms\\Control\:\:setValue\(\)$#'
143
+
identifier:method.childParameterType
144
+
count:1
145
+
path:src/Forms/Controls/ChoiceControl.php
146
+
147
+
-
148
+
message:'#^Parameter \#1 \$value \(BackedEnum\|int\|string\|null\) of method Nette\\Forms\\Controls\\ChoiceControl\:\:setValue\(\) should be contravariant with parameter \$value \(mixed\) of method Nette\\Forms\\Controls\\BaseControl\:\:setValue\(\)$#'
149
+
identifier:method.childParameterType
150
+
count:1
151
+
path:src/Forms/Controls/ChoiceControl.php
152
+
153
153
-
154
154
message:'#^Call to function is_string\(\) with string will always evaluate to true\.$#'
155
155
identifier:function.alreadyNarrowedType
156
156
count:1
157
157
path:src/Forms/Controls/ColorPicker.php
158
158
159
+
-
160
+
message:'#^Parameter \#1 \$value \(string\|null\) of method Nette\\Forms\\Controls\\ColorPicker\:\:setValue\(\) should be contravariant with parameter \$value \(mixed\) of method Nette\\Forms\\Control\:\:setValue\(\)$#'
161
+
identifier:method.childParameterType
162
+
count:1
163
+
path:src/Forms/Controls/ColorPicker.php
164
+
165
+
-
166
+
message:'#^Parameter \#1 \$value \(string\|null\) of method Nette\\Forms\\Controls\\ColorPicker\:\:setValue\(\) should be contravariant with parameter \$value \(mixed\) of method Nette\\Forms\\Controls\\BaseControl\:\:setValue\(\)$#'
167
+
identifier:method.childParameterType
168
+
count:1
169
+
path:src/Forms/Controls/ColorPicker.php
170
+
159
171
-
160
172
message:'#^Match expression does not handle remaining values\: int\<min, 0\>\|int\<4, max\>$#'
161
173
identifier:match.unhandled
162
174
count:4
163
175
path:src/Forms/Controls/DateTimeControl.php
164
176
177
+
-
178
+
message:'#^Parameter \#1 \$value \(DateTimeInterface\|int\|string\|null\) of method Nette\\Forms\\Controls\\DateTimeControl\:\:setValue\(\) should be contravariant with parameter \$value \(mixed\) of method Nette\\Forms\\Control\:\:setValue\(\)$#'
179
+
identifier:method.childParameterType
180
+
count:1
181
+
path:src/Forms/Controls/DateTimeControl.php
182
+
183
+
-
184
+
message:'#^Parameter \#1 \$value \(DateTimeInterface\|int\|string\|null\) of method Nette\\Forms\\Controls\\DateTimeControl\:\:setValue\(\) should be contravariant with parameter \$value \(mixed\) of method Nette\\Forms\\Controls\\BaseControl\:\:setValue\(\)$#'
185
+
identifier:method.childParameterType
186
+
count:1
187
+
path:src/Forms/Controls/DateTimeControl.php
188
+
165
189
-
166
190
message:'#^Method Nette\\Forms\\Controls\\HiddenField\:\:getLabel\(\) has parameter \$caption with no type specified\.$#'
167
191
identifier:missingType.parameter
@@ -192,12 +216,6 @@ parameters:
192
216
count:1
193
217
path:src/Forms/Controls/SubmitButton.php
194
218
195
-
-
196
-
message:'#^Call to an undefined method Nette\\ComponentModel\\IComponent\:\:getValue\(\)\.$#'
197
-
identifier:method.notFound
198
-
count:1
199
-
path:src/Forms/Form.php
200
-
201
219
-
202
220
message:'#^Call to an undefined method Nette\\Forms\\Control\:\:getParent\(\)\.$#'
203
221
identifier:method.notFound
@@ -216,6 +234,12 @@ parameters:
216
234
count:1
217
235
path:src/Forms/Form.php
218
236
237
+
-
238
+
message:'#^Return type \(static\(Nette\\Forms\\Form\)\) of method Nette\\Forms\\Form\:\:getForm\(\) should be covariant with return type \(\(\$throw is true \? Nette\\Forms\\Form \: Nette\\Forms\\Form\|null\)\) of method Nette\\Forms\\Container\:\:getForm\(\)$#'
239
+
identifier:method.childReturnType
240
+
count:1
241
+
path:src/Forms/Form.php
242
+
219
243
-
220
244
message:'#^Call to an undefined method Nette\\Forms\\Control\:\:getHtmlName\(\)\.$#'
221
245
identifier:method.notFound
@@ -228,12 +252,6 @@ parameters:
228
252
count:1
229
253
path:src/Forms/Helpers.php
230
254
231
-
-
232
-
message:'#^Parameter \#1 \$callback of function array_map expects \(callable\(Nette\\Utils\\ImageType\)\: mixed\)\|null, Closure\(1\|2\|3\|6\|18\|19\)\: string given\.$#'
233
-
identifier:argument.type
234
-
count:1
235
-
path:src/Forms/Helpers.php
236
-
237
255
-
238
256
message:'#^Strict comparison using \=\=\= between '''' and '''' will always evaluate to true\.$#'
0 commit comments