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: config/phpstan-baseline.neon
+138Lines changed: 138 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,12 @@ parameters:
12
12
count:1
13
13
path:../src/CSSList/AtRuleBlockList.php
14
14
15
+
-
16
+
message:'#^Only booleans are allowed in an if condition, string given\.$#'
17
+
identifier:if.condNotBoolean
18
+
count:1
19
+
path:../src/CSSList/AtRuleBlockList.php
20
+
15
21
-
16
22
message:'#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:safely\(\)\.$#'
17
23
identifier:method.notFound
@@ -36,6 +42,24 @@ parameters:
36
42
count:1
37
43
path:../src/CSSList/CSSList.php
38
44
45
+
-
46
+
message:'#^Loose comparison via "\!\=" is not allowed\.$#'
47
+
identifier:notEqual.notAllowed
48
+
count:1
49
+
path:../src/CSSList/CSSList.php
50
+
51
+
-
52
+
message:'#^Loose comparison via "\=\=" is not allowed\.$#'
53
+
identifier:equal.notAllowed
54
+
count:1
55
+
path:../src/CSSList/CSSList.php
56
+
57
+
-
58
+
message:'#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#'
59
+
identifier:ternary.shortNotAllowed
60
+
count:1
61
+
path:../src/CSSList/CSSList.php
62
+
39
63
-
40
64
message:'#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
41
65
identifier:method.notFound
@@ -54,6 +78,12 @@ parameters:
54
78
count:1
55
79
path:../src/CSSList/KeyFrame.php
56
80
81
+
-
82
+
message:'#^Variable property access on \$this\(Sabberworm\\CSS\\OutputFormat\)\.$#'
83
+
identifier:property.dynamicName
84
+
count:4
85
+
path:../src/OutputFormat.php
86
+
57
87
-
58
88
message:'#^Default value of the parameter \#2 \$bIncludeEnd \(false\) of method Sabberworm\\CSS\\Parsing\\ParserState\:\:consumeUntil\(\) is incompatible with type string\.$#'
59
89
identifier:parameter.defaultValue
@@ -66,6 +96,24 @@ parameters:
66
96
count:1
67
97
path:../src/Parsing/ParserState.php
68
98
99
+
-
100
+
message:'#^Loose comparison via "\=\=" is not allowed\.$#'
101
+
identifier:equal.notAllowed
102
+
count:1
103
+
path:../src/Parsing/ParserState.php
104
+
105
+
-
106
+
message:'#^Only booleans are allowed in a negated boolean, string given\.$#'
107
+
identifier:booleanNot.exprNotBoolean
108
+
count:1
109
+
path:../src/Parsing/ParserState.php
110
+
111
+
-
112
+
message:'#^Only booleans are allowed in an if condition, string given\.$#'
113
+
identifier:if.condNotBoolean
114
+
count:1
115
+
path:../src/Parsing/ParserState.php
116
+
69
117
-
70
118
message:'#^PHPDoc tag @return with type array\<int, Sabberworm\\CSS\\Comment\\Comment\>\|void is not subtype of native type array\.$#'
71
119
identifier:return.phpDocType
@@ -78,6 +126,12 @@ parameters:
78
126
count:1
79
127
path:../src/Property/CSSNamespace.php
80
128
129
+
-
130
+
message:'#^Only booleans are allowed in an if condition, string given\.$#'
131
+
identifier:if.condNotBoolean
132
+
count:1
133
+
path:../src/Property/CSSNamespace.php
134
+
81
135
-
82
136
message:'#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
83
137
identifier:method.notFound
@@ -96,6 +150,12 @@ parameters:
96
150
count:1
97
151
path:../src/Property/Import.php
98
152
153
+
-
154
+
message:'#^Only booleans are allowed in an if condition, string given\.$#'
155
+
identifier:if.condNotBoolean
156
+
count:1
157
+
path:../src/Property/Import.php
158
+
99
159
-
100
160
message:'#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
101
161
identifier:method.notFound
@@ -108,6 +168,18 @@ parameters:
108
168
count:1
109
169
path:../src/Rule/Rule.php
110
170
171
+
-
172
+
message:'#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#'
173
+
identifier:empty.notAllowed
174
+
count:1
175
+
path:../src/Rule/Rule.php
176
+
177
+
-
178
+
message:'#^Only booleans are allowed in an if condition, Sabberworm\\CSS\\Value\\RuleValueList\|string\|null given\.$#'
179
+
identifier:if.condNotBoolean
180
+
count:1
181
+
path:../src/Rule/Rule.php
182
+
111
183
-
112
184
message:'#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
113
185
identifier:method.notFound
@@ -120,6 +192,12 @@ parameters:
120
192
count:1
121
193
path:../src/RuleSet/AtRuleSet.php
122
194
195
+
-
196
+
message:'#^Only booleans are allowed in an if condition, string given\.$#'
197
+
identifier:if.condNotBoolean
198
+
count:1
199
+
path:../src/RuleSet/AtRuleSet.php
200
+
123
201
-
124
202
message:'#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
125
203
identifier:method.notFound
@@ -150,6 +228,24 @@ parameters:
150
228
count:1
151
229
path:../src/RuleSet/DeclarationBlock.php
152
230
231
+
-
232
+
message:'#^Foreach overwrites \$mSelector with its value variable\.$#'
233
+
identifier:foreach.valueOverwrite
234
+
count:1
235
+
path:../src/RuleSet/DeclarationBlock.php
236
+
237
+
-
238
+
message:'#^Loose comparison via "\!\=" is not allowed\.$#'
239
+
identifier:notEqual.notAllowed
240
+
count:1
241
+
path:../src/RuleSet/DeclarationBlock.php
242
+
243
+
-
244
+
message:'#^Loose comparison via "\=\=" is not allowed\.$#'
245
+
identifier:equal.notAllowed
246
+
count:1
247
+
path:../src/RuleSet/DeclarationBlock.php
248
+
153
249
-
154
250
message:'#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:removeLastSemicolon\(\)\.$#'
155
251
identifier:method.notFound
@@ -180,6 +276,18 @@ parameters:
180
276
count:1
181
277
path:../src/RuleSet/RuleSet.php
182
278
279
+
-
280
+
message:'#^Only booleans are allowed in a negated boolean, string\|null given\.$#'
281
+
identifier:booleanNot.exprNotBoolean
282
+
count:2
283
+
path:../src/RuleSet/RuleSet.php
284
+
285
+
-
286
+
message:'#^Loose comparison via "\!\=" is not allowed\.$#'
287
+
identifier:notEqual.notAllowed
288
+
count:3
289
+
path:../src/Value/CalcFunction.php
290
+
183
291
-
184
292
message:'#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:implode\(\)\.$#'
185
293
identifier:method.notFound
@@ -204,12 +312,30 @@ parameters:
204
312
count:1
205
313
path:../src/Value/Color.php
206
314
315
+
-
316
+
message:'#^Call to method Sabberworm\\CSS\\Value\\Color\:\:hasNoneAsComponentValue\(\) with incorrect case\: HasNoneAsComponentValue$#'
317
+
identifier:method.nameCase
318
+
count:1
319
+
path:../src/Value/Color.php
320
+
207
321
-
208
322
message:'#^Cannot call method getSize\(\) on Sabberworm\\CSS\\Value\\Value\|string\.$#'
209
323
identifier:method.nonObject
210
324
count:3
211
325
path:../src/Value/Color.php
212
326
327
+
-
328
+
message:'#^Loose comparison via "\=\=" is not allowed\.$#'
329
+
identifier:equal.notAllowed
330
+
count:3
331
+
path:../src/Value/Color.php
332
+
333
+
-
334
+
message:'#^Loose comparison via "\!\=" is not allowed\.$#'
335
+
identifier:notEqual.notAllowed
336
+
count:1
337
+
path:../src/Value/Size.php
338
+
213
339
-
214
340
message:'#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:implode\(\)\.$#'
215
341
identifier:method.notFound
@@ -228,4 +354,16 @@ parameters:
228
354
count:1
229
355
path:../src/Value/ValueList.php
230
356
357
+
-
358
+
message:'#^Dynamic call to static method Sabberworm\\CSS\\Tests\\ParserTest\:\:parsedStructureForFile\(\)\.$#'
359
+
identifier:staticMethod.dynamicCall
360
+
count:2
361
+
path:../tests/ParserTest.php
362
+
363
+
-
364
+
message:'#^Loose comparison via "\=\=" is not allowed\.$#'
0 commit comments