|
8 | 8 | 'path' => __DIR__ . '/src/Authentication/Actions/Email2FA.php',
|
9 | 9 | ];
|
10 | 10 | $ignoreErrors[] = [
|
11 |
| - 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', |
| 11 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
12 | 12 | 'count' => 2,
|
13 | 13 | 'path' => __DIR__ . '/src/Authentication/Actions/Email2FA.php',
|
14 | 14 | ];
|
15 | 15 | $ignoreErrors[] = [
|
16 |
| - 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
| 16 | + 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', |
17 | 17 | 'count' => 2,
|
18 | 18 | 'path' => __DIR__ . '/src/Authentication/Actions/Email2FA.php',
|
19 | 19 | ];
|
|
33 | 33 | 'count' => 1,
|
34 | 34 | 'path' => __DIR__ . '/src/Authentication/Authentication.php',
|
35 | 35 | ];
|
| 36 | +$ignoreErrors[] = [ |
| 37 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\TokenLoginModel\\:\\:class is discouraged\\.$#', |
| 38 | + 'count' => 1, |
| 39 | + 'path' => __DIR__ . '/src/Authentication/Authenticators/AccessTokens.php', |
| 40 | +]; |
| 41 | +$ignoreErrors[] = [ |
| 42 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
| 43 | + 'count' => 1, |
| 44 | + 'path' => __DIR__ . '/src/Authentication/Authenticators/AccessTokens.php', |
| 45 | +]; |
36 | 46 | $ignoreErrors[] = [
|
37 | 47 | 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
|
38 | 48 | 'count' => 4,
|
|
46 | 56 | $ignoreErrors[] = [
|
47 | 57 | 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\TokenLoginModel\\:\\:class is discouraged\\.$#',
|
48 | 58 | 'count' => 1,
|
49 |
| - 'path' => __DIR__ . '/src/Authentication/Authenticators/AccessTokens.php', |
| 59 | + 'path' => __DIR__ . '/src/Authentication/Authenticators/HmacSha256.php', |
50 | 60 | ];
|
51 | 61 | $ignoreErrors[] = [
|
52 | 62 | 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#',
|
53 | 63 | 'count' => 1,
|
54 |
| - 'path' => __DIR__ . '/src/Authentication/Authenticators/AccessTokens.php', |
| 64 | + 'path' => __DIR__ . '/src/Authentication/Authenticators/HmacSha256.php', |
55 | 65 | ];
|
56 | 66 | $ignoreErrors[] = [
|
57 |
| - 'message' => '#^Parameter \\#1 \\$credentials \\(array\\{token\\?\\: string\\}\\) of method CodeIgniter\\\\Shield\\\\Authentication\\\\Authenticators\\\\JWT\\:\\:attempt\\(\\) should be contravariant with parameter \\$credentials \\(array\\) of method CodeIgniter\\\\Shield\\\\Authentication\\\\AuthenticatorInterface\\:\\:attempt\\(\\)$#', |
| 67 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\TokenLoginModel\\:\\:class is discouraged\\.$#', |
58 | 68 | 'count' => 1,
|
59 | 69 | 'path' => __DIR__ . '/src/Authentication/Authenticators/JWT.php',
|
60 | 70 | ];
|
61 | 71 | $ignoreErrors[] = [
|
62 |
| - 'message' => '#^Parameter \\#1 \\$credentials \\(array\\{token\\?\\: string\\}\\) of method CodeIgniter\\\\Shield\\\\Authentication\\\\Authenticators\\\\JWT\\:\\:check\\(\\) should be contravariant with parameter \\$credentials \\(array\\) of method CodeIgniter\\\\Shield\\\\Authentication\\\\AuthenticatorInterface\\:\\:check\\(\\)$#', |
| 72 | + 'message' => '#^Parameter \\#1 \\$credentials \\(array\\{token\\?\\: string\\}\\) of method CodeIgniter\\\\Shield\\\\Authentication\\\\Authenticators\\\\JWT\\:\\:attempt\\(\\) should be contravariant with parameter \\$credentials \\(array\\) of method CodeIgniter\\\\Shield\\\\Authentication\\\\AuthenticatorInterface\\:\\:attempt\\(\\)$#', |
63 | 73 | 'count' => 1,
|
64 | 74 | 'path' => __DIR__ . '/src/Authentication/Authenticators/JWT.php',
|
65 | 75 | ];
|
66 | 76 | $ignoreErrors[] = [
|
67 |
| - 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\TokenLoginModel\\:\\:class is discouraged\\.$#', |
| 77 | + 'message' => '#^Parameter \\#1 \\$credentials \\(array\\{token\\?\\: string\\}\\) of method CodeIgniter\\\\Shield\\\\Authentication\\\\Authenticators\\\\JWT\\:\\:check\\(\\) should be contravariant with parameter \\$credentials \\(array\\) of method CodeIgniter\\\\Shield\\\\Authentication\\\\AuthenticatorInterface\\:\\:check\\(\\)$#', |
68 | 78 | 'count' => 1,
|
69 | 79 | 'path' => __DIR__ . '/src/Authentication/Authenticators/JWT.php',
|
70 | 80 | ];
|
71 | 81 | $ignoreErrors[] = [
|
72 |
| - 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', |
73 |
| - 'count' => 3, |
| 82 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\LoginModel\\:\\:class is discouraged\\.$#', |
| 83 | + 'count' => 1, |
74 | 84 | 'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php',
|
75 | 85 | ];
|
76 | 86 | $ignoreErrors[] = [
|
77 |
| - 'message' => '#^Only booleans are allowed in an elseif condition, string\\|null given\\.$#', |
| 87 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\RememberModel\\:\\:class is discouraged\\.$#', |
78 | 88 | 'count' => 1,
|
79 | 89 | 'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php',
|
80 | 90 | ];
|
81 | 91 | $ignoreErrors[] = [
|
82 |
| - 'message' => '#^Only booleans are allowed in an if condition, CodeIgniter\\\\Shield\\\\Entities\\\\UserIdentity\\|null given\\.$#', |
| 92 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
83 | 93 | 'count' => 1,
|
84 | 94 | 'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php',
|
85 | 95 | ];
|
86 | 96 | $ignoreErrors[] = [
|
87 |
| - 'message' => '#^Only booleans are allowed in an if condition, int\\|string\\|null given\\.$#', |
| 97 | + 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', |
88 | 98 | 'count' => 3,
|
89 | 99 | 'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php',
|
90 | 100 | ];
|
91 | 101 | $ignoreErrors[] = [
|
92 |
| - 'message' => '#^Parameter \\#1 \\$credentials \\(array\\{email\\?\\: string, username\\?\\: string, password\\?\\: string\\}\\) of method CodeIgniter\\\\Shield\\\\Authentication\\\\Authenticators\\\\Session\\:\\:attempt\\(\\) should be contravariant with parameter \\$credentials \\(array\\) of method CodeIgniter\\\\Shield\\\\Authentication\\\\AuthenticatorInterface\\:\\:attempt\\(\\)$#', |
| 102 | + 'message' => '#^Only booleans are allowed in an elseif condition, string\\|null given\\.$#', |
93 | 103 | 'count' => 1,
|
94 | 104 | 'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php',
|
95 | 105 | ];
|
96 | 106 | $ignoreErrors[] = [
|
97 |
| - 'message' => '#^Parameter \\#1 \\$credentials \\(array\\{email\\?\\: string, username\\?\\: string, password\\?\\: string\\}\\) of method CodeIgniter\\\\Shield\\\\Authentication\\\\Authenticators\\\\Session\\:\\:check\\(\\) should be contravariant with parameter \\$credentials \\(array\\) of method CodeIgniter\\\\Shield\\\\Authentication\\\\AuthenticatorInterface\\:\\:check\\(\\)$#', |
| 107 | + 'message' => '#^Only booleans are allowed in an if condition, CodeIgniter\\\\Shield\\\\Entities\\\\UserIdentity\\|null given\\.$#', |
98 | 108 | 'count' => 1,
|
99 | 109 | 'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php',
|
100 | 110 | ];
|
101 | 111 | $ignoreErrors[] = [
|
102 |
| - 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\LoginModel\\:\\:class is discouraged\\.$#', |
103 |
| - 'count' => 1, |
| 112 | + 'message' => '#^Only booleans are allowed in an if condition, int\\|string\\|null given\\.$#', |
| 113 | + 'count' => 3, |
104 | 114 | 'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php',
|
105 | 115 | ];
|
106 | 116 | $ignoreErrors[] = [
|
107 |
| - 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\RememberModel\\:\\:class is discouraged\\.$#', |
| 117 | + 'message' => '#^Parameter \\#1 \\$credentials \\(array\\{email\\?\\: string, username\\?\\: string, password\\?\\: string\\}\\) of method CodeIgniter\\\\Shield\\\\Authentication\\\\Authenticators\\\\Session\\:\\:attempt\\(\\) should be contravariant with parameter \\$credentials \\(array\\) of method CodeIgniter\\\\Shield\\\\Authentication\\\\AuthenticatorInterface\\:\\:attempt\\(\\)$#', |
108 | 118 | 'count' => 1,
|
109 | 119 | 'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php',
|
110 | 120 | ];
|
111 | 121 | $ignoreErrors[] = [
|
112 |
| - 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
| 122 | + 'message' => '#^Parameter \\#1 \\$credentials \\(array\\{email\\?\\: string, username\\?\\: string, password\\?\\: string\\}\\) of method CodeIgniter\\\\Shield\\\\Authentication\\\\Authenticators\\\\Session\\:\\:check\\(\\) should be contravariant with parameter \\$credentials \\(array\\) of method CodeIgniter\\\\Shield\\\\Authentication\\\\AuthenticatorInterface\\:\\:check\\(\\)$#', |
113 | 123 | 'count' => 1,
|
114 | 124 | 'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php',
|
115 | 125 | ];
|
|
158 | 168 | 'count' => 1,
|
159 | 169 | 'path' => __DIR__ . '/src/Collectors/Auth.php',
|
160 | 170 | ];
|
| 171 | +$ignoreErrors[] = [ |
| 172 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserModel\\:\\:class is discouraged\\.$#', |
| 173 | + 'count' => 9, |
| 174 | + 'path' => __DIR__ . '/src/Commands/User.php', |
| 175 | +]; |
161 | 176 | $ignoreErrors[] = [
|
162 | 177 | 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
|
163 | 178 | 'count' => 1,
|
|
175 | 190 | 'path' => __DIR__ . '/src/Controllers/MagicLinkController.php',
|
176 | 191 | ];
|
177 | 192 | $ignoreErrors[] = [
|
178 |
| - 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
179 |
| - 'count' => 2, |
| 193 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\LoginModel\\:\\:class is discouraged\\.$#', |
| 194 | + 'count' => 1, |
180 | 195 | 'path' => __DIR__ . '/src/Controllers/MagicLinkController.php',
|
181 | 196 | ];
|
182 | 197 | $ignoreErrors[] = [
|
183 |
| - 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\LoginModel\\:\\:class is discouraged\\.$#', |
184 |
| - 'count' => 1, |
| 198 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
| 199 | + 'count' => 2, |
185 | 200 | 'path' => __DIR__ . '/src/Controllers/MagicLinkController.php',
|
186 | 201 | ];
|
187 | 202 | $ignoreErrors[] = [
|
|
240 | 255 | 'path' => __DIR__ . '/src/Entities/Group.php',
|
241 | 256 | ];
|
242 | 257 | $ignoreErrors[] = [
|
243 |
| - 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', |
244 |
| - 'count' => 8, |
| 258 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\GroupModel\\:\\:class is discouraged\\.$#', |
| 259 | + 'count' => 2, |
245 | 260 | 'path' => __DIR__ . '/src/Entities/User.php',
|
246 | 261 | ];
|
247 | 262 | $ignoreErrors[] = [
|
248 |
| - 'message' => '#^Only booleans are allowed in a ternary operator condition, int\\<0, max\\> given\\.$#', |
249 |
| - 'count' => 1, |
| 263 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\LoginModel\\:\\:class is discouraged\\.$#', |
| 264 | + 'count' => 2, |
| 265 | + 'path' => __DIR__ . '/src/Entities/User.php', |
| 266 | +]; |
| 267 | +$ignoreErrors[] = [ |
| 268 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\PermissionModel\\:\\:class is discouraged\\.$#', |
| 269 | + 'count' => 2, |
250 | 270 | 'path' => __DIR__ . '/src/Entities/User.php',
|
251 | 271 | ];
|
252 | 272 | $ignoreErrors[] = [
|
|
255 | 275 | 'path' => __DIR__ . '/src/Entities/User.php',
|
256 | 276 | ];
|
257 | 277 | $ignoreErrors[] = [
|
258 |
| - 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\LoginModel\\:\\:class is discouraged\\.$#', |
259 |
| - 'count' => 2, |
| 278 | + 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', |
| 279 | + 'count' => 8, |
260 | 280 | 'path' => __DIR__ . '/src/Entities/User.php',
|
261 | 281 | ];
|
262 | 282 | $ignoreErrors[] = [
|
263 |
| - 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserModel\\:\\:class is discouraged\\.$#', |
264 |
| - 'count' => 9, |
265 |
| - 'path' => __DIR__ . '/src/Commands/User.php', |
| 283 | + 'message' => '#^Only booleans are allowed in a ternary operator condition, int\\<0, max\\> given\\.$#', |
| 284 | + 'count' => 1, |
| 285 | + 'path' => __DIR__ . '/src/Entities/User.php', |
266 | 286 | ];
|
267 | 287 | $ignoreErrors[] = [
|
268 | 288 | 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
|
|
289 | 309 | 'count' => 2,
|
290 | 310 | 'path' => __DIR__ . '/src/Filters/TokenAuth.php',
|
291 | 311 | ];
|
| 312 | +$ignoreErrors[] = [ |
| 313 | + 'message' => '#^Property CodeIgniter\\\\Shield\\\\Models\\\\LoginModel\\:\\:\\$validationRules \\(list\\<string\\>\\|string\\) does not accept default value of type array\\{ip_address\\: \'required\', id_type\\: \'required\', identifier\\: \'permit_empty\\|string\', user_agent\\: \'permit_empty\\|string\', user_id\\: \'permit_empty\', date\\: \'required\'\\}\\.$#', |
| 314 | + 'count' => 1, |
| 315 | + 'path' => __DIR__ . '/src/Models/LoginModel.php', |
| 316 | +]; |
292 | 317 | $ignoreErrors[] = [
|
293 | 318 | 'message' => '#^Call to deprecated function random_string\\(\\)\\:
|
294 | 319 | The type \'basic\', \'md5\', and \'sha1\' are deprecated\\. They are not cryptographically secure\\.$#',
|
|
301 | 326 | 'count' => 1,
|
302 | 327 | 'path' => __DIR__ . '/src/Models/UserIdentityModel.php',
|
303 | 328 | ];
|
| 329 | +$ignoreErrors[] = [ |
| 330 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
| 331 | + 'count' => 1, |
| 332 | + 'path' => __DIR__ . '/src/Models/UserModel.php', |
| 333 | +]; |
304 | 334 | $ignoreErrors[] = [
|
305 | 335 | 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
|
306 | 336 | 'count' => 2,
|
307 | 337 | 'path' => __DIR__ . '/src/Models/UserModel.php',
|
308 | 338 | ];
|
309 | 339 | $ignoreErrors[] = [
|
310 |
| - 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
| 340 | + 'message' => '#^Parameter \\#1 \\$row \\(array\\|CodeIgniter\\\\Shield\\\\Entities\\\\User\\) of method CodeIgniter\\\\Shield\\\\Models\\\\UserModel\\:\\:insert\\(\\) should be contravariant with parameter \\$row \\(array\\<int\\|string, float\\|int\\|object\\|string\\|null\\>\\|object\\|null\\) of method CodeIgniter\\\\Model\\:\\:insert\\(\\)$#', |
311 | 341 | 'count' => 1,
|
312 | 342 | 'path' => __DIR__ . '/src/Models/UserModel.php',
|
313 | 343 | ];
|
314 | 344 | $ignoreErrors[] = [
|
315 |
| - 'message' => '#^Return type \\(int|string|true\\) of method CodeIgniter\\\\Shield\\\\Models\\\\UserModel\\:\\:insert\\(\\) should be covariant with return type \\(\\(\\$returnID is true \\? int|string|false \\: bool\\) of method CodeIgniter\\\\Model\\:\\:insert\\(\\)\\$#', |
316 |
| - 'count' => 4, |
| 345 | + 'message' => '#^Parameter \\#1 \\$row \\(array\\|CodeIgniter\\\\Shield\\\\Entities\\\\User\\) of method CodeIgniter\\\\Shield\\\\Models\\\\UserModel\\:\\:save\\(\\) should be contravariant with parameter \\$row \\(array\\<int\\|string, float\\|int\\|object\\|string\\|null\\>\\|object\\) of method CodeIgniter\\\\BaseModel\\:\\:save\\(\\)$#', |
| 346 | + 'count' => 1, |
| 347 | + 'path' => __DIR__ . '/src/Models/UserModel.php', |
| 348 | +]; |
| 349 | +$ignoreErrors[] = [ |
| 350 | + 'message' => '#^Parameter \\#2 \\$row \\(array\\|CodeIgniter\\\\Shield\\\\Entities\\\\User\\) of method CodeIgniter\\\\Shield\\\\Models\\\\UserModel\\:\\:update\\(\\) should be contravariant with parameter \\$row \\(array\\<int\\|string, float\\|int\\|object\\|string\\|null\\>\\|object\\|null\\) of method CodeIgniter\\\\Model\\:\\:update\\(\\)$#', |
| 351 | + 'count' => 1, |
| 352 | + 'path' => __DIR__ . '/src/Models/UserModel.php', |
| 353 | +]; |
| 354 | +$ignoreErrors[] = [ |
| 355 | + 'message' => '#^Return type \\(int\\|string\\|true\\) of method CodeIgniter\\\\Shield\\\\Models\\\\UserModel\\:\\:insert\\(\\) should be covariant with return type \\(\\(\\$returnID is true \\? int\\|string\\|false \\: bool\\)\\) of method CodeIgniter\\\\Model\\:\\:insert\\(\\)$#', |
| 356 | + 'count' => 1, |
317 | 357 | 'path' => __DIR__ . '/src/Models/UserModel.php',
|
318 | 358 | ];
|
319 | 359 | $ignoreErrors[] = [
|
|
366 | 406 | 'count' => 1,
|
367 | 407 | 'path' => __DIR__ . '/tests/Unit/UserTest.php',
|
368 | 408 | ];
|
369 |
| -$ignoreErrors[] = [ |
370 |
| - 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\TokenLoginModel\\:\\:class is discouraged\\.$#', |
371 |
| - 'count' => 1, |
372 |
| - 'path' => __DIR__ . '/src/Authentication/Authenticators/HmacSha256.php', |
373 |
| -]; |
374 |
| -$ignoreErrors[] = [ |
375 |
| - 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
376 |
| - 'count' => 1, |
377 |
| - 'path' => __DIR__ . '/src/Authentication/Authenticators/HmacSha256.php', |
378 |
| -]; |
379 |
| -$ignoreErrors[] = [ |
380 |
| - 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\GroupModel\\:\\:class is discouraged\\.$#', |
381 |
| - 'count' => 2, |
382 |
| - 'path' => __DIR__ . '/src/Authorization/Traits/Authorizable.php', |
383 |
| -]; |
384 |
| -$ignoreErrors[] = [ |
385 |
| - 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\PermissionModel\\:\\:class is discouraged\\.$#', |
386 |
| - 'count' => 2, |
387 |
| - 'path' => __DIR__ . '/src/Authorization/Traits/Authorizable.php', |
388 |
| -]; |
| 409 | + |
389 | 410 | return ['parameters' => ['ignoreErrors' => $ignoreErrors]];
|
0 commit comments