|
1 | 1 | <?php declare(strict_types = 1); |
2 | 2 |
|
3 | 3 | $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 | | -]; |
46 | 4 | $ignoreErrors[] = [ |
47 | 5 | 'message' => '#^Constructor of class WP_Filesystem_Direct has an unused parameter \\$arg\\.$#', |
48 | 6 | 'identifier' => 'constructor.unusedParameter', |
|
73 | 31 | 'count' => 1, |
74 | 32 | 'path' => __DIR__ . '/../../../src/wp-admin/includes/file.php', |
75 | 33 | ]; |
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 | | -]; |
82 | 34 | $ignoreErrors[] = [ |
83 | 35 | 'message' => '#^Variable \\$callback in empty\\(\\) always exists and is not falsy\\.$#', |
84 | 36 | 'identifier' => 'empty.variable', |
|
103 | 55 | 'count' => 1, |
104 | 56 | 'path' => __DIR__ . '/../../../src/wp-admin/themes.php', |
105 | 57 | ]; |
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 | | -]; |
112 | 58 | $ignoreErrors[] = [ |
113 | 59 | 'message' => '#^Variable \\$addl_path in empty\\(\\) always exists and is always falsy\\.$#', |
114 | 60 | 'identifier' => 'empty.variable', |
|
121 | 67 | 'count' => 2, |
122 | 68 | 'path' => __DIR__ . '/../../../src/wp-includes/capabilities.php', |
123 | 69 | ]; |
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 | | -]; |
148 | 70 | $ignoreErrors[] = [ |
149 | 71 | 'message' => '#^Variable \\$block_type in empty\\(\\) always exists and is not falsy\\.$#', |
150 | 72 | 'identifier' => 'empty.variable', |
|
163 | 85 | 'count' => 1, |
164 | 86 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-comment-query.php', |
165 | 87 | ]; |
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 | | -]; |
184 | 88 | $ignoreErrors[] = [ |
185 | 89 | 'message' => '#^Variable \\$q in isset\\(\\) is never defined\\.$#', |
186 | 90 | 'identifier' => 'isset.variable', |
|
217 | 121 | 'count' => 1, |
218 | 122 | 'path' => __DIR__ . '/../../../src/wp-includes/comment.php', |
219 | 123 | ]; |
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 | | -]; |
238 | 124 | $ignoreErrors[] = [ |
239 | 125 | 'message' => '#^Variable \\$attachment in empty\\(\\) always exists and is not falsy\\.$#', |
240 | 126 | 'identifier' => 'empty.variable', |
241 | 127 | 'count' => 1, |
242 | 128 | 'path' => __DIR__ . '/../../../src/wp-includes/media.php', |
243 | 129 | ]; |
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 | | -]; |
250 | 130 | $ignoreErrors[] = [ |
251 | 131 | 'message' => '#^Variable \\$deprecated in empty\\(\\) always exists and is always falsy\\.$#', |
252 | 132 | 'identifier' => 'empty.variable', |
|
259 | 139 | 'count' => 1, |
260 | 140 | 'path' => __DIR__ . '/../../../src/wp-includes/pluggable.php', |
261 | 141 | ]; |
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 | | -]; |
280 | 142 | $ignoreErrors[] = [ |
281 | 143 | 'message' => '#^Variable \\$schema in empty\\(\\) is never defined\\.$#', |
282 | 144 | 'identifier' => 'empty.variable', |
|
295 | 157 | 'count' => 1, |
296 | 158 | 'path' => __DIR__ . '/../../../src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php', |
297 | 159 | ]; |
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 | | -]; |
304 | 160 | $ignoreErrors[] = [ |
305 | 161 | 'message' => '#^Variable \\$object_terms in empty\\(\\) always exists and is not falsy\\.$#', |
306 | 162 | 'identifier' => 'empty.variable', |
|
0 commit comments