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
+98-2Lines changed: 98 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,29 @@
1
1
parameters:
2
2
ignoreErrors:
3
+
-
4
+
message:'#^Method Patchlevel\\Rango\\Collection\:\:findOne\(\) should return \(TDocument of array\<string, mixed\>\)\|null but returns array\<string, mixed\>\|null\.$#'
5
+
identifier:return.type
6
+
count:1
7
+
path:src/Collection.php
8
+
9
+
-
10
+
message:'#^Method Patchlevel\\Rango\\Collection\:\:findOneAndDelete\(\) should return \(TDocument of array\<string, mixed\>\)\|null but returns array\<string, mixed\>\|null\.$#'
11
+
identifier:return.type
12
+
count:1
13
+
path:src/Collection.php
14
+
15
+
-
16
+
message:'#^Method Patchlevel\\Rango\\Collection\:\:findOneAndReplace\(\) should return \(TDocument of array\<string, mixed\>\)\|null but returns array\<string, mixed\>\|null\.$#'
17
+
identifier:return.type
18
+
count:1
19
+
path:src/Collection.php
20
+
21
+
-
22
+
message:'#^Method Patchlevel\\Rango\\Collection\:\:findOneAndUpdate\(\) should return \(TDocument of array\<string, mixed\>\)\|null but returns array\<string, mixed\>\|null\.$#'
23
+
identifier:return.type
24
+
count:1
25
+
path:src/Collection.php
26
+
3
27
-
4
28
message:'#^Parameter \#1 \$operation of method Patchlevel\\Rango\\Client\:\:run\(\) expects Patchlevel\\Rango\\Operation\\Operation\<list\<mixed\>\>, Patchlevel\\Rango\\Operation\\Distinct given\.$#'
5
29
identifier:argument.type
@@ -12,6 +36,60 @@ parameters:
12
36
count:1
13
37
path:src/Cursor.php
14
38
39
+
-
40
+
message:'#^Generator expects value type TDocument of array\<string, mixed\>, array\<string, mixed\> given\.$#'
41
+
identifier:generator.valueType
42
+
count:2
43
+
path:src/Cursor.php
44
+
45
+
-
46
+
message:'#^Method Patchlevel\\Rango\\Cursor\:\:toArray\(\) should return array\<int\|string, TDocument of array\<string, mixed\>\> but returns array\<array\<string, mixed\>\>\.$#'
47
+
identifier:return.type
48
+
count:1
49
+
path:src/Cursor.php
50
+
51
+
-
52
+
message:'#^Method Patchlevel\\Rango\\Cursor\:\:toArray\(\) should return array\<int\|string, TDocument of array\<string, mixed\>\> but returns list\<array\<string, mixed\>\>\.$#'
53
+
identifier:return.type
54
+
count:1
55
+
path:src/Cursor.php
56
+
57
+
-
58
+
message:'#^Method Patchlevel\\Rango\\Operation\\Aggregate\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Cursor does not specify its types\: TDocument$#'
59
+
identifier:missingType.generics
60
+
count:1
61
+
path:src/Operation/Aggregate.php
62
+
63
+
-
64
+
message:'#^Method Patchlevel\\Rango\\Operation\\Find\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Cursor does not specify its types\: TDocument$#'
65
+
identifier:missingType.generics
66
+
count:1
67
+
path:src/Operation/Find.php
68
+
69
+
-
70
+
message:'#^Method Patchlevel\\Rango\\Operation\\FindOne\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Cursor does not specify its types\: TDocument$#'
71
+
identifier:missingType.generics
72
+
count:1
73
+
path:src/Operation/FindOne.php
74
+
75
+
-
76
+
message:'#^Method Patchlevel\\Rango\\Operation\\FindOneAndDelete\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Cursor does not specify its types\: TDocument$#'
77
+
identifier:missingType.generics
78
+
count:1
79
+
path:src/Operation/FindOneAndDelete.php
80
+
81
+
-
82
+
message:'#^Method Patchlevel\\Rango\\Operation\\FindOneAndReplace\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Cursor does not specify its types\: TDocument$#'
83
+
identifier:missingType.generics
84
+
count:1
85
+
path:src/Operation/FindOneAndReplace.php
86
+
87
+
-
88
+
message:'#^Method Patchlevel\\Rango\\Operation\\FindOneAndUpdate\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Cursor does not specify its types\: TDocument$#'
89
+
identifier:missingType.generics
90
+
count:1
91
+
path:src/Operation/FindOneAndUpdate.php
92
+
15
93
-
16
94
message:'#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#'
17
95
identifier:foreach.nonIterable
@@ -253,7 +331,7 @@ parameters:
253
331
path:src/QueryBuilder.php
254
332
255
333
-
256
-
message:'#^Call to method PHPUnit\\Framework\\Assert\:\:assertNotNull\(\) with MongoDB\\Collection\|Patchlevel\\Rango\\Collection will always evaluate to true\.$#'
334
+
message:'#^Call to method PHPUnit\\Framework\\Assert\:\:assertNotNull\(\) with MongoDB\\Collection\|Patchlevel\\Rango\\Collection\<array\<string, mixed\>\> will always evaluate to true\.$#'
257
335
identifier:method.alreadyNarrowedType
258
336
count:1
259
337
path:tests/IntegrationTest.php
@@ -426,6 +504,12 @@ parameters:
426
504
count:4
427
505
path:tests/IntegrationTest.php
428
506
507
+
-
508
+
message:'#^Method Patchlevel\\Rango\\Tests\\IntegrationTest\:\:getCollection\(\) return type with generic class Patchlevel\\Rango\\Collection does not specify its types\: TDocument$#'
message:'#^Parameter \#2 \$haystack of method PHPUnit\\Framework\\Assert\:\:assertCount\(\) expects Countable\|iterable, mixed given\.$#'
449
533
identifier:argument.type
450
534
count:2
451
-
path:tests/IntegrationTest.php
535
+
path:tests/IntegrationTest.php
536
+
537
+
-
538
+
message:'#^Property Patchlevel\\Rango\\Tests\\IntegrationTest\:\:\$collection with generic class Patchlevel\\Rango\\Collection does not specify its types\: TDocument$#'
539
+
identifier:missingType.generics
540
+
count:1
541
+
path:tests/IntegrationTest.php
542
+
543
+
-
544
+
message:'#^Method Patchlevel\\Rango\\Tests\\PostgresIntegrationTest\:\:getCollection\(\) return type with generic class Patchlevel\\Rango\\Collection does not specify its types\: TDocument$#'
0 commit comments