-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
145 lines (122 loc) · 7 KB
/
phpstan-baseline.neon
File metadata and controls
145 lines (122 loc) · 7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
parameters:
ignoreErrors:
-
message: '#^Parameter \#1 \$data of method Patchlevel\\ODM\\Hydrator\\MongoDBCipherKeyStore\:\:hydrate\(\) expects array\{_id\: string, subject_id\: string, key\: non\-empty\-string, method\: non\-empty\-string, created_at\: string\}, array\|object given\.$#'
identifier: argument.type
count: 2
path: src/Hydrator/MongoDBCipherKeyStore.php
-
message: '#^Parameter \#1 \$id of class Patchlevel\\Hydrator\\Extension\\Cryptography\\Cipher\\CipherKey constructor expects non\-empty\-string, string given\.$#'
identifier: argument.type
count: 1
path: src/Hydrator/MongoDBCipherKeyStore.php
-
message: '#^Parameter \#2 \$subjectId of class Patchlevel\\Hydrator\\Extension\\Cryptography\\Cipher\\CipherKey constructor expects non\-empty\-string, string given\.$#'
identifier: argument.type
count: 1
path: src/Hydrator/MongoDBCipherKeyStore.php
-
message: '#^Method Patchlevel\\ODM\\Hydrator\\RangoCipherKeyStore\:\:collection\(\) should return Patchlevel\\Rango\\Collection\<array\{_id\: string, subject_id\: string, key\: non\-empty\-string, method\: non\-empty\-string, created_at\: string\}\> but returns Patchlevel\\Rango\\Collection\<array\<string, mixed\>\>\.$#'
identifier: return.type
count: 1
path: src/Hydrator/RangoCipherKeyStore.php
-
message: '#^Parameter \#1 \$id of class Patchlevel\\Hydrator\\Extension\\Cryptography\\Cipher\\CipherKey constructor expects non\-empty\-string, string given\.$#'
identifier: argument.type
count: 1
path: src/Hydrator/RangoCipherKeyStore.php
-
message: '#^Parameter \#2 \$subjectId of class Patchlevel\\Hydrator\\Extension\\Cryptography\\Cipher\\CipherKey constructor expects non\-empty\-string, string given\.$#'
identifier: argument.type
count: 1
path: src/Hydrator/RangoCipherKeyStore.php
-
message: '#^Method Patchlevel\\ODM\\Metadata\\AttributeDocumentMetadataFactory\:\:metadata\(\) should return Patchlevel\\ODM\\Metadata\\DocumentMetadata\<T of object\> but returns Patchlevel\\ODM\\Metadata\\DocumentMetadata\<object\>\.$#'
identifier: return.type
count: 1
path: src/Metadata/AttributeDocumentMetadataFactory.php
-
message: '#^Parameter \#1 \$filter of method Patchlevel\\ODM\\Metadata\\DocumentMetadata\<T of object\>\:\:mapFilterToFieldPathsWithFields\(\) expects array\<string, mixed\>, array\<mixed, mixed\> given\.$#'
identifier: argument.type
count: 3
path: src/Metadata/DocumentMetadata.php
-
message: '#^Parameter \#2 \$children of class Patchlevel\\ODM\\Metadata\\FieldMapping constructor expects array\<string, Patchlevel\\ODM\\Metadata\\FieldMapping\>, array\<Patchlevel\\ODM\\Metadata\\FieldMapping\> given\.$#'
identifier: argument.type
count: 1
path: src/Metadata/StackHydratorFieldMappingResolver.php
-
message: '#^PHPDoc tag @return contains generic type MongoDB\\Collection\<array\<string, mixed\>\> but class MongoDB\\Collection is not generic\.$#'
identifier: generics.notGeneric
count: 1
path: src/Repository/MongoDBRepository.php
-
message: '#^Parameter \#1 \$documents of method MongoDB\\Collection\:\:insertMany\(\) expects list\<array\|object\>, array\<int\|string, array\<string, mixed\>\> given\.$#'
identifier: argument.type
count: 1
path: src/Repository/MongoDBRepository.php
-
message: '#^Parameter \#1 \$operations of method MongoDB\\Collection\:\:bulkWrite\(\) expects list\<array\{deleteMany\: array\{0\: array\|object, 1\?\: array\}\}\|array\{deleteOne\: array\{0\: array\|object, 1\?\: array\}\}\|array\{insertOne\: array\{array\|object\}\}\|array\{replaceOne\: array\{0\: array\|object, 1\: array\|object, 2\?\: array\}\}\|array\{updateMany\: array\{0\: array\|object, 1\: array\|object, 2\?\: array\}\}\|array\{updateOne\: array\{0\: array\|object, 1\: array\|object, 2\?\: array\}\}\>, non\-empty\-array\<int\|string, array\{updateOne\: array\{array\{_id\: mixed\}, array\{''\$set''\: array\<string, mixed\>\}\}\}\> given\.$#'
identifier: argument.type
count: 1
path: src/Repository/MongoDBRepository.php
-
message: '#^Parameter \#2 \$data of method Patchlevel\\Hydrator\\HydratorWithContext\:\:hydrate\(\) expects array\<string, mixed\>, array\|object given\.$#'
identifier: argument.type
count: 2
path: src/Repository/MongoDBRepository.php
-
message: '#^Parameter \#2 \$data of method Patchlevel\\Hydrator\\HydratorWithContext\:\:hydrate\(\) expects array\<string, mixed\>, array\|object\|null given\.$#'
identifier: argument.type
count: 2
path: src/Repository/MongoDBRepository.php
-
message: '#^Possibly invalid array key type mixed\.$#'
identifier: offsetAccess.invalidOffset
count: 1
path: src/Repository/MongoDBRepository.php
-
message: '#^Method Patchlevel\\ODM\\Repository\\MongoDBRepositoryManager\:\:get\(\) should return Patchlevel\\ODM\\Repository\\MongoDBRepository\<T of object\> but returns Patchlevel\\ODM\\Repository\\MongoDBRepository\<object\>\.$#'
identifier: return.type
count: 1
path: src/Repository/MongoDBRepositoryManager.php
-
message: '#^Parameter \#1 \$documents of method Patchlevel\\Rango\\Collection\<array\<string, mixed\>\>\:\:insertMany\(\) expects list\<array\<string, mixed\>\>, array\<int\|string, array\<string, mixed\>\> given\.$#'
identifier: argument.type
count: 1
path: src/Repository/RangoRepository.php
-
message: '#^Parameter \#1 \$operations of method Patchlevel\\Rango\\Collection\<array\<string, mixed\>\>\:\:bulkWrite\(\) expects list\<array\<string, list\<array\<string, mixed\>\>\>\>, non\-empty\-array\<int\|string, array\{updateOne\: array\{array\{_id\: mixed\}, array\{''\$set''\: array\<string, mixed\>\}\}\}\> given\.$#'
identifier: argument.type
count: 1
path: src/Repository/RangoRepository.php
-
message: '#^Property Patchlevel\\ODM\\Repository\\RangoRepository\:\:\$collection with generic class Patchlevel\\Rango\\Collection does not specify its types\: TDocument$#'
identifier: missingType.generics
count: 1
path: src/Repository/RangoRepository.php
-
message: '#^Method Patchlevel\\ODM\\Repository\\RangoRepositoryManager\:\:get\(\) should return Patchlevel\\ODM\\Repository\\RangoRepository\<T of object\> but returns Patchlevel\\ODM\\Repository\\RangoRepository\<object\>\.$#'
identifier: return.type
count: 1
path: src/Repository/RangoRepositoryManager.php
-
message: '#^Anonymous function should return string but returns mixed\.$#'
identifier: return.type
count: 3
path: tests/Integration/RepositoryTestCase.php
-
message: '#^Cannot access offset ''_id'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: tests/Integration/RepositoryTestCase.php
-
message: '#^Cannot access offset ''name'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 3
path: tests/Integration/RepositoryTestCase.php
-
message: '#^Parameter \#1 \$iterator of function iterator_to_array expects iterable, mixed given\.$#'
identifier: argument.type
count: 2
path: tests/Integration/RepositoryTestCase.php