Skip to content

Commit c83a099

Browse files
committed
chore: regenerate PHPStan Baselines after rebase
1 parent ff0f5a5 commit c83a099

3 files changed

Lines changed: 12 additions & 42 deletions

File tree

tests/phpstan/baseline/level-3.php

Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -277,30 +277,6 @@
277277
'count' => 1,
278278
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-comment-query.php',
279279
];
280-
$ignoreErrors[] = [
281-
'message' => '#^Property WP_Comment\\:\\:\\$comment_karma \\(string\\) does not accept default value of type int\\.$#',
282-
'identifier' => 'property.defaultValue',
283-
'count' => 1,
284-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-comment.php',
285-
];
286-
$ignoreErrors[] = [
287-
'message' => '#^Property WP_Comment\\:\\:\\$comment_parent \\(string\\) does not accept default value of type int\\.$#',
288-
'identifier' => 'property.defaultValue',
289-
'count' => 1,
290-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-comment.php',
291-
];
292-
$ignoreErrors[] = [
293-
'message' => '#^Property WP_Comment\\:\\:\\$comment_post_ID \\(string\\) does not accept default value of type int\\.$#',
294-
'identifier' => 'property.defaultValue',
295-
'count' => 1,
296-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-comment.php',
297-
];
298-
$ignoreErrors[] = [
299-
'message' => '#^Property WP_Comment\\:\\:\\$user_id \\(string\\) does not accept default value of type int\\.$#',
300-
'identifier' => 'property.defaultValue',
301-
'count' => 1,
302-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-comment.php',
303-
];
304280
$ignoreErrors[] = [
305281
'message' => '#^Property WP_Customize_Control\\:\\:\\$active_callback \\(callable\\(\\)\\: mixed\\) does not accept default value of type \'\'\\.$#',
306282
'identifier' => 'property.defaultValue',
@@ -391,18 +367,6 @@
391367
'count' => 1,
392368
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-post-type.php',
393369
];
394-
$ignoreErrors[] = [
395-
'message' => '#^Property WP_Post\\:\\:\\$comment_count \\(string\\) does not accept default value of type int\\.$#',
396-
'identifier' => 'property.defaultValue',
397-
'count' => 1,
398-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-post.php',
399-
];
400-
$ignoreErrors[] = [
401-
'message' => '#^Property WP_Post\\:\\:\\$post_author \\(string\\) does not accept default value of type int\\.$#',
402-
'identifier' => 'property.defaultValue',
403-
'count' => 1,
404-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-post.php',
405-
];
406370
$ignoreErrors[] = [
407371
'message' => '#^Method WP_Query\\:\\:setup_postdata\\(\\) should return true but empty return statement found\\.$#',
408372
'identifier' => 'return.empty',
@@ -445,6 +409,12 @@
445409
'count' => 1,
446410
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-site-query.php',
447411
];
412+
$ignoreErrors[] = [
413+
'message' => '#^Method WP_Speculation_Rules\\:\\:jsonSerialize\\(\\) should return array\\<string, array\\<string, mixed\\>\\> but returns array\\<string, list\\<mixed\\>\\>\\.$#',
414+
'identifier' => 'return.type',
415+
'count' => 1,
416+
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-speculation-rules.php',
417+
];
448418
$ignoreErrors[] = [
449419
'message' => '#^Method WP_Tax_Query\\:\\:get_sql_for_clause\\(\\) should return array but returns string\\.$#',
450420
'identifier' => 'return.type',

tests/phpstan/baseline/level-4.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2509,6 +2509,12 @@
25092509
'count' => 1,
25102510
'path' => __DIR__ . '/../../../src/wp-includes/comment.php',
25112511
];
2512+
$ignoreErrors[] = [
2513+
'message' => '#^Strict comparison using \\=\\=\\= between null and string will always evaluate to false\\.$#',
2514+
'identifier' => 'identical.alwaysFalse',
2515+
'count' => 1,
2516+
'path' => __DIR__ . '/../../../src/wp-includes/comment.php',
2517+
];
25122518
$ignoreErrors[] = [
25132519
'message' => '#^Ternary operator condition is always true\\.$#',
25142520
'identifier' => 'ternary.alwaysTrue',

tests/phpstan/baseline/level-6.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8107,12 +8107,6 @@
81078107
'count' => 1,
81088108
'path' => __DIR__ . '/../../../src/wp-includes/comment.php',
81098109
];
8110-
$ignoreErrors[] = [
8111-
'message' => '#^Function pingback\\(\\) has no return type specified\\.$#',
8112-
'identifier' => 'missingType.return',
8113-
'count' => 1,
8114-
'path' => __DIR__ . '/../../../src/wp-includes/comment.php',
8115-
];
81168110
$ignoreErrors[] = [
81178111
'message' => '#^Function sanitize_comment_cookies\\(\\) has no return type specified\\.$#',
81188112
'identifier' => 'missingType.return',

0 commit comments

Comments
 (0)