-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
psalm-baseline.xml
189 lines (189 loc) · 6.82 KB
/
psalm-baseline.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.24.0@462c80e31c34e58cc4f750c656be3927e80e550e">
<file src="src/Handler/Http/Middleware/SentryTrap/EnvelopeParser.php">
<ArgumentTypeCoercion>
<code><![CDATA[$offset - $currentPos]]></code>
</ArgumentTypeCoercion>
<MixedArgument>
<code><![CDATA[$headers]]></code>
<code><![CDATA[$itemHeader]]></code>
</MixedArgument>
<MixedArrayAccess>
<code><![CDATA[$itemHeader['length']]]></code>
<code><![CDATA[$itemHeader['type']]]></code>
</MixedArrayAccess>
<MixedAssignment>
<code><![CDATA[$headers]]></code>
<code><![CDATA[$itemHeader]]></code>
<code><![CDATA[$type]]></code>
</MixedAssignment>
</file>
<file src="src/Handler/Pipeline.php">
<MixedInferredReturnType>
<code><![CDATA[TReturn]]></code>
</MixedInferredReturnType>
<MixedMethodCall>
<code><![CDATA[$this->method]]></code>
</MixedMethodCall>
<MixedReturnStatement>
<code><![CDATA[$middleware->{$this->method}(...$arguments)]]></code>
</MixedReturnStatement>
</file>
<file src="src/Logger.php">
<ArgumentTypeCoercion>
<code><![CDATA[$values]]></code>
<code><![CDATA[$values]]></code>
<code><![CDATA[$values]]></code>
<code><![CDATA[$values]]></code>
</ArgumentTypeCoercion>
</file>
<file src="src/Proto/Frame/Binary.php">
<LessSpecificReturnStatement>
<code><![CDATA[(int) $this->stream->getSize()]]></code>
</LessSpecificReturnStatement>
<MoreSpecificReturnType>
<code><![CDATA[int]]></code>
</MoreSpecificReturnType>
</file>
<file src="src/Proto/Frame/Http.php">
<MixedArgument>
<code><![CDATA[$file['clientFilename']]]></code>
<code><![CDATA[$file['clientMediaType']]]></code>
<code><![CDATA[$file['content']]]></code>
<code><![CDATA[$file['size']]]></code>
<code><![CDATA[$payload['body'] ?? '']]></code>
<code><![CDATA[$payload['cookies'] ?? []]]></code>
<code><![CDATA[$payload['method'] ?? 'GET']]></code>
<code><![CDATA[$payload['protocolVersion'] ?? '1.1']]></code>
<code><![CDATA[$payload['queryParams'] ?? []]]></code>
<code><![CDATA[$payload['serverParams'] ?? []]]></code>
<code><![CDATA[$payload['uploadedFiles'] ?? []]]></code>
<code><![CDATA[$payload['uri'] ?? '/']]></code>
</MixedArgument>
<MixedArrayAccess>
<code><![CDATA[$payload['body']]]></code>
<code><![CDATA[$payload['cookies']]]></code>
<code><![CDATA[$payload['headers']]]></code>
<code><![CDATA[$payload['method']]]></code>
<code><![CDATA[$payload['protocolVersion']]]></code>
<code><![CDATA[$payload['queryParams']]]></code>
<code><![CDATA[$payload['serverParams']]]></code>
<code><![CDATA[$payload['uploadedFiles']]]></code>
<code><![CDATA[$payload['uri']]]></code>
</MixedArrayAccess>
<MixedAssignment>
<code><![CDATA[$payload]]></code>
</MixedAssignment>
<MixedReturnTypeCoercion>
<code><![CDATA[$this->request->getUploadedFiles()]]></code>
<code><![CDATA[array]]></code>
</MixedReturnTypeCoercion>
</file>
<file src="src/Proto/Frame/Monolog.php">
<MixedArgument>
<code><![CDATA[\json_decode($payload, true, JSON_THROW_ON_ERROR)]]></code>
</MixedArgument>
</file>
<file src="src/Proto/Server/Version/V1.php">
<ArgumentTypeCoercion>
<code><![CDATA[$payload]]></code>
</ArgumentTypeCoercion>
<PossiblyFalseOperand>
<code><![CDATA[\strpos($payload, '[')]]></code>
</PossiblyFalseOperand>
</file>
<file src="src/Sender/Console/Renderer/Http.php">
<MixedArgumentTypeCoercion>
<code><![CDATA[$request->getCookieParams()]]></code>
<code><![CDATA[$request->getQueryParams()]]></code>
</MixedArgumentTypeCoercion>
</file>
<file src="src/Sender/Console/Renderer/Monolog.php">
<MixedArgument>
<code><![CDATA[$payload['level_name']]]></code>
<code><![CDATA[$payload['message']]]></code>
</MixedArgument>
</file>
<file src="src/Sender/Console/Renderer/Sentry/Exceptions.php">
<ArgumentTypeCoercion>
<code><![CDATA[$file]]></code>
<code><![CDATA[$file]]></code>
</ArgumentTypeCoercion>
<MissingClosureReturnType/>
<MixedArgument>
<code><![CDATA[$exception['type'] ?? 'Exception']]></code>
<code><![CDATA[$exception['value']]]></code>
</MixedArgument>
<MixedAssignment>
<code><![CDATA[$row]]></code>
<code><![CDATA[$stacktrace]]></code>
</MixedAssignment>
<PossiblyInvalidArgument>
<code><![CDATA[\str_replace('\\', '/', $file)]]></code>
</PossiblyInvalidArgument>
</file>
<file src="src/Sender/Console/Renderer/Sentry/Header.php">
<MixedArgumentTypeCoercion>
<code><![CDATA[$message]]></code>
<code><![CDATA[$tags]]></code>
<code><![CDATA[(array) $context['os']]]></code>
<code><![CDATA[(array) $context['runtime']]]></code>
<code><![CDATA[(array) $message['sdk']]]></code>
</MixedArgumentTypeCoercion>
<MixedAssignment>
<code><![CDATA[$meta['Event ID']]]></code>
<code><![CDATA[$meta['Server']]]></code>
<code><![CDATA[$meta['Transaction']]]></code>
</MixedAssignment>
</file>
<file src="src/Sender/Console/Renderer/SentryEnvelope.php">
<MixedArgument>
<code><![CDATA[$item->payload]]></code>
</MixedArgument>
<MixedArrayAccess>
<code><![CDATA[$data->payload['exceptions']]]></code>
</MixedArrayAccess>
<MixedAssignment>
<code><![CDATA[$type]]></code>
</MixedAssignment>
</file>
<file src="src/Sender/Console/Renderer/VarDumper.php">
<MixedAssignment>
<code><![CDATA[$controller]]></code>
<code><![CDATA[$meta['Command']]]></code>
<code><![CDATA[$meta['File']]]></code>
<code><![CDATA[$meta['Method']]]></code>
<code><![CDATA[$meta['URI']]]></code>
</MixedAssignment>
</file>
<file src="src/Sender/Console/Support/Common.php">
<MixedAssignment>
<code><![CDATA[$item]]></code>
</MixedAssignment>
</file>
<file src="src/Sender/SocketSender.php">
<MixedPropertyTypeCoercion>
<code><![CDATA[new \SplQueue()]]></code>
</MixedPropertyTypeCoercion>
</file>
<file src="src/Socket/SocketStream.php">
<MixedPropertyTypeCoercion>
<code><![CDATA[new \SplQueue()]]></code>
</MixedPropertyTypeCoercion>
</file>
<file src="src/Client/Caster/ProtobufCaster.php">
<MixedArgument>
<code><![CDATA[$ed->getClass()]]></code>
<code><![CDATA[$value]]></code>
<code><![CDATA[$value]]></code>
</MixedArgument>
<MixedArrayOffset>
<code><![CDATA[$values[$fd->getName()]]]></code>
<code><![CDATA[$values[$fd->getName()]]]></code>
</MixedArrayOffset>
<MixedAssignment>
<code><![CDATA[$value]]></code>
<code><![CDATA[$values[$fd->getName()]]]></code>
</MixedAssignment>
</file>
</files>