Skip to content

Commit 6a209c6

Browse files
committed
[PHPStan]: regenerate baselines
1 parent 40e3a5d commit 6a209c6

6 files changed

Lines changed: 202 additions & 610 deletions

File tree

tests/phpstan/baseline/level-3.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -49,30 +49,6 @@
4949
'count' => 1,
5050
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-post-comments-list-table.php',
5151
];
52-
$ignoreErrors[] = [
53-
'message' => '#^Method WP_Screen\\:\\:get_help_tab\\(\\) should return array but returns null\\.$#',
54-
'identifier' => 'return.type',
55-
'count' => 1,
56-
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-screen.php',
57-
];
58-
$ignoreErrors[] = [
59-
'message' => '#^Method WP_Screen\\:\\:get_option\\(\\) should return string but returns null\\.$#',
60-
'identifier' => 'return.type',
61-
'count' => 2,
62-
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-screen.php',
63-
];
64-
$ignoreErrors[] = [
65-
'message' => '#^Method WP_Screen\\:\\:get_screen_reader_text\\(\\) should return string but returns null\\.$#',
66-
'identifier' => 'return.type',
67-
'count' => 1,
68-
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-screen.php',
69-
];
70-
$ignoreErrors[] = [
71-
'message' => '#^Property WP_Screen\\:\\:\\$columns \\(int\\) does not accept string\\.$#',
72-
'identifier' => 'assign.propertyType',
73-
'count' => 1,
74-
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-screen.php',
75-
];
7652
$ignoreErrors[] = [
7753
'message' => '#^Offset \'preview\' does not exist on array\\{activate\\: non\\-falsy\\-string\\}\\.$#',
7854
'identifier' => 'offsetAccess.notFound',
@@ -115,12 +91,6 @@
11591
'count' => 2,
11692
'path' => __DIR__ . '/../../../src/wp-admin/includes/plugin.php',
11793
];
118-
$ignoreErrors[] = [
119-
'message' => '#^Function wp_create_category\\(\\) should return int\\|WP_Error but returns string\\.$#',
120-
'identifier' => 'return.type',
121-
'count' => 1,
122-
'path' => __DIR__ . '/../../../src/wp-admin/includes/taxonomy.php',
123-
];
12494
$ignoreErrors[] = [
12595
'message' => '#^Function convert_to_screen\\(\\) should return WP_Screen but returns object\\{id\\: string, base\\: string\\}&stdClass\\.$#',
12696
'identifier' => 'return.type',

tests/phpstan/baseline/level-4.php

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -517,24 +517,6 @@
517517
'count' => 1,
518518
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-privacy-requests-table.php',
519519
];
520-
$ignoreErrors[] = [
521-
'message' => '#^Call to function is_bool\\(\\) with bool will always evaluate to true\\.$#',
522-
'identifier' => 'function.alreadyNarrowedType',
523-
'count' => 1,
524-
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-screen.php',
525-
];
526-
$ignoreErrors[] = [
527-
'message' => '#^Property WP_Screen\\:\\:\\$_screen_settings is never written, only read\\.$#',
528-
'identifier' => 'property.onlyRead',
529-
'count' => 1,
530-
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-screen.php',
531-
];
532-
$ignoreErrors[] = [
533-
'message' => '#^Property WP_Screen\\:\\:\\$_show_screen_options is never written, only read\\.$#',
534-
'identifier' => 'property.onlyRead',
535-
'count' => 1,
536-
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-screen.php',
537-
];
538520
$ignoreErrors[] = [
539521
'message' => '#^Property WP_Screen\\:\\:\\$post_type \\(string\\) in isset\\(\\) is not nullable\\.$#',
540522
'identifier' => 'isset.property',
@@ -547,18 +529,6 @@
547529
'count' => 2,
548530
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-screen.php',
549531
];
550-
$ignoreErrors[] = [
551-
'message' => '#^Strict comparison using \\=\\=\\= between null and string will always evaluate to false\\.$#',
552-
'identifier' => 'identical.alwaysFalse',
553-
'count' => 2,
554-
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-screen.php',
555-
];
556-
$ignoreErrors[] = [
557-
'message' => '#^Unreachable statement \\- code above always terminates\\.$#',
558-
'identifier' => 'deadCode.unreachable',
559-
'count' => 1,
560-
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-screen.php',
561-
];
562532
$ignoreErrors[] = [
563533
'message' => '#^Call to function is_array\\(\\) with non\\-empty\\-array will always evaluate to true\\.$#',
564534
'identifier' => 'function.alreadyNarrowedType',
@@ -4663,11 +4633,5 @@
46634633
'count' => 1,
46644634
'path' => __DIR__ . '/../../../src/wp-settings.php',
46654635
];
4666-
$ignoreErrors[] = [
4667-
'message' => '#^Function validate_another_blog_signup\\(\\) never returns null so it can be removed from the return type\\.$#',
4668-
'identifier' => 'return.unusedType',
4669-
'count' => 1,
4670-
'path' => __DIR__ . '/../../../src/wp-signup.php',
4671-
];
46724636

46734637
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];

0 commit comments

Comments
 (0)