Skip to content

Commit c43413f

Browse files
committed
chore: regenerate baselines
1 parent 1c9cfb9 commit c43413f

File tree

2 files changed

+6
-30
lines changed

2 files changed

+6
-30
lines changed

tests/phpstan/baseline/level-4.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -139,24 +139,12 @@
139139
'count' => 1,
140140
'path' => __DIR__ . '/../../../src/wp-admin/includes/image.php',
141141
];
142-
$ignoreErrors[] = [
143-
'message' => '#^Right side of && is always true\\.$#',
144-
'identifier' => 'booleanAnd.rightAlwaysTrue',
145-
'count' => 1,
146-
'path' => __DIR__ . '/../../../src/wp-admin/includes/image.php',
147-
];
148142
$ignoreErrors[] = [
149143
'message' => '#^Offset \'created_timestamp\' on array\\{\\}\\|array\\{lossless\\?\\: mixed, bitrate\\?\\: int, bitrate_mode\\?\\: mixed, filesize\\?\\: int, mime_type\\?\\: mixed, length\\?\\: int, length_formatted\\?\\: mixed, width\\?\\: int, \\.\\.\\.\\} in empty\\(\\) does not exist\\.$#',
150144
'identifier' => 'empty.offset',
151145
'count' => 1,
152146
'path' => __DIR__ . '/../../../src/wp-admin/includes/media.php',
153147
];
154-
$ignoreErrors[] = [
155-
'message' => '#^Left side of && is always true\\.$#',
156-
'identifier' => 'booleanAnd.leftAlwaysTrue',
157-
'count' => 1,
158-
'path' => __DIR__ . '/../../../src/wp-admin/includes/misc.php',
159-
];
160148
$ignoreErrors[] = [
161149
'message' => '#^While loop condition is always true\\.$#',
162150
'identifier' => 'while.alwaysTrue',
@@ -859,12 +847,6 @@
859847
'count' => 1,
860848
'path' => __DIR__ . '/../../../src/wp-includes/general-template.php',
861849
];
862-
$ignoreErrors[] = [
863-
'message' => '#^Strict comparison using \\=\\=\\= between false and false will always evaluate to true\\.$#',
864-
'identifier' => 'identical.alwaysTrue',
865-
'count' => 1,
866-
'path' => __DIR__ . '/../../../src/wp-includes/global-styles-and-settings.php',
867-
];
868850
$ignoreErrors[] = [
869851
'message' => '#^Unreachable statement \\- code above always terminates\\.$#',
870852
'identifier' => 'deadCode.unreachable',
@@ -1033,12 +1015,6 @@
10331015
'count' => 1,
10341016
'path' => __DIR__ . '/../../../src/wp-includes/ms-functions.php',
10351017
];
1036-
$ignoreErrors[] = [
1037-
'message' => '#^Call to function is_object\\(\\) with object will always evaluate to true\\.$#',
1038-
'identifier' => 'function.alreadyNarrowedType',
1039-
'count' => 1,
1040-
'path' => __DIR__ . '/../../../src/wp-includes/ms-functions.php',
1041-
];
10421018
$ignoreErrors[] = [
10431019
'message' => '#^Negated boolean expression is always false\\.$#',
10441020
'identifier' => 'booleanNot.alwaysFalse',
@@ -1063,12 +1039,6 @@
10631039
'count' => 2,
10641040
'path' => __DIR__ . '/../../../src/wp-includes/nav-menu.php',
10651041
];
1066-
$ignoreErrors[] = [
1067-
'message' => '#^Left side of && is always true\\.$#',
1068-
'identifier' => 'booleanAnd.leftAlwaysTrue',
1069-
'count' => 1,
1070-
'path' => __DIR__ . '/../../../src/wp-includes/option.php',
1071-
];
10721042
$ignoreErrors[] = [
10731043
'message' => '#^Negated boolean expression is always true\\.$#',
10741044
'identifier' => 'booleanNot.alwaysTrue',

tests/phpstan/baseline/level-5.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,12 @@
931931
'count' => 1,
932932
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-hook.php',
933933
];
934+
$ignoreErrors[] = [
935+
'message' => '#^Parameter \\#3 \\$value of function curl_setopt expects int, string given\\.$#',
936+
'identifier' => 'argument.type',
937+
'count' => 1,
938+
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-http-curl.php',
939+
];
934940
$ignoreErrors[] = [
935941
'message' => '#^Parameter \\#2 \\$mode of function stream_set_blocking expects bool, int given\\.$#',
936942
'identifier' => 'argument.type',

0 commit comments

Comments
 (0)