Skip to content

Commit 50169b6

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

File tree

4 files changed

+1
-247
lines changed

4 files changed

+1
-247
lines changed

tests/phpstan/baseline/level-1.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@
4949
'count' => 1,
5050
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-posts-list-table.php',
5151
];
52-
$ignoreErrors[] = [
53-
// identifier: empty.variable
54-
'message' => '#^Variable \\$connection_type in empty\\(\\) always exists and is not falsy\\.$#',
55-
'count' => 1,
56-
'path' => __DIR__ . '/../../../src/wp-admin/includes/file.php',
57-
];
5852
$ignoreErrors[] = [
5953
// identifier: isset.variable
6054
'message' => '#^Variable \\$_POST in isset\\(\\) always exists and is not nullable\\.$#',

tests/phpstan/baseline/level-3.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,6 @@
133133
'count' => 1,
134134
'path' => __DIR__ . '/../../../src/wp-admin/update-core.php',
135135
];
136-
$ignoreErrors[] = [
137-
// identifier: return.type
138-
'message' => '#^Function get_the_author_posts\\(\\) should return int but returns string\\.$#',
139-
'count' => 1,
140-
'path' => __DIR__ . '/../../../src/wp-includes/author-template.php',
141-
];
142136
$ignoreErrors[] = [
143137
// identifier: assign.propertyType
144138
'message' => '#^Property WP_Block_Template\\:\\:\\$author \\(int\\|null\\) does not accept string\\.$#',
@@ -379,18 +373,6 @@
379373
'count' => 1,
380374
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-speculation-rules.php',
381375
];
382-
$ignoreErrors[] = [
383-
// identifier: return.type
384-
'message' => '#^Method WP_Tax_Query\\:\\:get_sql_for_clause\\(\\) should return array but returns string\\.$#',
385-
'count' => 2,
386-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-tax-query.php',
387-
];
388-
$ignoreErrors[] = [
389-
// identifier: property.defaultValue
390-
'message' => '#^Static property WP_Tax_Query\\:\\:\\$no_results \\(string\\) does not accept default value of type array\\<string, array\\<int, string\\>\\>\\.$#',
391-
'count' => 1,
392-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-tax-query.php',
393-
];
394376
$ignoreErrors[] = [
395377
// identifier: return.type
396378
'message' => '#^Method WP_Term_Query\\:\\:get_terms\\(\\) should return array\\<int\\|string\\|WP_Term\\>\\|string but returns int\\.$#',
@@ -625,12 +607,6 @@
625607
'count' => 1,
626608
'path' => __DIR__ . '/../../../src/wp-includes/embed.php',
627609
];
628-
$ignoreErrors[] = [
629-
// identifier: return.type
630-
'message' => '#^Function wp_filter_oembed_result\\(\\) should return string but returns false\\.$#',
631-
'count' => 1,
632-
'path' => __DIR__ . '/../../../src/wp-includes/embed.php',
633-
];
634610
$ignoreErrors[] = [
635611
// identifier: offsetAccess.notFound
636612
'message' => '#^Offset \'basedir\' does not exist on string\\.$#',
@@ -751,12 +727,6 @@
751727
'count' => 1,
752728
'path' => __DIR__ . '/../../../src/wp-includes/post.php',
753729
];
754-
$ignoreErrors[] = [
755-
// identifier: return.type
756-
'message' => '#^Function wp_update_attachment_metadata\\(\\) should return int\\|false but returns bool\\.$#',
757-
'count' => 1,
758-
'path' => __DIR__ . '/../../../src/wp-includes/post.php',
759-
];
760730
$ignoreErrors[] = [
761731
// identifier: property.phpDocType
762732
'message' => '#^PHPDoc type false of property WP_REST_Attachments_Controller\\:\\:\\$allow_batch is not covariant with PHPDoc type array of overridden property WP_REST_Posts_Controller\\:\\:\\$allow_batch\\.$#',

0 commit comments

Comments
 (0)