Skip to content

Commit fb61258

Browse files
committed
chore: regenerate PHPStan baselines
1 parent 50169b6 commit fb61258

File tree

3 files changed

+0
-36
lines changed

3 files changed

+0
-36
lines changed

tests/phpstan/baseline/level-1.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,6 @@
127127
'count' => 1,
128128
'path' => __DIR__ . '/../../../src/wp-includes/class-wpdb.php',
129129
];
130-
$ignoreErrors[] = [
131-
// identifier: isset.variable
132-
'message' => '#^Variable \\$newrow in isset\\(\\) always exists and is not nullable\\.$#',
133-
'count' => 1,
134-
'path' => __DIR__ . '/../../../src/wp-includes/general-template.php',
135-
];
136130
$ignoreErrors[] = [
137131
// identifier: isset.variable
138132
'message' => '#^Variable \\$user_already_exists in isset\\(\\) always exists and is not nullable\\.$#',
@@ -151,12 +145,6 @@
151145
'count' => 1,
152146
'path' => __DIR__ . '/../../../src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php',
153147
];
154-
$ignoreErrors[] = [
155-
// identifier: isset.variable
156-
'message' => '#^Variable \\$default in isset\\(\\) always exists and is not nullable\\.$#',
157-
'count' => 2,
158-
'path' => __DIR__ . '/../../../src/wp-includes/taxonomy.php',
159-
];
160148
$ignoreErrors[] = [
161149
// identifier: isset.variable
162150
'message' => '#^Variable \\$s in isset\\(\\) is never defined\\.$#',

tests/phpstan/baseline/level-3.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -535,30 +535,12 @@
535535
'count' => 2,
536536
'path' => __DIR__ . '/../../../src/wp-includes/comment-template.php',
537537
];
538-
$ignoreErrors[] = [
539-
// identifier: offsetAccess.nonOffsetAccessible
540-
'message' => '#^Cannot access offset 0 on WP_Post\\.$#',
541-
'count' => 4,
542-
'path' => __DIR__ . '/../../../src/wp-includes/comment.php',
543-
];
544-
$ignoreErrors[] = [
545-
// identifier: return.type
546-
'message' => '#^Function _close_comments_for_old_posts\\(\\) should return array but returns WP_Post\\.$#',
547-
'count' => 4,
548-
'path' => __DIR__ . '/../../../src/wp-includes/comment.php',
549-
];
550538
$ignoreErrors[] = [
551539
// identifier: return.empty
552540
'message' => '#^Function get_page_of_comment\\(\\) should return int\\|null but empty return statement found\\.$#',
553541
'count' => 1,
554542
'path' => __DIR__ . '/../../../src/wp-includes/comment.php',
555543
];
556-
$ignoreErrors[] = [
557-
// identifier: return.type
558-
'message' => '#^Function separate_comments\\(\\) should return array\\<WP_Comment\\> but returns array\\<string, array\\<int, WP_Comment\\>\\>\\.$#',
559-
'count' => 1,
560-
'path' => __DIR__ . '/../../../src/wp-includes/comment.php',
561-
];
562544
$ignoreErrors[] = [
563545
// identifier: property.phpDocType
564546
'message' => '#^PHPDoc type array of property WP_Customize_Nav_Menu_Item_Setting\\:\\:\\$default is not covariant with PHPDoc type string of overridden property WP_Customize_Setting\\:\\:\\$default\\.$#',

tests/phpstan/baseline/level-4.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,6 @@
253253
'count' => 1,
254254
'path' => __DIR__ . '/../../../src/wp-includes/block-template-utils.php',
255255
];
256-
$ignoreErrors[] = [
257-
// identifier: deadCode.unreachable
258-
'message' => '#^Unreachable statement \\- code above always terminates\\.$#',
259-
'count' => 1,
260-
'path' => __DIR__ . '/../../../src/wp-includes/block-template-utils.php',
261-
];
262256
$ignoreErrors[] = [
263257
// identifier: while.alwaysTrue
264258
'message' => '#^While loop condition is always true\\.$#',

0 commit comments

Comments
 (0)