Skip to content

Commit 80d3039

Browse files
committed
chore: regenerate baselines
1 parent 13fd9ab commit 80d3039

7 files changed

Lines changed: 193 additions & 1171 deletions

File tree

tests/phpstan/baseline/level-0.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@
7373
'count' => 2,
7474
'path' => __DIR__ . '/../../../src/wp-includes/customize/class-wp-customize-header-image-setting.php',
7575
];
76+
$ignoreErrors[] = [
77+
'message' => '#^Unsafe usage of new static\\(\\)\\.$#',
78+
'identifier' => 'new.static',
79+
'count' => 2,
80+
'path' => __DIR__ . '/../../../src/wp-includes/html-api/class-wp-html-processor.php',
81+
];
7682
$ignoreErrors[] = [
7783
'message' => '#^Class GdImage not found\\.$#',
7884
'identifier' => 'class.notFound',

tests/phpstan/baseline/level-1.php

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,6 @@
11
<?php declare(strict_types = 1);
22

33
$ignoreErrors = [];
4-
$ignoreErrors[] = [
5-
'message' => '#^Call to function compact\\(\\) contains possibly undefined variable \\$comment_author\\.$#',
6-
'identifier' => 'variable.undefined',
7-
'count' => 1,
8-
'path' => __DIR__ . '/../../../src/wp-admin/includes/ajax-actions.php',
9-
];
10-
$ignoreErrors[] = [
11-
'message' => '#^Call to function compact\\(\\) contains possibly undefined variable \\$comment_author_email\\.$#',
12-
'identifier' => 'variable.undefined',
13-
'count' => 1,
14-
'path' => __DIR__ . '/../../../src/wp-admin/includes/ajax-actions.php',
15-
];
16-
$ignoreErrors[] = [
17-
'message' => '#^Call to function compact\\(\\) contains possibly undefined variable \\$comment_author_url\\.$#',
18-
'identifier' => 'variable.undefined',
19-
'count' => 1,
20-
'path' => __DIR__ . '/../../../src/wp-admin/includes/ajax-actions.php',
21-
];
22-
$ignoreErrors[] = [
23-
'message' => '#^Call to function compact\\(\\) contains possibly undefined variable \\$user_id\\.$#',
24-
'identifier' => 'variable.undefined',
25-
'count' => 1,
26-
'path' => __DIR__ . '/../../../src/wp-admin/includes/ajax-actions.php',
27-
];
284
$ignoreErrors[] = [
295
'message' => '#^Variable \\$_POST in isset\\(\\) always exists and is not nullable\\.$#',
306
'identifier' => 'isset.variable',
@@ -97,24 +73,12 @@
9773
'count' => 1,
9874
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-query.php',
9975
];
100-
$ignoreErrors[] = [
101-
'message' => '#^Variable \\$modes_str in empty\\(\\) always exists and is not falsy\\.$#',
102-
'identifier' => 'empty.variable',
103-
'count' => 1,
104-
'path' => __DIR__ . '/../../../src/wp-includes/class-wpdb.php',
105-
];
10676
$ignoreErrors[] = [
10777
'message' => '#^Variable \\$deprecated in empty\\(\\) always exists and is always falsy\\.$#',
10878
'identifier' => 'empty.variable',
10979
'count' => 1,
11080
'path' => __DIR__ . '/../../../src/wp-includes/pluggable.php',
11181
];
112-
$ignoreErrors[] = [
113-
'message' => '#^Variable \\$schema in empty\\(\\) is never defined\\.$#',
114-
'identifier' => 'empty.variable',
115-
'count' => 1,
116-
'path' => __DIR__ . '/../../../src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php',
117-
];
11882
$ignoreErrors[] = [
11983
'message' => '#^Variable \\$the_parent in empty\\(\\) always exists and is not falsy\\.$#',
12084
'identifier' => 'empty.variable',

0 commit comments

Comments
 (0)