|
265 | 265 | 'count' => 1, |
266 | 266 | 'path' => __DIR__ . '/../../../src/wp-includes/block-template-utils.php', |
267 | 267 | ]; |
| 268 | +$ignoreErrors[] = [ |
| 269 | + 'message' => '#^Strict comparison using \\=\\=\\= between false and mixed will always evaluate to false\\.$#', |
| 270 | + 'identifier' => 'identical.alwaysFalse', |
| 271 | + 'count' => 1, |
| 272 | + 'path' => __DIR__ . '/../../../src/wp-includes/block-template-utils.php', |
| 273 | +]; |
268 | 274 | $ignoreErrors[] = [ |
269 | 275 | 'message' => '#^While loop condition is always true\\.$#', |
270 | 276 | 'identifier' => 'while.alwaysTrue', |
|
277 | 283 | 'count' => 1, |
278 | 284 | 'path' => __DIR__ . '/../../../src/wp-includes/canonical.php', |
279 | 285 | ]; |
280 | | -$ignoreErrors[] = [ |
281 | | - 'message' => '#^Offset \'port\' on array\\{path\\: mixed, host\\?\\: mixed\\} in empty\\(\\) does not exist\\.$#', |
282 | | - 'identifier' => 'empty.offset', |
283 | | - 'count' => 2, |
284 | | - 'path' => __DIR__ . '/../../../src/wp-includes/canonical.php', |
285 | | -]; |
286 | | -$ignoreErrors[] = [ |
287 | | - 'message' => '#^Offset \'query\' on array\\{path\\: array\\|string\\|null\\} in empty\\(\\) does not exist\\.$#', |
288 | | - 'identifier' => 'empty.offset', |
289 | | - 'count' => 1, |
290 | | - 'path' => __DIR__ . '/../../../src/wp-includes/canonical.php', |
291 | | -]; |
292 | | -$ignoreErrors[] = [ |
293 | | - 'message' => '#^Offset \'query\' on array\\{path\\: mixed, host\\?\\: mixed\\} in empty\\(\\) does not exist\\.$#', |
294 | | - 'identifier' => 'empty.offset', |
295 | | - 'count' => 2, |
296 | | - 'path' => __DIR__ . '/../../../src/wp-includes/canonical.php', |
297 | | -]; |
298 | 286 | $ignoreErrors[] = [ |
299 | 287 | 'message' => '#^Unreachable statement \\- code above always terminates\\.$#', |
300 | 288 | 'identifier' => 'deadCode.unreachable', |
|
313 | 301 | 'count' => 1, |
314 | 302 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-bindings-registry.php', |
315 | 303 | ]; |
| 304 | +$ignoreErrors[] = [ |
| 305 | + 'message' => '#^If condition is always false\\.$#', |
| 306 | + 'identifier' => 'if.alwaysFalse', |
| 307 | + 'count' => 1, |
| 308 | + 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-processor.php', |
| 309 | +]; |
| 310 | +$ignoreErrors[] = [ |
| 311 | + 'message' => '#^Property WP_Block_Processor\\:\\:\\$last_error \\(string\\|null\\) is never assigned string so it can be removed from the property type\\.$#', |
| 312 | + 'identifier' => 'property.unusedType', |
| 313 | + 'count' => 1, |
| 314 | + 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-processor.php', |
| 315 | +]; |
| 316 | +$ignoreErrors[] = [ |
| 317 | + 'message' => '#^Unreachable statement \\- code above always terminates\\.$#', |
| 318 | + 'identifier' => 'deadCode.unreachable', |
| 319 | + 'count' => 1, |
| 320 | + 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-processor.php', |
| 321 | +]; |
316 | 322 | $ignoreErrors[] = [ |
317 | 323 | 'message' => '#^Negated boolean expression is always true\\.$#', |
318 | 324 | 'identifier' => 'booleanNot.alwaysTrue', |
319 | 325 | 'count' => 1, |
320 | 326 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-templates-registry.php', |
321 | 327 | ]; |
| 328 | +$ignoreErrors[] = [ |
| 329 | + 'message' => '#^Negated boolean expression is always true\\.$#', |
| 330 | + 'identifier' => 'booleanNot.alwaysTrue', |
| 331 | + 'count' => 1, |
| 332 | + 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block.php', |
| 333 | +]; |
| 334 | +$ignoreErrors[] = [ |
| 335 | + 'message' => '#^Result of \\|\\| is always true\\.$#', |
| 336 | + 'identifier' => 'booleanOr.alwaysTrue', |
| 337 | + 'count' => 1, |
| 338 | + 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block.php', |
| 339 | +]; |
| 340 | +$ignoreErrors[] = [ |
| 341 | + 'message' => '#^Unreachable statement \\- code above always terminates\\.$#', |
| 342 | + 'identifier' => 'deadCode.unreachable', |
| 343 | + 'count' => 1, |
| 344 | + 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block.php', |
| 345 | +]; |
322 | 346 | $ignoreErrors[] = [ |
323 | 347 | 'message' => '#^Negated boolean expression is always false\\.$#', |
324 | 348 | 'identifier' => 'booleanNot.alwaysFalse', |
|
397 | 421 | 'count' => 1, |
398 | 422 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-customize-widgets.php', |
399 | 423 | ]; |
400 | | -$ignoreErrors[] = [ |
401 | | - 'message' => '#^Call to function is_array\\(\\) with mixed will always evaluate to false\\.$#', |
402 | | - 'identifier' => 'function.impossibleType', |
403 | | - 'count' => 1, |
404 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-date-query.php', |
405 | | -]; |
406 | 424 | $ignoreErrors[] = [ |
407 | 425 | 'message' => '#^Property WP_Dependencies\\:\\:\\$all_queued_deps \\(array\\) in isset\\(\\) is not nullable\\.$#', |
408 | 426 | 'identifier' => 'isset.property', |
409 | 427 | 'count' => 1, |
410 | 428 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-dependencies.php', |
411 | 429 | ]; |
412 | | -$ignoreErrors[] = [ |
413 | | - 'message' => '#^Property _WP_Dependency\\:\\:\\$ver \\(bool\\|string\\) on left side of \\?\\? is not nullable\\.$#', |
414 | | - 'identifier' => 'nullCoalesce.property', |
415 | | - 'count' => 1, |
416 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-dependencies.php', |
417 | | -]; |
418 | 430 | $ignoreErrors[] = [ |
419 | 431 | 'message' => '#^Unreachable statement \\- code above always terminates\\.$#', |
420 | 432 | 'identifier' => 'deadCode.unreachable', |
|
590 | 602 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-rewrite.php', |
591 | 603 | ]; |
592 | 604 | $ignoreErrors[] = [ |
593 | | - 'message' => '#^Property _WP_Dependency\\:\\:\\$args \\(array\\) in isset\\(\\) is not nullable\\.$#', |
594 | | - 'identifier' => 'isset.property', |
| 605 | + 'message' => '#^Method WP_Script_Modules\\:\\:get_marked_for_enqueue\\(\\) is unused\\.$#', |
| 606 | + 'identifier' => 'method.unused', |
595 | 607 | 'count' => 1, |
596 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-scripts.php', |
| 608 | + 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-script-modules.php', |
597 | 609 | ]; |
598 | 610 | $ignoreErrors[] = [ |
599 | 611 | 'message' => '#^Property _WP_Dependency\\:\\:\\$translations_path \\(string\\) in isset\\(\\) is not nullable\\.$#', |
600 | 612 | 'identifier' => 'isset.property', |
601 | 613 | 'count' => 1, |
602 | 614 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-scripts.php', |
603 | 615 | ]; |
604 | | -$ignoreErrors[] = [ |
605 | | - 'message' => '#^Property _WP_Dependency\\:\\:\\$args \\(array\\) in isset\\(\\) is not nullable\\.$#', |
606 | | - 'identifier' => 'isset.property', |
607 | | - 'count' => 1, |
608 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-styles.php', |
609 | | -]; |
610 | 616 | $ignoreErrors[] = [ |
611 | 617 | 'message' => '#^Comparison operation "\\<\\=" between 0 and int\\<0, max\\>\\|false is always true\\.$#', |
612 | 618 | 'identifier' => 'smallerOrEqual.alwaysTrue', |
|
715 | 721 | 'count' => 1, |
716 | 722 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wpdb.php', |
717 | 723 | ]; |
| 724 | +$ignoreErrors[] = [ |
| 725 | + 'message' => '#^Function _wp_scan_utf8\\(\\) never assigns null to &\\$has_noncharacters so it can be removed from the by\\-ref type\\.$#', |
| 726 | + 'identifier' => 'parameterByRef.unusedType', |
| 727 | + 'count' => 1, |
| 728 | + 'path' => __DIR__ . '/../../../src/wp-includes/compat-utf8.php', |
| 729 | +]; |
| 730 | +$ignoreErrors[] = [ |
| 731 | + 'message' => '#^Function _wp_utf8_codepoint_span\\(\\) never assigns null to &\\$found_code_points so it can be removed from the by\\-ref type\\.$#', |
| 732 | + 'identifier' => 'parameterByRef.unusedType', |
| 733 | + 'count' => 1, |
| 734 | + 'path' => __DIR__ . '/../../../src/wp-includes/compat-utf8.php', |
| 735 | +]; |
718 | 736 | $ignoreErrors[] = [ |
719 | 737 | 'message' => '#^Instanceof between mixed and ResourceBundle will always evaluate to false\\.$#', |
720 | 738 | 'identifier' => 'instanceof.alwaysFalse', |
|
0 commit comments