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
+116-8Lines changed: 116 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,23 @@
1
1
parameters:
2
2
ignoreErrors:
3
+
-
4
+
message:'#^Method Patchlevel\\Rango\\Client\:\:getCollection\(\) return type with generic class Patchlevel\\Rango\\Collection does not specify its types\: TDocument$#'
5
+
identifier:missingType.generics
6
+
count:1
7
+
path:src/Client.php
8
+
9
+
-
10
+
message:'#^Method Patchlevel\\Rango\\Client\:\:listCollections\(\) should return Iterator\<mixed, Patchlevel\\Rango\\Model\\CollectionInfo\> but returns list\<array\<string, string\>\>\.$#'
11
+
identifier:return.type
12
+
count:1
13
+
path:src/Client.php
14
+
15
+
-
16
+
message:'#^Method Patchlevel\\Rango\\Client\:\:listDatabases\(\) should return Iterator\<mixed, Patchlevel\\Rango\\Model\\DatabaseInfo\> but returns list\<array\<string, string\>\>\.$#'
17
+
identifier:return.type
18
+
count:1
19
+
path:src/Client.php
20
+
3
21
-
4
22
message:'#^Method Patchlevel\\Rango\\Collection\:\:findOne\(\) should return \(TDocument of array\<string, mixed\>\)\|null but returns array\<string, mixed\>\|null\.$#'
message:'#^Parameter \#1 \$operation of method Patchlevel\\Rango\\Client\:\:run\(\) expects Patchlevel\\Rango\\Operation\\Operation\<list\<mixed\>\>, Patchlevel\\Rango\\Operation\\Distinct given\.$#'
29
53
identifier:argument.type
@@ -54,6 +78,54 @@ parameters:
54
78
count:1
55
79
path:src/Cursor.php
56
80
81
+
-
82
+
message:'#^Parameter \#1 \$key of function array_key_exists expects int\|string, mixed given\.$#'
83
+
identifier:argument.type
84
+
count:1
85
+
path:src/Model/CollectionInfo.php
86
+
87
+
-
88
+
message:'#^Possibly invalid array key type mixed\.$#'
89
+
identifier:offsetAccess.invalidOffset
90
+
count:1
91
+
path:src/Model/CollectionInfo.php
92
+
93
+
-
94
+
message:'#^Parameter \#1 \$key of function array_key_exists expects int\|string, mixed given\.$#'
95
+
identifier:argument.type
96
+
count:1
97
+
path:src/Model/DatabaseInfo.php
98
+
99
+
-
100
+
message:'#^Possibly invalid array key type mixed\.$#'
101
+
identifier:offsetAccess.invalidOffset
102
+
count:1
103
+
path:src/Model/DatabaseInfo.php
104
+
105
+
-
106
+
message:'#^Class Patchlevel\\Rango\\Model\\IndexInfo implements generic interface ArrayAccess but does not specify its types\: TKey, TValue$#'
107
+
identifier:missingType.generics
108
+
count:1
109
+
path:src/Model/IndexInfo.php
110
+
111
+
-
112
+
message:'#^Parameter \#1 \$key of function array_key_exists expects int\|string, mixed given\.$#'
113
+
identifier:argument.type
114
+
count:1
115
+
path:src/Model/IndexInfo.php
116
+
117
+
-
118
+
message:'#^Possibly invalid array key type mixed\.$#'
119
+
identifier:offsetAccess.invalidOffset
120
+
count:1
121
+
path:src/Model/IndexInfo.php
122
+
123
+
-
124
+
message:'#^Property Patchlevel\\Rango\\Model\\IndexInfo\:\:\$info on left side of \?\? is not nullable nor uninitialized\.$#'
125
+
identifier:nullCoalesce.initializedProperty
126
+
count:1
127
+
path:src/Model/IndexInfo.php
128
+
57
129
-
58
130
message:'#^Method Patchlevel\\Rango\\Operation\\Aggregate\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Cursor does not specify its types\: TDocument$#'
59
131
identifier:missingType.generics
@@ -90,6 +162,18 @@ parameters:
90
162
count:1
91
163
path:src/Operation/FindOneAndUpdate.php
92
164
165
+
-
166
+
message:'#^Return type \(Iterator\<mixed, Patchlevel\\Rango\\Model\\CollectionInfo\>\) of method Patchlevel\\Rango\\Operation\\ListCollections\:\:execute\(\) should be compatible with return type \(list\<array\{name\: string\}\>\) of method Patchlevel\\Rango\\Operation\\Operation\<list\<array\<string, string\>\>\>\:\:execute\(\)$#'
167
+
identifier:method.childReturnType
168
+
count:1
169
+
path:src/Operation/ListCollections.php
170
+
171
+
-
172
+
message:'#^Return type \(Iterator\<mixed, Patchlevel\\Rango\\Model\\DatabaseInfo\>\) of method Patchlevel\\Rango\\Operation\\ListDatabases\:\:execute\(\) should be compatible with return type \(list\<array\{name\: string\}\>\) of method Patchlevel\\Rango\\Operation\\Operation\<list\<array\<string, string\>\>\>\:\:execute\(\)$#'
173
+
identifier:method.childReturnType
174
+
count:1
175
+
path:src/Operation/ListDatabases.php
176
+
93
177
-
94
178
message:'#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#'
95
179
identifier:foreach.nonIterable
@@ -183,7 +267,7 @@ parameters:
183
267
-
184
268
message:'#^Cannot cast mixed to string\.$#'
185
269
identifier:cast.string
186
-
count:6
270
+
count:9
187
271
path:src/Query/FilterBuilder.php
188
272
189
273
-
@@ -337,8 +421,32 @@ parameters:
337
421
path:src/QueryBuilder.php
338
422
339
423
-
340
-
message:'#^Call to method PHPUnit\\Framework\\Assert\:\:assertNotNull\(\) with MongoDB\\Database\|Patchlevel\\Rango\\Database will always evaluate to true\.$#'
341
-
identifier:method.alreadyNarrowedType
424
+
message:'#^Call to function is_array\(\) with Iterator\<int, MongoDB\\Model\\CollectionInfo\>\|Iterator\<mixed, Patchlevel\\Rango\\Model\\CollectionInfo\> will always evaluate to false\.$#'
425
+
identifier:function.impossibleType
426
+
count:2
427
+
path:tests/IntegrationTest.php
428
+
429
+
-
430
+
message:'#^Call to function is_array\(\) with Iterator\<int, MongoDB\\Model\\DatabaseInfo\>\|Iterator\<mixed, Patchlevel\\Rango\\Model\\DatabaseInfo\> will always evaluate to false\.$#'
431
+
identifier:function.impossibleType
432
+
count:1
433
+
path:tests/IntegrationTest.php
434
+
435
+
-
436
+
message:'#^Call to function is_array\(\) with MongoDB\\Model\\CollectionInfo\|Patchlevel\\Rango\\Model\\CollectionInfo will always evaluate to false\.$#'
437
+
identifier:function.impossibleType
438
+
count:2
439
+
path:tests/IntegrationTest.php
440
+
441
+
-
442
+
message:'#^Call to function is_array\(\) with MongoDB\\Model\\DatabaseInfo\|Patchlevel\\Rango\\Model\\DatabaseInfo will always evaluate to false\.$#'
443
+
identifier:function.impossibleType
444
+
count:1
445
+
path:tests/IntegrationTest.php
446
+
447
+
-
448
+
message:'#^Call to static method PHPUnit\\Framework\\Assert\:\:assertNotNull\(\) with MongoDB\\Database\|Patchlevel\\Rango\\Database will always evaluate to true\.$#'
0 commit comments