-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
211 lines (177 loc) · 8.48 KB
/
Copy pathphpstan-baseline.neon
File metadata and controls
211 lines (177 loc) · 8.48 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
parameters:
ignoreErrors:
-
message: '#^Offset ''k'' on array\{v\: 1, a\: non\-empty\-string, k\: non\-empty\-string, n\?\: non\-empty\-string, d\: non\-empty\-string, t\?\: non\-empty\-string\} on left side of \?\? always exists and is not nullable\.$#'
identifier: nullCoalesce.offset
count: 1
path: src/Extension/Cryptography/BaseCryptographer.php
-
message: '#^Parameter \#1 \$subjectId of callable Patchlevel\\Hydrator\\Extension\\Cryptography\\Cipher\\CipherKeyFactory expects non\-empty\-string, string given\.$#'
identifier: argument.type
count: 1
path: src/Extension/Cryptography/BaseCryptographer.php
-
message: '#^Strict comparison using \=\=\= between non\-empty\-string and null will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 1
path: src/Extension/Cryptography/BaseCryptographer.php
-
message: '#^Parameter \#1 \$data of class Patchlevel\\Hydrator\\Extension\\Cryptography\\Cipher\\EncryptedData constructor expects non\-empty\-string, string given\.$#'
identifier: argument.type
count: 1
path: src/Extension/Cryptography/Cipher/OpensslCipher.php
-
message: '#^Parameter \#1 \$data of function openssl_decrypt expects string, string\|false given\.$#'
identifier: argument.type
count: 1
path: src/Extension/Cryptography/Cipher/OpensslCipher.php
-
message: '#^Parameter \#3 \$nonce of class Patchlevel\\Hydrator\\Extension\\Cryptography\\Cipher\\EncryptedData constructor expects non\-empty\-string\|null, string\|null given\.$#'
identifier: argument.type
count: 1
path: src/Extension/Cryptography/Cipher/OpensslCipher.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/Extension/Cryptography/Cipher/OpensslCipherKeyFactory.php
-
message: '#^Parameter \#3 \$key of class Patchlevel\\Hydrator\\Extension\\Cryptography\\Cipher\\CipherKey constructor expects non\-empty\-string, string given\.$#'
identifier: argument.type
count: 1
path: src/Extension/Cryptography/Cipher/OpensslCipherKeyFactory.php
-
message: '#^Method Patchlevel\\Hydrator\\Guesser\\BuiltInGuesser\:\:guess\(\) has parameter \$type with generic class Symfony\\Component\\TypeInfo\\Type\\ObjectType but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Guesser/BuiltInGuesser.php
-
message: '#^Parameter \#1 \$className of class Patchlevel\\Hydrator\\Normalizer\\ObjectNormalizer constructor expects class\-string\|null, string given\.$#'
identifier: argument.type
count: 1
path: src/Guesser/BuiltInGuesser.php
-
message: '#^Parameter \#1 \$enum of class Patchlevel\\Hydrator\\Normalizer\\EnumNormalizer constructor expects class\-string\<BackedEnum\>\|null, string given\.$#'
identifier: argument.type
count: 1
path: src/Guesser/BuiltInGuesser.php
-
message: '#^Method Patchlevel\\Hydrator\\Guesser\\ChainGuesser\:\:guess\(\) has parameter \$type with generic class Symfony\\Component\\TypeInfo\\Type\\ObjectType but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Guesser/ChainGuesser.php
-
message: '#^Method Patchlevel\\Hydrator\\Guesser\\Guesser\:\:guess\(\) has parameter \$type with generic class Symfony\\Component\\TypeInfo\\Type\\ObjectType but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Guesser/Guesser.php
-
message: '#^Dead catch \- ReflectionException is never thrown in the try block\.$#'
identifier: catch.neverThrown
count: 1
path: src/Metadata/AttributeMetadataFactory.php
-
message: '#^Parameter \#1 \$class of method Patchlevel\\Hydrator\\Metadata\\AttributeMetadataFactory\:\:findNormalizerOnClass\(\) expects class\-string, string given\.$#'
identifier: argument.type
count: 3
path: src/Metadata/AttributeMetadataFactory.php
-
message: '#^Property Patchlevel\\Hydrator\\Metadata\\ClassMetadata\<T of object \= object\>\:\:\$reflection \(ReflectionClass\<T of object \= object\>\) does not accept ReflectionClass\<object\>\.$#'
identifier: assign.propertyType
count: 1
path: src/Metadata/ClassMetadata.php
-
message: '#^Method Patchlevel\\Hydrator\\Middleware\\TransformMiddleware\:\:hydrate\(\) should return T of object but returns mixed\.$#'
identifier: return.type
count: 1
path: src/Middleware/TransformMiddleware.php
-
message: '#^Parameter \#1 \$object of method Patchlevel\\Hydrator\\Metadata\\PropertyMetadata\:\:setValue\(\) expects object, mixed given\.$#'
identifier: argument.type
count: 2
path: src/Middleware/TransformMiddleware.php
-
message: '#^Property Patchlevel\\Hydrator\\Normalizer\\EnumNormalizer\:\:\$enum \(class\-string\<BackedEnum\>\|null\) does not accept string\.$#'
identifier: assign.propertyType
count: 1
path: src/Normalizer/EnumNormalizer.php
-
message: '#^Property Patchlevel\\Hydrator\\Normalizer\\ObjectNormalizer\:\:\$className \(class\-string\|null\) does not accept string\.$#'
identifier: assign.propertyType
count: 1
path: src/Normalizer/ObjectNormalizer.php
-
message: '#^Parameter \#1 \$middlewares of class Patchlevel\\Hydrator\\Middleware\\Stack constructor expects non\-empty\-list\<Patchlevel\\Hydrator\\Middleware\\Middleware\>, list\<Patchlevel\\Hydrator\\Middleware\\Middleware\> given\.$#'
identifier: argument.type
count: 4
path: src/StackHydrator.php
-
message: '#^Parameter \#2 \$data of method Patchlevel\\Hydrator\\Middleware\\Middleware\:\:hydrate\(\) expects array\<string, mixed\>, array\<mixed, mixed\> given\.$#'
identifier: argument.type
count: 3
path: src/StackHydrator.php
-
message: '#^Property Patchlevel\\Hydrator\\Tests\\Unit\\Extension\\Cryptography\\Fixture\\ChildWithSensitiveDataWithIdentifierDto\:\:\$email is never read, only written\.$#'
identifier: property.onlyWritten
count: 1
path: tests/Unit/Extension/Cryptography/Fixture/ChildWithSensitiveDataWithIdentifierDto.php
-
message: '#^Class Patchlevel\\Hydrator\\Cryptography\\PayloadCryptographer not found\.$#'
identifier: class.notFound
count: 1
path: tests/Unit/Extension/Upcast/UpcastExtensionTest.php
-
message: '#^Class Patchlevel\\Hydrator\\Extension\\Cryptography\\CryptographyExtension constructor invoked with 2 parameters, 1 required\.$#'
identifier: arguments.count
count: 1
path: tests/Unit/Extension/Upcast/UpcastExtensionTest.php
-
message: '#^Class Patchlevel\\Hydrator\\Extension\\Cryptography\\LegacyCryptographyDecryptMiddleware not found\.$#'
identifier: class.notFound
count: 1
path: tests/Unit/Extension/Upcast/UpcastExtensionTest.php
-
message: '#^Binary operation "\." between mixed and '' '' results in an error\.$#'
identifier: binaryOp.invalid
count: 1
path: tests/Unit/Extension/Upcast/UpcastMiddlewareTest.php
-
message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#'
identifier: binaryOp.invalid
count: 1
path: tests/Unit/Extension/Upcast/UpcastMiddlewareTest.php
-
message: '#^Property Patchlevel\\Hydrator\\Tests\\Unit\\Fixture\\IdNormalizer\:\:\$idClass \(class\-string\<Patchlevel\\Hydrator\\Tests\\Unit\\Fixture\\Id\>\|null\) does not accept string\.$#'
identifier: assign.propertyType
count: 1
path: tests/Unit/Fixture/IdNormalizer.php
-
message: '#^Parameter \#1 \$class of method Patchlevel\\Hydrator\\Metadata\\AttributeMetadataFactory\:\:metadata\(\) expects class\-string\<Unknown\>, string given\.$#'
identifier: argument.type
count: 1
path: tests/Unit/Metadata/AttributeMetadataFactoryTest.php
-
message: '#^Cannot cast mixed to int\.$#'
identifier: cast.int
count: 2
path: tests/Unit/Normalizer/ArrayNormalizerTest.php
-
message: '#^Cannot cast mixed to string\.$#'
identifier: cast.string
count: 2
path: tests/Unit/Normalizer/ArrayNormalizerTest.php
-
message: '#^Cannot cast mixed to int\.$#'
identifier: cast.int
count: 2
path: tests/Unit/Normalizer/ArrayShapeNormalizerTest.php
-
message: '#^Cannot cast mixed to string\.$#'
identifier: cast.string
count: 2
path: tests/Unit/Normalizer/ArrayShapeNormalizerTest.php
-
message: '#^Parameter \#1 \$class of method Patchlevel\\Hydrator\\StackHydrator\:\:hydrate\(\) expects class\-string\<Unknown\>, string given\.$#'
identifier: argument.type
count: 1
path: tests/Unit/StackHydratorTest.php