Skip to content

Commit 4afbc25

Browse files
committed
chore: regenerate baselines
1 parent 54d9eb6 commit 4afbc25

3 files changed

Lines changed: 1 addition & 37 deletions

File tree

tests/phpstan/baseline/level-2.php

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -523,12 +523,6 @@
523523
'count' => 2,
524524
'path' => __DIR__ . '/../../../src/wp-admin/includes/plugin-install.php',
525525
];
526-
$ignoreErrors[] = [
527-
'message' => '#^Binary operation "\\*" between string and 1\\.0E\\-5 results in an error\\.$#',
528-
'identifier' => 'binaryOp.invalid',
529-
'count' => 1,
530-
'path' => __DIR__ . '/../../../src/wp-admin/includes/plugin.php',
531-
];
532526
$ignoreErrors[] = [
533527
'message' => '#^Access to private property WP_Block_Type\\:\\:\\$uses_context\\.$#',
534528
'identifier' => 'property.private',
@@ -697,12 +691,6 @@
697691
'count' => 1,
698692
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-customize-manager.php',
699693
];
700-
$ignoreErrors[] = [
701-
'message' => '#^Binary operation "/" between string and 255 results in an error\\.$#',
702-
'identifier' => 'binaryOp.invalid',
703-
'count' => 1,
704-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-duotone.php',
705-
];
706694
$ignoreErrors[] = [
707695
'message' => '#^PHPDoc tag @param for parameter \\$type contains unresolvable type\\.$#',
708696
'identifier' => 'parameter.unresolvableType',
@@ -884,7 +872,7 @@
884872
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-theme-json.php',
885873
];
886874
$ignoreErrors[] = [
887-
'message' => '#^Binary operation "\\+" between array\\|int\\<min, \\-1\\>\\|int\\<1, max\\> and 1 results in an error\\.$#',
875+
'message' => '#^Binary operation "\\+" between array\\<int\\|WP_Comment\\>\\|int\\<min, \\-1\\>\\|int\\<1, max\\> and 1 results in an error\\.$#',
888876
'identifier' => 'binaryOp.invalid',
889877
'count' => 1,
890878
'path' => __DIR__ . '/../../../src/wp-includes/comment.php',
@@ -1051,12 +1039,6 @@
10511039
'count' => 1,
10521040
'path' => __DIR__ . '/../../../src/wp-includes/taxonomy.php',
10531041
];
1054-
$ignoreErrors[] = [
1055-
'message' => '#^Function wp_list_users\\(\\) should return string\\|null but return statement is missing\\.$#',
1056-
'identifier' => 'return.missing',
1057-
'count' => 1,
1058-
'path' => __DIR__ . '/../../../src/wp-includes/user.php',
1059-
];
10601042
$ignoreErrors[] = [
10611043
'message' => '#^PHPDoc tag @var does not specify variable name\\.$#',
10621044
'identifier' => 'varTag.noVariable',

tests/phpstan/baseline/level-5.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,18 +1315,6 @@
13151315
'count' => 1,
13161316
'path' => __DIR__ . '/../../../src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php',
13171317
];
1318-
$ignoreErrors[] = [
1319-
'message' => '#^Parameter \\#2 \\$value of method WP_HTTP_Response\\:\\:header\\(\\) expects string, array\\|int given\\.$#',
1320-
'identifier' => 'argument.type',
1321-
'count' => 1,
1322-
'path' => __DIR__ . '/../../../src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php',
1323-
];
1324-
$ignoreErrors[] = [
1325-
'message' => '#^Parameter \\#2 \\$value of method WP_HTTP_Response\\:\\:header\\(\\) expects string, int given\\.$#',
1326-
'identifier' => 'argument.type',
1327-
'count' => 1,
1328-
'path' => __DIR__ . '/../../../src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php',
1329-
];
13301318
$ignoreErrors[] = [
13311319
'message' => '#^Parameter \\#2 \\$value of method WP_HTTP_Response\\:\\:header\\(\\) expects string, int given\\.$#',
13321320
'identifier' => 'argument.type',

tests/phpstan/baseline/level-6.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -655,12 +655,6 @@
655655
'count' => 1,
656656
'path' => __DIR__ . '/../../../src/wp-includes/functions.php',
657657
];
658-
$ignoreErrors[] = [
659-
'message' => '#^Function get_file\\(\\) has parameter \\$path with no type specified\\.$#',
660-
'identifier' => 'missingType.parameter',
661-
'count' => 1,
662-
'path' => __DIR__ . '/../../../src/wp-includes/js/tinymce/wp-tinymce.php',
663-
];
664658
$ignoreErrors[] = [
665659
'message' => '#^Class WP_REST_Request implements generic interface ArrayAccess but does not specify its types\\: TKey, TValue$#',
666660
'identifier' => 'missingType.generics',

0 commit comments

Comments
 (0)