Skip to content

Commit d870b1b

Browse files
committed
[PHPStan]: regenerate baselines after rebase
1 parent 8aa0fa3 commit d870b1b

7 files changed

Lines changed: 294 additions & 492 deletions

File tree

tests/phpstan/baseline/level-0.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@
5555
'count' => 2,
5656
'path' => __DIR__ . '/../../../src/wp-includes/customize/class-wp-customize-header-image-setting.php',
5757
];
58-
$ignoreErrors[] = [
59-
'message' => '#^Function _wp_filter_build_unique_id\\(\\) should return string but return statement is missing\\.$#',
60-
'identifier' => 'return.missing',
61-
'count' => 1,
62-
'path' => __DIR__ . '/../../../src/wp-includes/plugin.php',
63-
];
6458
$ignoreErrors[] = [
6559
'message' => '#^Unsafe usage of new static\\(\\)\\.$#',
6660
'identifier' => 'new.static',

tests/phpstan/baseline/level-1.php

Lines changed: 0 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,6 @@
2525
'count' => 1,
2626
'path' => __DIR__ . '/../../../src/wp-admin/includes/ajax-actions.php',
2727
];
28-
$ignoreErrors[] = [
29-
'message' => '#^Variable \\$results in isset\\(\\) always exists and is not nullable\\.$#',
30-
'identifier' => 'isset.variable',
31-
'count' => 1,
32-
'path' => __DIR__ . '/../../../src/wp-admin/includes/ajax-actions.php',
33-
];
34-
$ignoreErrors[] = [
35-
'message' => '#^Variable \\$_POST in isset\\(\\) always exists and is not nullable\\.$#',
36-
'identifier' => 'isset.variable',
37-
'count' => 1,
38-
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-custom-image-header.php',
39-
];
40-
$ignoreErrors[] = [
41-
'message' => '#^Variable \\$oitar in isset\\(\\) always exists and is not nullable\\.$#',
42-
'identifier' => 'isset.variable',
43-
'count' => 1,
44-
'path' => __DIR__ . '/../../../src/wp-admin/includes/class-custom-image-header.php',
45-
];
4628
$ignoreErrors[] = [
4729
'message' => '#^Variable \\$transient in isset\\(\\) is never defined\\.$#',
4830
'identifier' => 'isset.variable',
@@ -79,12 +61,6 @@
7961
'count' => 1,
8062
'path' => __DIR__ . '/../../../src/wp-admin/includes/file.php',
8163
];
82-
$ignoreErrors[] = [
83-
'message' => '#^Variable \\$_POST in isset\\(\\) always exists and is not nullable\\.$#',
84-
'identifier' => 'isset.variable',
85-
'count' => 1,
86-
'path' => __DIR__ . '/../../../src/wp-admin/includes/media.php',
87-
];
8864
$ignoreErrors[] = [
8965
'message' => '#^Variable \\$callback in empty\\(\\) always exists and is not falsy\\.$#',
9066
'identifier' => 'empty.variable',
@@ -109,12 +85,6 @@
10985
'count' => 1,
11086
'path' => __DIR__ . '/../../../src/wp-admin/themes.php',
11187
];
112-
$ignoreErrors[] = [
113-
'message' => '#^Variable \\$area in isset\\(\\) always exists and is not nullable\\.$#',
114-
'identifier' => 'isset.variable',
115-
'count' => 1,
116-
'path' => __DIR__ . '/../../../src/wp-includes/block-template-utils.php',
117-
];
11888
$ignoreErrors[] = [
11989
'message' => '#^Variable \\$addl_path in empty\\(\\) always exists and is always falsy\\.$#',
12090
'identifier' => 'empty.variable',
@@ -127,30 +97,6 @@
12797
'count' => 2,
12898
'path' => __DIR__ . '/../../../src/wp-includes/capabilities.php',
12999
];
130-
$ignoreErrors[] = [
131-
'message' => '#^Variable \\$block in isset\\(\\) always exists and is not nullable\\.$#',
132-
'identifier' => 'isset.variable',
133-
'count' => 1,
134-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-list.php',
135-
];
136-
$ignoreErrors[] = [
137-
'message' => '#^Variable \\$namespace in isset\\(\\) always exists and is not nullable\\.$#',
138-
'identifier' => 'isset.variable',
139-
'count' => 1,
140-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-parser.php',
141-
];
142-
$ignoreErrors[] = [
143-
'message' => '#^Variable \\$category_name in isset\\(\\) always exists and is not nullable\\.$#',
144-
'identifier' => 'isset.variable',
145-
'count' => 1,
146-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-pattern-categories-registry.php',
147-
];
148-
$ignoreErrors[] = [
149-
'message' => '#^Variable \\$pattern_name in isset\\(\\) always exists and is not nullable\\.$#',
150-
'identifier' => 'isset.variable',
151-
'count' => 1,
152-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-patterns-registry.php',
153-
];
154100
$ignoreErrors[] = [
155101
'message' => '#^Variable \\$block_type in empty\\(\\) always exists and is not falsy\\.$#',
156102
'identifier' => 'empty.variable',
@@ -169,24 +115,6 @@
169115
'count' => 1,
170116
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-comment-query.php',
171117
];
172-
$ignoreErrors[] = [
173-
'message' => '#^Variable \\$root in isset\\(\\) always exists and is not nullable\\.$#',
174-
'identifier' => 'isset.variable',
175-
'count' => 2,
176-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-customize-setting.php',
177-
];
178-
$ignoreErrors[] = [
179-
'message' => '#^Variable \\$value in isset\\(\\) always exists and is not nullable\\.$#',
180-
'identifier' => 'isset.variable',
181-
'count' => 1,
182-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-date-query.php',
183-
];
184-
$ignoreErrors[] = [
185-
'message' => '#^Variable \\$loader in isset\\(\\) always exists and is not nullable\\.$#',
186-
'identifier' => 'isset.variable',
187-
'count' => 1,
188-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-oembed.php',
189-
];
190118
$ignoreErrors[] = [
191119
'message' => '#^Variable \\$q in isset\\(\\) is never defined\\.$#',
192120
'identifier' => 'isset.variable',
@@ -223,36 +151,12 @@
223151
'count' => 1,
224152
'path' => __DIR__ . '/../../../src/wp-includes/comment.php',
225153
];
226-
$ignoreErrors[] = [
227-
'message' => '#^Variable \\$newrow in isset\\(\\) always exists and is not nullable\\.$#',
228-
'identifier' => 'isset.variable',
229-
'count' => 1,
230-
'path' => __DIR__ . '/../../../src/wp-includes/general-template.php',
231-
];
232-
$ignoreErrors[] = [
233-
'message' => '#^Variable \\$character_reference in isset\\(\\) always exists and is not nullable\\.$#',
234-
'identifier' => 'isset.variable',
235-
'count' => 1,
236-
'path' => __DIR__ . '/../../../src/wp-includes/html-api/class-wp-html-decoder.php',
237-
];
238-
$ignoreErrors[] = [
239-
'message' => '#^Variable \\$replacement in isset\\(\\) always exists and is not nullable\\.$#',
240-
'identifier' => 'isset.variable',
241-
'count' => 1,
242-
'path' => __DIR__ . '/../../../src/wp-includes/html-api/class-wp-html-tag-processor.php',
243-
];
244154
$ignoreErrors[] = [
245155
'message' => '#^Variable \\$attachment in empty\\(\\) always exists and is not falsy\\.$#',
246156
'identifier' => 'empty.variable',
247157
'count' => 1,
248158
'path' => __DIR__ . '/../../../src/wp-includes/media.php',
249159
];
250-
$ignoreErrors[] = [
251-
'message' => '#^Variable \\$file_info in isset\\(\\) always exists and is not nullable\\.$#',
252-
'identifier' => 'isset.variable',
253-
'count' => 1,
254-
'path' => __DIR__ . '/../../../src/wp-includes/media.php',
255-
];
256160
$ignoreErrors[] = [
257161
'message' => '#^Variable \\$deprecated in empty\\(\\) always exists and is always falsy\\.$#',
258162
'identifier' => 'empty.variable',
@@ -265,24 +169,6 @@
265169
'count' => 1,
266170
'path' => __DIR__ . '/../../../src/wp-includes/pluggable.php',
267171
];
268-
$ignoreErrors[] = [
269-
'message' => '#^Variable \\$wp_actions in isset\\(\\) always exists and is not nullable\\.$#',
270-
'identifier' => 'isset.variable',
271-
'count' => 1,
272-
'path' => __DIR__ . '/../../../src/wp-includes/plugin.php',
273-
];
274-
$ignoreErrors[] = [
275-
'message' => '#^Variable \\$wp_current_filter in isset\\(\\) always exists and is not nullable\\.$#',
276-
'identifier' => 'isset.variable',
277-
'count' => 1,
278-
'path' => __DIR__ . '/../../../src/wp-includes/plugin.php',
279-
];
280-
$ignoreErrors[] = [
281-
'message' => '#^Variable \\$wp_filters in isset\\(\\) always exists and is not nullable\\.$#',
282-
'identifier' => 'isset.variable',
283-
'count' => 1,
284-
'path' => __DIR__ . '/../../../src/wp-includes/plugin.php',
285-
];
286172
$ignoreErrors[] = [
287173
'message' => '#^Variable \\$schema in empty\\(\\) is never defined\\.$#',
288174
'identifier' => 'empty.variable',
@@ -301,12 +187,6 @@
301187
'count' => 1,
302188
'path' => __DIR__ . '/../../../src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php',
303189
];
304-
$ignoreErrors[] = [
305-
'message' => '#^Variable \\$default in isset\\(\\) always exists and is not nullable\\.$#',
306-
'identifier' => 'isset.variable',
307-
'count' => 2,
308-
'path' => __DIR__ . '/../../../src/wp-includes/taxonomy.php',
309-
];
310190
$ignoreErrors[] = [
311191
'message' => '#^Variable \\$object_terms in empty\\(\\) always exists and is not falsy\\.$#',
312192
'identifier' => 'empty.variable',

0 commit comments

Comments
 (0)