Skip to content

Commit 682af29

Browse files
committed
chore: regenerate baselines
1 parent 2f134b2 commit 682af29

4 files changed

Lines changed: 356 additions & 12536 deletions

File tree

tests/phpstan/baseline/level-1.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,6 @@
157157
'count' => 1,
158158
'path' => __DIR__ . '/../../../src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php',
159159
];
160-
$ignoreErrors[] = [
161-
'message' => '#^Variable \\$object_terms in empty\\(\\) always exists and is not falsy\\.$#',
162-
'identifier' => 'empty.variable',
163-
'count' => 1,
164-
'path' => __DIR__ . '/../../../src/wp-includes/taxonomy.php',
165-
];
166160
$ignoreErrors[] = [
167161
'message' => '#^Variable \\$the_parent in empty\\(\\) always exists and is not falsy\\.$#',
168162
'identifier' => 'empty.variable',
@@ -181,29 +175,5 @@
181175
'count' => 1,
182176
'path' => __DIR__ . '/../../../src/wp-includes/user.php',
183177
];
184-
$ignoreErrors[] = [
185-
'message' => '#^Variable \\$control_callback in empty\\(\\) always exists and is not falsy\\.$#',
186-
'identifier' => 'empty.variable',
187-
'count' => 1,
188-
'path' => __DIR__ . '/../../../src/wp-includes/widgets.php',
189-
];
190-
$ignoreErrors[] = [
191-
'message' => '#^Variable \\$form_callback in empty\\(\\) always exists and is not falsy\\.$#',
192-
'identifier' => 'empty.variable',
193-
'count' => 1,
194-
'path' => __DIR__ . '/../../../src/wp-includes/widgets.php',
195-
];
196-
$ignoreErrors[] = [
197-
'message' => '#^Variable \\$output_callback in empty\\(\\) always exists and is not falsy\\.$#',
198-
'identifier' => 'empty.variable',
199-
'count' => 1,
200-
'path' => __DIR__ . '/../../../src/wp-includes/widgets.php',
201-
];
202-
$ignoreErrors[] = [
203-
'message' => '#^Variable \\$update_callback in empty\\(\\) always exists and is not falsy\\.$#',
204-
'identifier' => 'empty.variable',
205-
'count' => 1,
206-
'path' => __DIR__ . '/../../../src/wp-includes/widgets.php',
207-
];
208178

209179
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];

tests/phpstan/baseline/level-4.php

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,6 @@
343343
'count' => 6,
344344
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-debug-data.php',
345345
];
346-
$ignoreErrors[] = [
347-
'message' => '#^Ternary operator condition is always true\\.$#',
348-
'identifier' => 'ternary.alwaysTrue',
349-
'count' => 1,
350-
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-debug-data.php',
351-
];
352346
$ignoreErrors[] = [
353347
'message' => '#^If condition is always true\\.$#',
354348
'identifier' => 'if.alwaysTrue',
@@ -3598,7 +3592,7 @@
35983592
$ignoreErrors[] = [
35993593
'message' => '#^Right side of && is always true\\.$#',
36003594
'identifier' => 'booleanAnd.rightAlwaysTrue',
3601-
'count' => 6,
3595+
'count' => 5,
36023596
'path' => __DIR__ . '/../../../src/wp-includes/load.php',
36033597
];
36043598
$ignoreErrors[] = [
@@ -4627,12 +4621,6 @@
46274621
'count' => 2,
46284622
'path' => __DIR__ . '/../../../src/wp-includes/widgets.php',
46294623
];
4630-
$ignoreErrors[] = [
4631-
'message' => '#^Call to function is_callable\\(\\) with callable\\(\\)\\: mixed will always evaluate to true\\.$#',
4632-
'identifier' => 'function.alreadyNarrowedType',
4633-
'count' => 3,
4634-
'path' => __DIR__ . '/../../../src/wp-includes/widgets.php',
4635-
];
46364624
$ignoreErrors[] = [
46374625
'message' => '#^Call to function is_scalar\\(\\) with int\\|string will always evaluate to true\\.$#',
46384626
'identifier' => 'function.alreadyNarrowedType',
@@ -4645,12 +4633,6 @@
46454633
'count' => 1,
46464634
'path' => __DIR__ . '/../../../src/wp-includes/widgets.php',
46474635
];
4648-
$ignoreErrors[] = [
4649-
'message' => '#^Result of && is always false\\.$#',
4650-
'identifier' => 'booleanAnd.alwaysFalse',
4651-
'count' => 2,
4652-
'path' => __DIR__ . '/../../../src/wp-includes/widgets.php',
4653-
];
46544636
$ignoreErrors[] = [
46554637
'message' => '#^If condition is always false\\.$#',
46564638
'identifier' => 'if.alwaysFalse',

tests/phpstan/baseline/level-5.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,18 +1873,6 @@
18731873
'count' => 1,
18741874
'path' => __DIR__ . '/../../../src/wp-includes/user.php',
18751875
];
1876-
$ignoreErrors[] = [
1877-
'message' => '#^Parameter \\#3 \\$control_callback of function wp_register_widget_control expects callable\\(\\)\\: mixed, \'\' given\\.$#',
1878-
'identifier' => 'argument.type',
1879-
'count' => 1,
1880-
'path' => __DIR__ . '/../../../src/wp-includes/widgets.php',
1881-
];
1882-
$ignoreErrors[] = [
1883-
'message' => '#^Parameter \\#3 \\$output_callback of function wp_register_sidebar_widget expects callable\\(\\)\\: mixed, \'\' given\\.$#',
1884-
'identifier' => 'argument.type',
1885-
'count' => 1,
1886-
'path' => __DIR__ . '/../../../src/wp-includes/widgets.php',
1887-
];
18881876
$ignoreErrors[] = [
18891877
'message' => '#^Parameter \\#1 \\$text of function esc_attr expects string, int given\\.$#',
18901878
'identifier' => 'argument.type',

0 commit comments

Comments
 (0)