|
27 | 27 | 'count' => 2, |
28 | 28 | 'path' => __DIR__ . '/src/Authentication/Actions/Email2FA.php', |
29 | 29 | ]; |
| 30 | +$ignoreErrors[] = [ |
| 31 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
| 32 | + 'count' => 2, |
| 33 | + 'path' => __DIR__ . '/src/Authentication/Actions/Email2FA.php', |
| 34 | +]; |
30 | 35 | $ignoreErrors[] = [ |
31 | 36 | 'message' => '#^Call to deprecated function random_string\\(\\)\\: |
32 | 37 | The type \'basic\', \'md5\', and \'sha1\' are deprecated\\. They are not cryptographically secure\\.$#', |
33 | 38 | 'count' => 1, |
34 | 39 | 'path' => __DIR__ . '/src/Authentication/Actions/EmailActivator.php', |
35 | 40 | ]; |
| 41 | +$ignoreErrors[] = [ |
| 42 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
| 43 | + 'count' => 2, |
| 44 | + 'path' => __DIR__ . '/src/Authentication/Actions/EmailActivator.php', |
| 45 | +]; |
36 | 46 | $ignoreErrors[] = [ |
37 | 47 | 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', |
38 | 48 | 'count' => 1, |
|
48 | 58 | 'count' => 1, |
49 | 59 | 'path' => __DIR__ . '/src/Authentication/Authenticators/AccessTokens.php', |
50 | 60 | ]; |
| 61 | +$ignoreErrors[] = [ |
| 62 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\TokenLoginModel\\:\\:class is discouraged\\.$#', |
| 63 | + 'count' => 1, |
| 64 | + 'path' => __DIR__ . '/src/Authentication/Authenticators/AccessTokens.php', |
| 65 | +]; |
| 66 | +$ignoreErrors[] = [ |
| 67 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
| 68 | + 'count' => 1, |
| 69 | + 'path' => __DIR__ . '/src/Authentication/Authenticators/AccessTokens.php', |
| 70 | +]; |
51 | 71 | $ignoreErrors[] = [ |
52 | 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\\(\\)$#', |
53 | 73 | 'count' => 1, |
|
58 | 78 | 'count' => 1, |
59 | 79 | 'path' => __DIR__ . '/src/Authentication/Authenticators/JWT.php', |
60 | 80 | ]; |
| 81 | +$ignoreErrors[] = [ |
| 82 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\TokenLoginModel\\:\\:class is discouraged\\.$#', |
| 83 | + 'count' => 1, |
| 84 | + 'path' => __DIR__ . '/src/Authentication/Authenticators/JWT.php', |
| 85 | +]; |
61 | 86 | $ignoreErrors[] = [ |
62 | 87 | 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', |
63 | 88 | 'count' => 3, |
|
88 | 113 | 'count' => 1, |
89 | 114 | 'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php', |
90 | 115 | ]; |
| 116 | +$ignoreErrors[] = [ |
| 117 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\LoginModel\\:\\:class is discouraged\\.$#', |
| 118 | + 'count' => 1, |
| 119 | + 'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php', |
| 120 | +]; |
| 121 | +$ignoreErrors[] = [ |
| 122 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\RememberModel\\:\\:class is discouraged\\.$#', |
| 123 | + 'count' => 1, |
| 124 | + 'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php', |
| 125 | +]; |
| 126 | +$ignoreErrors[] = [ |
| 127 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
| 128 | + 'count' => 1, |
| 129 | + 'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php', |
| 130 | +]; |
91 | 131 | $ignoreErrors[] = [ |
92 | 132 | 'message' => '#^Call to method CodeIgniter\\\\Shield\\\\Result\\:\\:isOK\\(\\) with incorrect case\\: isOk$#', |
93 | 133 | 'count' => 1, |
|
159 | 199 | 'count' => 1, |
160 | 200 | 'path' => __DIR__ . '/src/Controllers/MagicLinkController.php', |
161 | 201 | ]; |
| 202 | +$ignoreErrors[] = [ |
| 203 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
| 204 | + 'count' => 2, |
| 205 | + 'path' => __DIR__ . '/src/Controllers/MagicLinkController.php', |
| 206 | +]; |
| 207 | +$ignoreErrors[] = [ |
| 208 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\LoginModel\\:\\:class is discouraged\\.$#', |
| 209 | + 'count' => 1, |
| 210 | + 'path' => __DIR__ . '/src/Controllers/MagicLinkController.php', |
| 211 | +]; |
162 | 212 | $ignoreErrors[] = [ |
163 | 213 | 'message' => '#^Call to function assert\\(\\) with false and \'Config Auth…\' will always evaluate to false\\.$#', |
164 | 214 | 'count' => 1, |
|
224 | 274 | 'count' => 1, |
225 | 275 | 'path' => __DIR__ . '/src/Entities/User.php', |
226 | 276 | ]; |
| 277 | +$ignoreErrors[] = [ |
| 278 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
| 279 | + 'count' => 19, |
| 280 | + 'path' => __DIR__ . '/src/Entities/User.php', |
| 281 | +]; |
| 282 | +$ignoreErrors[] = [ |
| 283 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\LoginModel\\:\\:class is discouraged\\.$#', |
| 284 | + 'count' => 2, |
| 285 | + 'path' => __DIR__ . '/src/Entities/User.php', |
| 286 | +]; |
| 287 | +$ignoreErrors[] = [ |
| 288 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserModel\\:\\:class is discouraged\\.$#', |
| 289 | + 'count' => 9, |
| 290 | + 'path' => __DIR__ . '/src/Commands/User.php', |
| 291 | +]; |
227 | 292 | $ignoreErrors[] = [ |
228 | 293 | 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', |
229 | 294 | 'count' => 1, |
|
306 | 371 | 'count' => 1, |
307 | 372 | 'path' => __DIR__ . '/src/Models/UserModel.php', |
308 | 373 | ]; |
| 374 | +$ignoreErrors[] = [ |
| 375 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
| 376 | + 'count' => 1, |
| 377 | + 'path' => __DIR__ . '/src/Models/UserModel.php', |
| 378 | +]; |
309 | 379 | $ignoreErrors[] = [ |
310 | 380 | 'message' => '#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with \'CodeIgniter\\\\\\\\Shield\\\\\\\\Result\' and CodeIgniter\\\\Shield\\\\Result will always evaluate to true\\.$#', |
311 | 381 | 'count' => 2, |
|
366 | 436 | 'count' => 1, |
367 | 437 | 'path' => __DIR__ . '/tests/_support/Config/Registrar.php', |
368 | 438 | ]; |
369 | | - |
| 439 | +$ignoreErrors[] = [ |
| 440 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\TokenLoginModel\\:\\:class is discouraged\\.$#', |
| 441 | + 'count' => 1, |
| 442 | + 'path' => __DIR__ . '/src/Authentication/Authenticators/HmacSha256.php', |
| 443 | +]; |
| 444 | +$ignoreErrors[] = [ |
| 445 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\UserIdentityModel\\:\\:class is discouraged\\.$#', |
| 446 | + 'count' => 1, |
| 447 | + 'path' => __DIR__ . '/src/Authentication/Authenticators/HmacSha256.php', |
| 448 | +]; |
| 449 | +$ignoreErrors[] = [ |
| 450 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\GroupModel\\:\\:class is discouraged\\.$#', |
| 451 | + 'count' => 2, |
| 452 | + 'path' => __DIR__ . '/src/Authorization/Traits/Authorizable.php', |
| 453 | +]; |
| 454 | +$ignoreErrors[] = [ |
| 455 | + 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\PermissionModel\\:\\:class is discouraged\\.$#', |
| 456 | + 'count' => 2, |
| 457 | + 'path' => __DIR__ . '/src/Authorization/Traits/Authorizable.php', |
| 458 | +]; |
| 459 | +$ignoreErrors[] = [ |
| 460 | + 'message' => '#^Call to function config with Config\\\\Email\\:\\:class is discouraged\\.$#', |
| 461 | + 'count' => 1, |
| 462 | + 'path' => __DIR__ . '/src/Commands/Setup.php', |
| 463 | +]; |
370 | 464 | return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; |
0 commit comments