Skip to content

Commit 140d3f4

Browse files
committed
add phpstan errors in baseline
1 parent adefdd4 commit 140d3f4

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

phpstan-baseline.neon

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -54,41 +54,41 @@ parameters:
5454
count: 1
5555
path: src/Collection.php
5656

57+
-
58+
message: '#^Parameter \#1 \$key of function array_key_exists expects int\|string, mixed given\.$#'
59+
identifier: argument.type
60+
count: 1
61+
path: src/Model/CollectionInfo.php
62+
63+
-
64+
message: '#^Possibly invalid array key type mixed\.$#'
65+
identifier: offsetAccess.invalidOffset
66+
count: 1
67+
path: src/Model/CollectionInfo.php
68+
5769
-
5870
message: '#^Call to function is_array\(\) with array\<string, mixed\> will always evaluate to true\.$#'
5971
identifier: function.alreadyNarrowedType
6072
count: 1
61-
path: src/Cursor.php
73+
path: src/Model/Cursor.php
6274

6375
-
6476
message: '#^Generator expects value type TDocument of array\<string, mixed\>, array\<string, mixed\> given\.$#'
6577
identifier: generator.valueType
6678
count: 2
67-
path: src/Cursor.php
79+
path: src/Model/Cursor.php
6880

6981
-
70-
message: '#^Method Patchlevel\\Rango\\Cursor\:\:toArray\(\) should return list\<TDocument of array\<string, mixed\>\> but returns array\<array\<string, mixed\>\>\.$#'
82+
message: '#^Method Patchlevel\\Rango\\Model\\Cursor\:\:toArray\(\) should return list\<TDocument of array\<string, mixed\>\> but returns array\<array\<string, mixed\>\>\.$#'
7183
identifier: return.type
7284
count: 1
73-
path: src/Cursor.php
85+
path: src/Model/Cursor.php
7486

7587
-
76-
message: '#^Method Patchlevel\\Rango\\Cursor\:\:toArray\(\) should return list\<TDocument of array\<string, mixed\>\> but returns list\<array\<string, mixed\>\>\.$#'
88+
message: '#^Method Patchlevel\\Rango\\Model\\Cursor\:\:toArray\(\) should return list\<TDocument of array\<string, mixed\>\> but returns list\<array\<string, mixed\>\>\.$#'
7789
identifier: return.type
7890
count: 1
79-
path: src/Cursor.php
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
91+
path: src/Model/Cursor.php
9292

9393
-
9494
message: '#^Parameter \#1 \$key of function array_key_exists expects int\|string, mixed given\.$#'
@@ -127,37 +127,37 @@ parameters:
127127
path: src/Model/IndexInfo.php
128128

129129
-
130-
message: '#^Method Patchlevel\\Rango\\Operation\\Aggregate\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Cursor does not specify its types\: TDocument$#'
130+
message: '#^Method Patchlevel\\Rango\\Operation\\Aggregate\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Model\\Cursor does not specify its types\: TDocument$#'
131131
identifier: missingType.generics
132132
count: 1
133133
path: src/Operation/Aggregate.php
134134

135135
-
136-
message: '#^Method Patchlevel\\Rango\\Operation\\Find\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Cursor does not specify its types\: TDocument$#'
136+
message: '#^Method Patchlevel\\Rango\\Operation\\Find\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Model\\Cursor does not specify its types\: TDocument$#'
137137
identifier: missingType.generics
138138
count: 1
139139
path: src/Operation/Find.php
140140

141141
-
142-
message: '#^Method Patchlevel\\Rango\\Operation\\FindOne\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Cursor does not specify its types\: TDocument$#'
142+
message: '#^Method Patchlevel\\Rango\\Operation\\FindOne\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Model\\Cursor does not specify its types\: TDocument$#'
143143
identifier: missingType.generics
144144
count: 1
145145
path: src/Operation/FindOne.php
146146

147147
-
148-
message: '#^Method Patchlevel\\Rango\\Operation\\FindOneAndDelete\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Cursor does not specify its types\: TDocument$#'
148+
message: '#^Method Patchlevel\\Rango\\Operation\\FindOneAndDelete\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Model\\Cursor does not specify its types\: TDocument$#'
149149
identifier: missingType.generics
150150
count: 1
151151
path: src/Operation/FindOneAndDelete.php
152152

153153
-
154-
message: '#^Method Patchlevel\\Rango\\Operation\\FindOneAndReplace\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Cursor does not specify its types\: TDocument$#'
154+
message: '#^Method Patchlevel\\Rango\\Operation\\FindOneAndReplace\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Model\\Cursor does not specify its types\: TDocument$#'
155155
identifier: missingType.generics
156156
count: 1
157157
path: src/Operation/FindOneAndReplace.php
158158

159159
-
160-
message: '#^Method Patchlevel\\Rango\\Operation\\FindOneAndUpdate\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Cursor does not specify its types\: TDocument$#'
160+
message: '#^Method Patchlevel\\Rango\\Operation\\FindOneAndUpdate\:\:execute\(\) return type with generic class Patchlevel\\Rango\\Model\\Cursor does not specify its types\: TDocument$#'
161161
identifier: missingType.generics
162162
count: 1
163163
path: src/Operation/FindOneAndUpdate.php

0 commit comments

Comments
 (0)