Skip to content

Commit 6c9e72b

Browse files
committed
[PHPStan]: regenerate baselines
1 parent f387617 commit 6c9e72b

6 files changed

Lines changed: 638 additions & 530 deletions

File tree

tests/phpstan/baseline/level-1.php

Lines changed: 0 additions & 144 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +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-
];
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-
];
464
$ignoreErrors[] = [
475
'message' => '#^Constructor of class WP_Filesystem_Direct has an unused parameter \\$arg\\.$#',
486
'identifier' => 'constructor.unusedParameter',
@@ -73,12 +31,6 @@
7331
'count' => 1,
7432
'path' => __DIR__ . '/../../../src/wp-admin/includes/file.php',
7533
];
76-
$ignoreErrors[] = [
77-
'message' => '#^Variable \\$_POST in isset\\(\\) always exists and is not nullable\\.$#',
78-
'identifier' => 'isset.variable',
79-
'count' => 1,
80-
'path' => __DIR__ . '/../../../src/wp-admin/includes/media.php',
81-
];
8234
$ignoreErrors[] = [
8335
'message' => '#^Variable \\$callback in empty\\(\\) always exists and is not falsy\\.$#',
8436
'identifier' => 'empty.variable',
@@ -103,12 +55,6 @@
10355
'count' => 1,
10456
'path' => __DIR__ . '/../../../src/wp-admin/themes.php',
10557
];
106-
$ignoreErrors[] = [
107-
'message' => '#^Variable \\$area in isset\\(\\) always exists and is not nullable\\.$#',
108-
'identifier' => 'isset.variable',
109-
'count' => 1,
110-
'path' => __DIR__ . '/../../../src/wp-includes/block-template-utils.php',
111-
];
11258
$ignoreErrors[] = [
11359
'message' => '#^Variable \\$addl_path in empty\\(\\) always exists and is always falsy\\.$#',
11460
'identifier' => 'empty.variable',
@@ -121,30 +67,6 @@
12167
'count' => 2,
12268
'path' => __DIR__ . '/../../../src/wp-includes/capabilities.php',
12369
];
124-
$ignoreErrors[] = [
125-
'message' => '#^Variable \\$block in isset\\(\\) always exists and is not nullable\\.$#',
126-
'identifier' => 'isset.variable',
127-
'count' => 1,
128-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-list.php',
129-
];
130-
$ignoreErrors[] = [
131-
'message' => '#^Variable \\$namespace in isset\\(\\) always exists and is not nullable\\.$#',
132-
'identifier' => 'isset.variable',
133-
'count' => 1,
134-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-parser.php',
135-
];
136-
$ignoreErrors[] = [
137-
'message' => '#^Variable \\$category_name in isset\\(\\) always exists and is not nullable\\.$#',
138-
'identifier' => 'isset.variable',
139-
'count' => 1,
140-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-pattern-categories-registry.php',
141-
];
142-
$ignoreErrors[] = [
143-
'message' => '#^Variable \\$pattern_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-patterns-registry.php',
147-
];
14870
$ignoreErrors[] = [
14971
'message' => '#^Variable \\$block_type in empty\\(\\) always exists and is not falsy\\.$#',
15072
'identifier' => 'empty.variable',
@@ -163,24 +85,6 @@
16385
'count' => 1,
16486
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-comment-query.php',
16587
];
166-
$ignoreErrors[] = [
167-
'message' => '#^Variable \\$root in isset\\(\\) always exists and is not nullable\\.$#',
168-
'identifier' => 'isset.variable',
169-
'count' => 2,
170-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-customize-setting.php',
171-
];
172-
$ignoreErrors[] = [
173-
'message' => '#^Variable \\$value in isset\\(\\) always exists and is not nullable\\.$#',
174-
'identifier' => 'isset.variable',
175-
'count' => 1,
176-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-date-query.php',
177-
];
178-
$ignoreErrors[] = [
179-
'message' => '#^Variable \\$loader in isset\\(\\) always exists and is not nullable\\.$#',
180-
'identifier' => 'isset.variable',
181-
'count' => 1,
182-
'path' => __DIR__ . '/../../../src/wp-includes/class-wp-oembed.php',
183-
];
18488
$ignoreErrors[] = [
18589
'message' => '#^Variable \\$q in isset\\(\\) is never defined\\.$#',
18690
'identifier' => 'isset.variable',
@@ -217,36 +121,12 @@
217121
'count' => 1,
218122
'path' => __DIR__ . '/../../../src/wp-includes/comment.php',
219123
];
220-
$ignoreErrors[] = [
221-
'message' => '#^Variable \\$newrow in isset\\(\\) always exists and is not nullable\\.$#',
222-
'identifier' => 'isset.variable',
223-
'count' => 1,
224-
'path' => __DIR__ . '/../../../src/wp-includes/general-template.php',
225-
];
226-
$ignoreErrors[] = [
227-
'message' => '#^Variable \\$character_reference in isset\\(\\) always exists and is not nullable\\.$#',
228-
'identifier' => 'isset.variable',
229-
'count' => 1,
230-
'path' => __DIR__ . '/../../../src/wp-includes/html-api/class-wp-html-decoder.php',
231-
];
232-
$ignoreErrors[] = [
233-
'message' => '#^Variable \\$replacement 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-tag-processor.php',
237-
];
238124
$ignoreErrors[] = [
239125
'message' => '#^Variable \\$attachment in empty\\(\\) always exists and is not falsy\\.$#',
240126
'identifier' => 'empty.variable',
241127
'count' => 1,
242128
'path' => __DIR__ . '/../../../src/wp-includes/media.php',
243129
];
244-
$ignoreErrors[] = [
245-
'message' => '#^Variable \\$file_info in isset\\(\\) always exists and is not nullable\\.$#',
246-
'identifier' => 'isset.variable',
247-
'count' => 1,
248-
'path' => __DIR__ . '/../../../src/wp-includes/media.php',
249-
];
250130
$ignoreErrors[] = [
251131
'message' => '#^Variable \\$deprecated in empty\\(\\) always exists and is always falsy\\.$#',
252132
'identifier' => 'empty.variable',
@@ -259,24 +139,6 @@
259139
'count' => 1,
260140
'path' => __DIR__ . '/../../../src/wp-includes/pluggable.php',
261141
];
262-
$ignoreErrors[] = [
263-
'message' => '#^Variable \\$wp_actions in isset\\(\\) always exists and is not nullable\\.$#',
264-
'identifier' => 'isset.variable',
265-
'count' => 1,
266-
'path' => __DIR__ . '/../../../src/wp-includes/plugin.php',
267-
];
268-
$ignoreErrors[] = [
269-
'message' => '#^Variable \\$wp_current_filter 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_filters in isset\\(\\) always exists and is not nullable\\.$#',
276-
'identifier' => 'isset.variable',
277-
'count' => 1,
278-
'path' => __DIR__ . '/../../../src/wp-includes/plugin.php',
279-
];
280142
$ignoreErrors[] = [
281143
'message' => '#^Variable \\$schema in empty\\(\\) is never defined\\.$#',
282144
'identifier' => 'empty.variable',
@@ -295,12 +157,6 @@
295157
'count' => 1,
296158
'path' => __DIR__ . '/../../../src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php',
297159
];
298-
$ignoreErrors[] = [
299-
'message' => '#^Variable \\$default in isset\\(\\) always exists and is not nullable\\.$#',
300-
'identifier' => 'isset.variable',
301-
'count' => 2,
302-
'path' => __DIR__ . '/../../../src/wp-includes/taxonomy.php',
303-
];
304160
$ignoreErrors[] = [
305161
'message' => '#^Variable \\$object_terms in empty\\(\\) always exists and is not falsy\\.$#',
306162
'identifier' => 'empty.variable',

0 commit comments

Comments
 (0)