forked from CakeDC/users
-
Notifications
You must be signed in to change notification settings - Fork 0
/
psalm-baseline.xml
292 lines (292 loc) · 10.6 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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="3.5.0@f8b8f35c031e2fad6754a961a9fad2708649d8da">
<file src="src/Controller/AppController.php">
<UndefinedClass occurrences="1">
<code>BaseController</code>
</UndefinedClass>
</file>
<file src="src/Controller/Component/LoginComponent.php">
<PossiblyNullReference occurrences="1">
<code>getConfig</code>
</PossiblyNullReference>
<UndefinedDocblockClass occurrences="2">
<code>$checker</code>
<code>$checker</code>
</UndefinedDocblockClass>
<UndefinedInterfaceMethod occurrences="1">
<code>getConfig</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Controller/SocialAccountsController.php">
<MissingDependency occurrences="1">
<code>AppController</code>
</MissingDependency>
</file>
<file src="src/Controller/Traits/PasswordManagementTrait.php">
<InvalidDocblock occurrences="1">
<code>public function resetOneTimePasswordAuthenticator($id = null)</code>
</InvalidDocblock>
</file>
<file src="src/Controller/Traits/ReCaptchaTrait.php">
<InvalidNullableReturnType occurrences="1">
<code>\ReCaptcha\ReCaptcha</code>
</InvalidNullableReturnType>
</file>
<file src="src/Controller/UsersController.php">
<MissingDependency occurrences="1">
<code>AppController</code>
</MissingDependency>
</file>
<file src="src/Identifier/SocialIdentifier.php">
<PropertyNotSetInConstructor occurrences="1">
<code>SocialIdentifier</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Middleware/SocialAuthMiddleware.php">
<PossiblyNullArgument occurrences="1">
<code>$exception->getPrevious()</code>
</PossiblyNullArgument>
</file>
<file src="src/Model/Behavior/AuthFinderBehavior.php">
<MissingClosureParamType occurrences="1">
<code>$exp</code>
</MissingClosureParamType>
<MissingClosureReturnType occurrences="1">
<code>function ($exp) use ($identifier, $where) {</code>
</MissingClosureReturnType>
</file>
<file src="src/Model/Behavior/BaseTokenBehavior.php">
<FalsableReturnStatement occurrences="1">
<code>$result</code>
</FalsableReturnStatement>
<InvalidFalsableReturnType occurrences="1">
<code>\Cake\Datasource\EntityInterface</code>
</InvalidFalsableReturnType>
<UndefinedInterfaceMethod occurrences="1">
<code>updateToken</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Model/Behavior/LinkSocialBehavior.php">
<NoInterfaceProperties occurrences="6">
<code>$user->id</code>
<code>$socialAccount->user_id</code>
<code>$user->id</code>
<code>$user->social_accounts</code>
<code>$socialAccount->id</code>
<code>$user->social_accounts</code>
</NoInterfaceProperties>
<PossiblyInvalidArgument occurrences="1">
<code>$socialAccount</code>
</PossiblyInvalidArgument>
<PossiblyNullArgument occurrences="1">
<code>$accountData['avatar']</code>
</PossiblyNullArgument>
</file>
<file src="src/Model/Behavior/PasswordBehavior.php">
<InvalidReturnStatement occurrences="1">
<code>$saveResult</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>string</code>
</InvalidReturnType>
<NoInterfaceProperties occurrences="4">
<code>$user->id</code>
<code>$user->current_password</code>
<code>$currentUser->password</code>
<code>$user->password_confirm</code>
</NoInterfaceProperties>
<UndefinedInterfaceMethod occurrences="1">
<code>checkPassword</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Model/Behavior/RegisterBehavior.php">
<InvalidReturnStatement occurrences="1">
<code>$user</code>
</InvalidReturnStatement>
<MissingClosureParamType occurrences="1">
<code>$context</code>
</MissingClosureParamType>
<NoInterfaceProperties occurrences="5">
<code>$user->validated</code>
<code>$user->active</code>
<code>$user->activation_date</code>
<code>$user->token_expires</code>
<code>$user->active</code>
</NoInterfaceProperties>
<PossiblyInvalidMethodCall occurrences="1">
<code>tokenExpired</code>
</PossiblyInvalidMethodCall>
<PossiblyNullArgument occurrences="2">
<code>$validateEmail</code>
<code>$tokenExpiration</code>
</PossiblyNullArgument>
<UndefinedInterfaceMethod occurrences="1">
<code>tokenExpired</code>
</UndefinedInterfaceMethod>
<UndefinedPropertyAssignment occurrences="1">
<code>$this->_table->isValidateEmail</code>
</UndefinedPropertyAssignment>
<UndefinedThisPropertyAssignment occurrences="3">
<code>$this->validateEmail</code>
<code>$this->useTos</code>
<code>$this->validateEmail</code>
</UndefinedThisPropertyAssignment>
<UndefinedThisPropertyFetch occurrences="1">
<code>$this->validateEmail</code>
</UndefinedThisPropertyFetch>
</file>
<file src="src/Model/Behavior/SocialAccountBehavior.php">
<FalsableReturnStatement occurrences="1">
<code>$result</code>
</FalsableReturnStatement>
<InvalidArgument occurrences="1">
<code>$socialAccount</code>
</InvalidArgument>
<InvalidFalsableReturnType occurrences="1">
<code>\Cake\Datasource\EntityInterface</code>
</InvalidFalsableReturnType>
<InvalidReturnStatement occurrences="1">
<code>$this->sendSocialValidationEmail($socialAccount, $socialAccount->user)</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>\CakeDC\Users\Model\Entity\User</code>
</InvalidReturnType>
<LessSpecificReturnStatement occurrences="1">
<code>$this->_activateAccount($socialAccount)</code>
</LessSpecificReturnStatement>
<MoreSpecificReturnType occurrences="1">
<code>\CakeDC\Users\Model\Entity\User</code>
</MoreSpecificReturnType>
<NoInterfaceProperties occurrences="4">
<code>$socialAccount->token</code>
<code>$socialAccount->active</code>
<code>$socialAccount->active</code>
<code>$socialAccount->user</code>
</NoInterfaceProperties>
<PossiblyInvalidArgument occurrences="2">
<code>$user</code>
<code>$socialAccount</code>
</PossiblyInvalidArgument>
</file>
<file src="src/Model/Behavior/SocialBehavior.php">
<InvalidScalarArgument occurrences="1">
<code>$tokenExpiration</code>
</InvalidScalarArgument>
<NoInterfaceProperties occurrences="1">
<code>$existingAccount->user</code>
</NoInterfaceProperties>
<PossiblyInvalidArgument occurrences="1">
<code>$existingUser</code>
</PossiblyInvalidArgument>
<PossiblyNullArgument occurrences="6">
<code>$useEmail</code>
<code>$validateEmail</code>
<code>$tokenExpiration</code>
<code>$userData['username'] ?? null</code>
<code>$userData['username'] ?? null</code>
<code>$accountData['avatar']</code>
</PossiblyNullArgument>
<PossiblyUndefinedVariable occurrences="2">
<code>$userData</code>
<code>$userData</code>
</PossiblyUndefinedVariable>
<PropertyNotSetInConstructor occurrences="1">
<code>SocialBehavior</code>
</PropertyNotSetInConstructor>
<UndefinedPropertyAssignment occurrences="1">
<code>$this->_table->isValidateEmail</code>
</UndefinedPropertyAssignment>
</file>
<file src="src/Model/Entity/User.php">
<InvalidReturnStatement occurrences="1">
<code>$tos</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>bool</code>
</InvalidReturnType>
</file>
<file src="src/Model/Table/SocialAccountsTable.php">
<PropertyNotSetInConstructor occurrences="1">
<code>SocialAccountsTable</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Model/Table/UsersTable.php">
<ImplementedReturnTypeMismatch occurrences="1">
<code>\CakeDC\Users\Model\Entity\User|bool</code>
</ImplementedReturnTypeMismatch>
<PropertyNotSetInConstructor occurrences="1">
<code>UsersTable</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Plugin.php">
<PropertyNotSetInConstructor occurrences="1">
<code>Plugin</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Shell/UsersShell.php">
<DeprecatedClass occurrences="3">
<code>Shell</code>
<code>parent::getOptionParser()</code>
<code>parent::initialize()</code>
</DeprecatedClass>
<InvalidPropertyFetch occurrences="2">
<code>$user->username</code>
<code>$user->username</code>
</InvalidPropertyFetch>
<InvalidReturnStatement occurrences="1">
<code>$this->_updateUser($username, $data)</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>bool</code>
</InvalidReturnType>
<MissingClosureParamType occurrences="6">
<code>$error</code>
<code>$field</code>
<code>$value</code>
<code>$field</code>
<code>$value</code>
<code>$field</code>
</MissingClosureParamType>
<NoInterfaceProperties occurrences="1">
<code>$user->id</code>
</NoInterfaceProperties>
<PossiblyInvalidPropertyFetch occurrences="1">
<code>$savedUser->role</code>
</PossiblyInvalidPropertyFetch>
<PropertyNotSetInConstructor occurrences="1">
<code>UsersShell</code>
</PropertyNotSetInConstructor>
<UndefinedThisPropertyAssignment occurrences="1">
<code>$this->Users</code>
</UndefinedThisPropertyAssignment>
</file>
<file src="src/View/Helper/AuthLinkHelper.php">
<MoreSpecificImplementedParamType occurrences="1">
<code>$title</code>
</MoreSpecificImplementedParamType>
<PropertyNotSetInConstructor occurrences="1">
<code>AuthLinkHelper</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/View/Helper/UserHelper.php">
<PossiblyInvalidArgument occurrences="2">
<code>$options['options']</code>
<code>$options['options']</code>
</PossiblyInvalidArgument>
</file>
<file src="vendor/cakephp/cakephp/src/Console/Shell.php">
<UninitializedProperty occurrences="1">
<code>$this->name</code>
</UninitializedProperty>
</file>
<file src="vendor/cakephp/cakephp/src/Mailer/MailerAwareTrait.php">
<MoreSpecificReturnType occurrences="1">
<code>\Cake\Mailer\Mailer</code>
</MoreSpecificReturnType>
</file>
<file src="vendor/cakephp/cakephp/src/ORM/Behavior.php">
<PossiblyNullIterator occurrences="1">
<code>$indexed</code>
</PossiblyNullIterator>
</file>
</files>