|
1 | 1 | <?php declare(strict_types = 1); |
2 | 2 |
|
3 | 3 | $ignoreErrors = []; |
4 | | -$ignoreErrors[] = [ |
5 | | - 'rawMessage' => 'Call to deprecated function random_string(): |
6 | | -The type \'basic\', \'md5\', and \'sha1\' are deprecated. They are not cryptographically secure.', |
7 | | - 'identifier' => 'function.deprecated', |
8 | | - 'count' => 1, |
9 | | - 'path' => __DIR__ . '/src/Authentication/Actions/Email2FA.php', |
10 | | -]; |
11 | 4 | $ignoreErrors[] = [ |
12 | 5 | 'rawMessage' => 'Call to function model with CodeIgniter\\Shield\\Models\\UserIdentityModel::class is discouraged.', |
13 | 6 | 'identifier' => 'codeigniter.factoriesClassConstFetch', |
|
20 | 13 | 'count' => 1, |
21 | 14 | 'path' => __DIR__ . '/src/Authentication/Actions/Email2FA.php', |
22 | 15 | ]; |
23 | | -$ignoreErrors[] = [ |
24 | | - 'rawMessage' => 'Call to deprecated function random_string(): |
25 | | -The type \'basic\', \'md5\', and \'sha1\' are deprecated. They are not cryptographically secure.', |
26 | | - 'identifier' => 'function.deprecated', |
27 | | - 'count' => 1, |
28 | | - 'path' => __DIR__ . '/src/Authentication/Actions/EmailActivator.php', |
29 | | -]; |
30 | 16 | $ignoreErrors[] = [ |
31 | 17 | 'rawMessage' => 'Call to function model with CodeIgniter\\Shield\\Models\\UserIdentityModel::class is discouraged.', |
32 | 18 | 'identifier' => 'codeigniter.factoriesClassConstFetch', |
|
141 | 127 | 'count' => 4, |
142 | 128 | 'path' => __DIR__ . '/src/Authentication/Passwords/NothingPersonalValidator.php', |
143 | 129 | ]; |
144 | | -$ignoreErrors[] = [ |
145 | | - 'rawMessage' => 'PHPDoc tag @var with type string is not subtype of type uppercase-string.', |
146 | | - 'identifier' => 'varTag.type', |
147 | | - 'count' => 1, |
148 | | - 'path' => __DIR__ . '/src/Authentication/Passwords/PwnedValidator.php', |
149 | | -]; |
150 | 130 | $ignoreErrors[] = [ |
151 | 131 | 'rawMessage' => 'Only booleans are allowed in &&, CodeIgniter\\Shield\\Entities\\User|null given on the right side.', |
152 | 132 | 'identifier' => 'booleanAnd.rightNotBoolean', |
|
195 | 175 | 'count' => 9, |
196 | 176 | 'path' => __DIR__ . '/src/Commands/User.php', |
197 | 177 | ]; |
198 | | -$ignoreErrors[] = [ |
199 | | - 'rawMessage' => 'Call to deprecated function random_string(): |
200 | | -The type \'basic\', \'md5\', and \'sha1\' are deprecated. They are not cryptographically secure.', |
201 | | - 'identifier' => 'function.deprecated', |
202 | | - 'count' => 1, |
203 | | - 'path' => __DIR__ . '/src/Controllers/MagicLinkController.php', |
204 | | -]; |
205 | 178 | $ignoreErrors[] = [ |
206 | 179 | 'rawMessage' => 'Call to function model with CodeIgniter\\Shield\\Models\\LoginModel::class is discouraged.', |
207 | 180 | 'identifier' => 'codeigniter.factoriesClassConstFetch', |
|
388 | 361 | 'count' => 1, |
389 | 362 | 'path' => __DIR__ . '/src/Filters/TokenAuth.php', |
390 | 363 | ]; |
391 | | -$ignoreErrors[] = [ |
392 | | - 'rawMessage' => 'Call to deprecated function random_string(): |
393 | | -The type \'basic\', \'md5\', and \'sha1\' are deprecated. They are not cryptographically secure.', |
394 | | - 'identifier' => 'function.deprecated', |
395 | | - 'count' => 1, |
396 | | - 'path' => __DIR__ . '/src/Models/TokenLoginModel.php', |
397 | | -]; |
398 | | -$ignoreErrors[] = [ |
399 | | - 'rawMessage' => 'Call to deprecated function random_string(): |
400 | | -The type \'basic\', \'md5\', and \'sha1\' are deprecated. They are not cryptographically secure.', |
401 | | - 'identifier' => 'function.deprecated', |
402 | | - 'count' => 1, |
403 | | - 'path' => __DIR__ . '/src/Models/UserIdentityModel.php', |
404 | | -]; |
405 | 364 | $ignoreErrors[] = [ |
406 | 365 | 'rawMessage' => 'Call to function model with CodeIgniter\\Shield\\Models\\GroupModel::class is discouraged.', |
407 | 366 | 'identifier' => 'codeigniter.factoriesClassConstFetch', |
|
462 | 421 | 'count' => 8, |
463 | 422 | 'path' => __DIR__ . '/tests/Authentication/Authenticators/SessionAuthenticatorTest.php', |
464 | 423 | ]; |
| 424 | +$ignoreErrors[] = [ |
| 425 | + 'rawMessage' => 'Call to method setCookie() of internal class CodeIgniter\\Superglobals from outside its root namespace CodeIgniter.', |
| 426 | + 'identifier' => 'method.internalClass', |
| 427 | + 'count' => 1, |
| 428 | + 'path' => __DIR__ . '/tests/Authentication/Authenticators/SessionAuthenticatorTest.php', |
| 429 | +]; |
| 430 | +$ignoreErrors[] = [ |
| 431 | + 'rawMessage' => 'Parameter #1 $headers of method Tests\\Authentication\\Filters\\AbstractFilterTestCase::withHeaders() expects array<string, CodeIgniter\\HTTP\\Header|list<CodeIgniter\\HTTP\\Header>>, array{Authorization: non-falsy-string} given.', |
| 432 | + 'identifier' => 'argument.type', |
| 433 | + 'count' => 7, |
| 434 | + 'path' => __DIR__ . '/tests/Authentication/Filters/HmacFilterTest.php', |
| 435 | +]; |
| 436 | +$ignoreErrors[] = [ |
| 437 | + 'rawMessage' => 'Parameter #1 $headers of method Tests\\Authentication\\Filters\\JWTFilterTest::withHeaders() expects array<string, CodeIgniter\\HTTP\\Header|list<CodeIgniter\\HTTP\\Header>>, array{Authorization: non-falsy-string} given.', |
| 438 | + 'identifier' => 'argument.type', |
| 439 | + 'count' => 1, |
| 440 | + 'path' => __DIR__ . '/tests/Authentication/Filters/JWTFilterTest.php', |
| 441 | +]; |
465 | 442 | $ignoreErrors[] = [ |
466 | 443 | 'rawMessage' => 'Implicit array creation is not allowed - variable $users might not exist.', |
467 | 444 | 'identifier' => 'variable.implicitArray', |
|
0 commit comments