|
331 | 331 | 'count' => 1, |
332 | 332 | 'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-list-table.php', |
333 | 333 | ]; |
| 334 | +$ignoreErrors[] = [ |
| 335 | + 'message' => '#^Offset \'post_status\' on non\\-empty\\-array in isset\\(\\) always exists and is not nullable\\.$#', |
| 336 | + 'identifier' => 'isset.offset', |
| 337 | + 'count' => 1, |
| 338 | + 'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-list-table.php', |
| 339 | +]; |
334 | 340 | $ignoreErrors[] = [ |
335 | 341 | 'message' => '#^Property WP_List_Table\\:\\:\\$_column_headers \\(array\\) in isset\\(\\) is not nullable\\.$#', |
336 | 342 | 'identifier' => 'isset.property', |
|
427 | 433 | 'count' => 1, |
428 | 434 | 'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-privacy-requests-table.php', |
429 | 435 | ]; |
| 436 | +$ignoreErrors[] = [ |
| 437 | + 'message' => '#^Offset \'filter\\-status\' on non\\-empty\\-array in isset\\(\\) always exists and is not nullable\\.$#', |
| 438 | + 'identifier' => 'isset.offset', |
| 439 | + 'count' => 1, |
| 440 | + 'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-privacy-requests-table.php', |
| 441 | +]; |
430 | 442 | $ignoreErrors[] = [ |
431 | 443 | 'message' => '#^Call to function is_bool\\(\\) with bool will always evaluate to true\\.$#', |
432 | 444 | 'identifier' => 'function.alreadyNarrowedType', |
|
1051 | 1063 | 'count' => 1, |
1052 | 1064 | 'path' => __DIR__ . '/../../../src/wp-admin/nav-menus.php', |
1053 | 1065 | ]; |
| 1066 | +$ignoreErrors[] = [ |
| 1067 | + 'message' => '#^Offset \'action\' on non\\-empty\\-array in isset\\(\\) always exists and is not nullable\\.$#', |
| 1068 | + 'identifier' => 'isset.offset', |
| 1069 | + 'count' => 1, |
| 1070 | + 'path' => __DIR__ . '/../../../src/wp-admin/nav-menus.php', |
| 1071 | +]; |
1054 | 1072 | $ignoreErrors[] = [ |
1055 | 1073 | 'message' => '#^Offset \\(float\\|int\\) on array\\<mixed\\> in isset\\(\\) always exists and is not nullable\\.$#', |
1056 | 1074 | 'identifier' => 'isset.offset', |
|
1081 | 1099 | 'count' => 1, |
1082 | 1100 | 'path' => __DIR__ . '/../../../src/wp-admin/plugins.php', |
1083 | 1101 | ]; |
| 1102 | +$ignoreErrors[] = [ |
| 1103 | + 'message' => '#^Offset \'checked\' on non\\-empty\\-array in isset\\(\\) always exists and is not nullable\\.$#', |
| 1104 | + 'identifier' => 'isset.offset', |
| 1105 | + 'count' => 1, |
| 1106 | + 'path' => __DIR__ . '/../../../src/wp-admin/plugins.php', |
| 1107 | +]; |
1084 | 1108 | $ignoreErrors[] = [ |
1085 | 1109 | 'message' => '#^Negated boolean expression is always true\\.$#', |
1086 | 1110 | 'identifier' => 'booleanNot.alwaysTrue', |
|
1340 | 1364 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-list.php', |
1341 | 1365 | ]; |
1342 | 1366 | $ignoreErrors[] = [ |
1343 | | - 'message' => '#^Offset \'closer\' on array\\{0\\: array\\{string, int\\<\\-1, max\\>\\}, closer\\: array\\{\'\'\\|\'/\', int\\<\\-1, max\\>\\}, 1\\: array\\{\'\'\\|\'/\', int\\<\\-1, max\\>\\}, namespace\\: array\\{string, int\\<\\-1, max\\>\\}, 2\\: array\\{string, int\\<\\-1, max\\>\\}, name\\: array\\{non\\-falsy\\-string, int\\<\\-1, max\\>\\}, 3\\: array\\{non\\-falsy\\-string, int\\<\\-1, max\\>\\}, attrs\\?\\: array\\{string, int\\<\\-1, max\\>\\}, \\.\\.\\.\\} in isset\\(\\) always exists and is not nullable\\.$#', |
| 1367 | + 'message' => '#^Offset \'closer\' on array\\{0\\: array\\{non\\-falsy\\-string, int\\<\\-1, max\\>\\}, closer\\: array\\{\'\'\\|\'/\', int\\<\\-1, max\\>\\}, 1\\: array\\{\'\'\\|\'/\', int\\<\\-1, max\\>\\}, namespace\\: array\\{string, int\\<\\-1, max\\>\\}, 2\\: array\\{string, int\\<\\-1, max\\>\\}, name\\: array\\{non\\-falsy\\-string, int\\<\\-1, max\\>\\}, 3\\: array\\{non\\-falsy\\-string, int\\<\\-1, max\\>\\}, attrs\\?\\: array\\{string, int\\<\\-1, max\\>\\}, \\.\\.\\.\\} in isset\\(\\) always exists and is not nullable\\.$#', |
1344 | 1368 | 'identifier' => 'isset.offset', |
1345 | 1369 | 'count' => 1, |
1346 | 1370 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-parser.php', |
|
1927 | 1951 | 'count' => 1, |
1928 | 1952 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-query.php', |
1929 | 1953 | ]; |
| 1954 | +$ignoreErrors[] = [ |
| 1955 | + 'message' => '#^Property WP_Post\\:\\:\\$ID \\(int\\) in isset\\(\\) is not nullable\\.$#', |
| 1956 | + 'identifier' => 'isset.property', |
| 1957 | + 'count' => 1, |
| 1958 | + 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-query.php', |
| 1959 | +]; |
1930 | 1960 | $ignoreErrors[] = [ |
1931 | 1961 | 'message' => '#^Property WP_Query\\:\\:\\$queried_object_id \\(int\\) in isset\\(\\) is not nullable\\.$#', |
1932 | 1962 | 'identifier' => 'isset.property', |
|
2810 | 2840 | 'path' => __DIR__ . '/../../../src/wp-includes/formatting.php', |
2811 | 2841 | ]; |
2812 | 2842 | $ignoreErrors[] = [ |
2813 | | - 'message' => '#^Offset 0 on array\\{0\\: string, non_cdata_followed_by_cdata\\: \'\', 1\\: \'\', 2\\: \'\', cdata\\: \'\', 3\\: \'\', 4\\: \'\', non_cdata\\: string, \\.\\.\\.\\}\\|array\\{0\\: string, non_cdata_followed_by_cdata\\: string, 1\\: string, 2\\: string, cdata\\: non\\-falsy\\-string, 3\\: non\\-falsy\\-string, 4\\: non\\-falsy\\-string\\} in isset\\(\\) always exists and is not nullable\\.$#', |
| 2843 | + 'message' => '#^Offset 0 on array\\{0\\: non\\-empty\\-string, non_cdata_followed_by_cdata\\: \'\', 1\\: \'\', 2\\: \'\', cdata\\: \'\', 3\\: \'\', 4\\: \'\', non_cdata\\: string, \\.\\.\\.\\}\\|array\\{0\\: non\\-empty\\-string, non_cdata_followed_by_cdata\\: string, 1\\: string, 2\\: string, cdata\\: non\\-falsy\\-string, 3\\: non\\-falsy\\-string, 4\\: non\\-falsy\\-string\\} in isset\\(\\) always exists and is not nullable\\.$#', |
2814 | 2844 | 'identifier' => 'isset.offset', |
2815 | 2845 | 'count' => 1, |
2816 | 2846 | 'path' => __DIR__ . '/../../../src/wp-includes/formatting.php', |
|
3319 | 3349 | 'count' => 1, |
3320 | 3350 | 'path' => __DIR__ . '/../../../src/wp-includes/ms-blogs.php', |
3321 | 3351 | ]; |
| 3352 | +$ignoreErrors[] = [ |
| 3353 | + 'message' => '#^Offset \'_wp_switched_stack\' on non\\-empty\\-array in empty\\(\\) always exists and is not falsy\\.$#', |
| 3354 | + 'identifier' => 'empty.offset', |
| 3355 | + 'count' => 2, |
| 3356 | + 'path' => __DIR__ . '/../../../src/wp-includes/ms-blogs.php', |
| 3357 | +]; |
3322 | 3358 | $ignoreErrors[] = [ |
3323 | 3359 | 'message' => '#^Strict comparison using \\!\\=\\= between null and null will always evaluate to false\\.$#', |
3324 | 3360 | 'identifier' => 'notIdentical.alwaysFalse', |
|
3367 | 3403 | 'count' => 1, |
3368 | 3404 | 'path' => __DIR__ . '/../../../src/wp-includes/ms-functions.php', |
3369 | 3405 | ]; |
3370 | | -$ignoreErrors[] = [ |
3371 | | - 'message' => '#^Unreachable statement \\- code above always terminates\\.$#', |
3372 | | - 'identifier' => 'deadCode.unreachable', |
3373 | | - 'count' => 1, |
3374 | | - 'path' => __DIR__ . '/../../../src/wp-includes/ms-functions.php', |
3375 | | -]; |
3376 | 3406 | $ignoreErrors[] = [ |
3377 | 3407 | 'message' => '#^Strict comparison using \\!\\=\\= between \'%%siteurl%%\' and \'\' will always evaluate to true\\.$#', |
3378 | 3408 | 'identifier' => 'notIdentical.alwaysTrue', |
|
0 commit comments