|
25 | 25 | 'count' => 1, |
26 | 26 | 'path' => __DIR__ . '/../../../src/wp-admin/includes/ajax-actions.php', |
27 | 27 | ]; |
28 | | -$ignoreErrors[] = [ |
29 | | - // identifier: isset.variable |
30 | | - 'message' => '#^Variable \\$results in isset\\(\\) always exists and is not nullable\\.$#', |
31 | | - 'count' => 1, |
32 | | - 'path' => __DIR__ . '/../../../src/wp-admin/includes/ajax-actions.php', |
33 | | -]; |
34 | 28 | $ignoreErrors[] = [ |
35 | 29 | // identifier: isset.variable |
36 | 30 | 'message' => '#^Variable \\$_POST in isset\\(\\) always exists and is not nullable\\.$#', |
|
49 | 43 | 'count' => 1, |
50 | 44 | 'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-filesystem-direct.php', |
51 | 45 | ]; |
52 | | -$ignoreErrors[] = [ |
53 | | - // identifier: isset.variable |
54 | | - 'message' => '#^Variable \\$children_pages in isset\\(\\) is never defined\\.$#', |
55 | | - 'count' => 1, |
56 | | - 'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-posts-list-table.php', |
57 | | -]; |
58 | 46 | $ignoreErrors[] = [ |
59 | 47 | // identifier: empty.variable |
60 | 48 | 'message' => '#^Variable \\$class in empty\\(\\) always exists and is always falsy\\.$#', |
61 | 49 | 'count' => 1, |
62 | 50 | 'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-posts-list-table.php', |
63 | 51 | ]; |
64 | | -$ignoreErrors[] = [ |
65 | | - // identifier: empty.variable |
66 | | - 'message' => '#^Variable \\$theme in empty\\(\\) always exists and is not falsy\\.$#', |
67 | | - 'count' => 2, |
68 | | - 'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-theme-install-list-table.php', |
69 | | -]; |
70 | 52 | $ignoreErrors[] = [ |
71 | 53 | // identifier: empty.variable |
72 | 54 | 'message' => '#^Variable \\$connection_type in empty\\(\\) always exists and is not falsy\\.$#', |
|
79 | 61 | 'count' => 1, |
80 | 62 | 'path' => __DIR__ . '/../../../src/wp-admin/includes/media.php', |
81 | 63 | ]; |
82 | | -$ignoreErrors[] = [ |
83 | | - // identifier: empty.variable |
84 | | - 'message' => '#^Variable \\$callback in empty\\(\\) always exists and is not falsy\\.$#', |
85 | | - 'count' => 2, |
86 | | - 'path' => __DIR__ . '/../../../src/wp-admin/includes/plugin.php', |
87 | | -]; |
88 | | -$ignoreErrors[] = [ |
89 | | - // identifier: empty.variable |
90 | | - 'message' => '#^Variable \\$load in empty\\(\\) always exists and is not falsy\\.$#', |
91 | | - 'count' => 1, |
92 | | - 'path' => __DIR__ . '/../../../src/wp-admin/load-scripts.php', |
93 | | -]; |
94 | | -$ignoreErrors[] = [ |
95 | | - // identifier: empty.variable |
96 | | - 'message' => '#^Variable \\$load in empty\\(\\) always exists and is not falsy\\.$#', |
97 | | - 'count' => 1, |
98 | | - 'path' => __DIR__ . '/../../../src/wp-admin/load-styles.php', |
99 | | -]; |
100 | 64 | $ignoreErrors[] = [ |
101 | 65 | // identifier: empty.variable |
102 | 66 | 'message' => '#^Variable \\$parent_file in empty\\(\\) always exists and is not falsy\\.$#', |
|
121 | 85 | 'count' => 2, |
122 | 86 | 'path' => __DIR__ . '/../../../src/wp-includes/capabilities.php', |
123 | 87 | ]; |
124 | | -$ignoreErrors[] = [ |
125 | | - // identifier: isset.variable |
126 | | - 'message' => '#^Variable \\$block in isset\\(\\) always exists and is not nullable\\.$#', |
127 | | - 'count' => 1, |
128 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-list.php', |
129 | | -]; |
130 | 88 | $ignoreErrors[] = [ |
131 | 89 | // identifier: isset.variable |
132 | 90 | 'message' => '#^Variable \\$namespace in isset\\(\\) always exists and is not nullable\\.$#', |
133 | 91 | 'count' => 1, |
134 | 92 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-parser.php', |
135 | 93 | ]; |
136 | | -$ignoreErrors[] = [ |
137 | | - // identifier: isset.variable |
138 | | - 'message' => '#^Variable \\$category_name in isset\\(\\) always exists and is not nullable\\.$#', |
139 | | - 'count' => 1, |
140 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-pattern-categories-registry.php', |
141 | | -]; |
142 | | -$ignoreErrors[] = [ |
143 | | - // identifier: isset.variable |
144 | | - 'message' => '#^Variable \\$pattern_name in isset\\(\\) always exists and is not nullable\\.$#', |
145 | | - 'count' => 1, |
146 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-patterns-registry.php', |
147 | | -]; |
148 | 94 | $ignoreErrors[] = [ |
149 | 95 | // identifier: empty.variable |
150 | 96 | 'message' => '#^Variable \\$block_type in empty\\(\\) always exists and is not falsy\\.$#', |
151 | 97 | 'count' => 1, |
152 | 98 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-supports.php', |
153 | 99 | ]; |
154 | | -$ignoreErrors[] = [ |
155 | | - // identifier: empty.variable |
156 | | - 'message' => '#^Variable \\$q_values in empty\\(\\) always exists and is not falsy\\.$#', |
157 | | - 'count' => 1, |
158 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-comment-query.php', |
159 | | -]; |
160 | 100 | $ignoreErrors[] = [ |
161 | 101 | // identifier: empty.variable |
162 | 102 | 'message' => '#^Variable \\$status_clauses in empty\\(\\) always exists and is not falsy\\.$#', |
163 | 103 | 'count' => 1, |
164 | 104 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-comment-query.php', |
165 | 105 | ]; |
166 | | -$ignoreErrors[] = [ |
167 | | - // identifier: isset.variable |
168 | | - 'message' => '#^Variable \\$root in isset\\(\\) always exists and is not nullable\\.$#', |
169 | | - 'count' => 2, |
170 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-customize-setting.php', |
171 | | -]; |
172 | | -$ignoreErrors[] = [ |
173 | | - // identifier: isset.variable |
174 | | - 'message' => '#^Variable \\$value in isset\\(\\) always exists and is not nullable\\.$#', |
175 | | - 'count' => 1, |
176 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-date-query.php', |
177 | | -]; |
178 | 106 | $ignoreErrors[] = [ |
179 | 107 | // identifier: constructor.unusedParameter |
180 | 108 | 'message' => '#^Constructor of class WP_Feed_Cache_Transient has an unused parameter \\$location\\.$#', |
|
211 | 139 | 'count' => 1, |
212 | 140 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-query.php', |
213 | 141 | ]; |
214 | | -$ignoreErrors[] = [ |
215 | | - // identifier: empty.variable |
216 | | - 'message' => '#^Variable \\$inner in empty\\(\\) always exists and is always falsy\\.$#', |
217 | | - 'count' => 1, |
218 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-theme-json.php', |
219 | | -]; |
220 | 142 | $ignoreErrors[] = [ |
221 | 143 | // identifier: empty.variable |
222 | 144 | 'message' => '#^Variable \\$modes_str in empty\\(\\) always exists and is not falsy\\.$#', |
223 | 145 | 'count' => 1, |
224 | 146 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wpdb.php', |
225 | 147 | ]; |
226 | | -$ignoreErrors[] = [ |
227 | | - // identifier: empty.variable |
228 | | - 'message' => '#^Variable \\$posts in empty\\(\\) always exists and is not falsy\\.$#', |
229 | | - 'count' => 1, |
230 | | - 'path' => __DIR__ . '/../../../src/wp-includes/comment.php', |
231 | | -]; |
232 | 148 | $ignoreErrors[] = [ |
233 | 149 | // identifier: isset.variable |
234 | 150 | 'message' => '#^Variable \\$newrow in isset\\(\\) always exists and is not nullable\\.$#', |
235 | 151 | 'count' => 1, |
236 | 152 | 'path' => __DIR__ . '/../../../src/wp-includes/general-template.php', |
237 | 153 | ]; |
238 | | -$ignoreErrors[] = [ |
239 | | - // identifier: isset.variable |
240 | | - 'message' => '#^Variable \\$character_reference in isset\\(\\) always exists and is not nullable\\.$#', |
241 | | - 'count' => 1, |
242 | | - 'path' => __DIR__ . '/../../../src/wp-includes/html-api/class-wp-html-decoder.php', |
243 | | -]; |
244 | | -$ignoreErrors[] = [ |
245 | | - // identifier: isset.variable |
246 | | - 'message' => '#^Variable \\$replacement in isset\\(\\) always exists and is not nullable\\.$#', |
247 | | - 'count' => 1, |
248 | | - 'path' => __DIR__ . '/../../../src/wp-includes/html-api/class-wp-html-tag-processor.php', |
249 | | -]; |
250 | | -$ignoreErrors[] = [ |
251 | | - // identifier: empty.variable |
252 | | - 'message' => '#^Variable \\$attachment in empty\\(\\) always exists and is not falsy\\.$#', |
253 | | - 'count' => 1, |
254 | | - 'path' => __DIR__ . '/../../../src/wp-includes/media.php', |
255 | | -]; |
256 | | -$ignoreErrors[] = [ |
257 | | - // identifier: isset.variable |
258 | | - 'message' => '#^Variable \\$file_info in isset\\(\\) always exists and is not nullable\\.$#', |
259 | | - 'count' => 1, |
260 | | - 'path' => __DIR__ . '/../../../src/wp-includes/media.php', |
261 | | -]; |
262 | 154 | $ignoreErrors[] = [ |
263 | 155 | // identifier: isset.variable |
264 | 156 | 'message' => '#^Variable \\$user_already_exists in isset\\(\\) always exists and is not nullable\\.$#', |
|
271 | 163 | 'count' => 1, |
272 | 164 | 'path' => __DIR__ . '/../../../src/wp-includes/pluggable.php', |
273 | 165 | ]; |
274 | | -$ignoreErrors[] = [ |
275 | | - // identifier: empty.variable |
276 | | - 'message' => '#^Variable \\$tempheaders in empty\\(\\) always exists and is not falsy\\.$#', |
277 | | - 'count' => 1, |
278 | | - 'path' => __DIR__ . '/../../../src/wp-includes/pluggable.php', |
279 | | -]; |
280 | | -$ignoreErrors[] = [ |
281 | | - // identifier: isset.variable |
282 | | - 'message' => '#^Variable \\$wp_actions in isset\\(\\) always exists and is not nullable\\.$#', |
283 | | - 'count' => 1, |
284 | | - 'path' => __DIR__ . '/../../../src/wp-includes/plugin.php', |
285 | | -]; |
286 | | -$ignoreErrors[] = [ |
287 | | - // identifier: isset.variable |
288 | | - 'message' => '#^Variable \\$wp_current_filter in isset\\(\\) always exists and is not nullable\\.$#', |
289 | | - 'count' => 1, |
290 | | - 'path' => __DIR__ . '/../../../src/wp-includes/plugin.php', |
291 | | -]; |
292 | | -$ignoreErrors[] = [ |
293 | | - // identifier: isset.variable |
294 | | - 'message' => '#^Variable \\$wp_filters in isset\\(\\) always exists and is not nullable\\.$#', |
295 | | - 'count' => 1, |
296 | | - 'path' => __DIR__ . '/../../../src/wp-includes/plugin.php', |
297 | | -]; |
298 | 166 | $ignoreErrors[] = [ |
299 | 167 | // identifier: empty.variable |
300 | 168 | 'message' => '#^Variable \\$schema in empty\\(\\) is never defined\\.$#', |
301 | 169 | 'count' => 1, |
302 | 170 | 'path' => __DIR__ . '/../../../src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php', |
303 | 171 | ]; |
304 | | -$ignoreErrors[] = [ |
305 | | - // identifier: empty.variable |
306 | | - 'message' => '#^Variable \\$prepared_term in empty\\(\\) always exists and is not falsy\\.$#', |
307 | | - 'count' => 1, |
308 | | - 'path' => __DIR__ . '/../../../src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php', |
309 | | -]; |
310 | | -$ignoreErrors[] = [ |
311 | | - // identifier: empty.variable |
312 | | - 'message' => '#^Variable \\$prepared_term in empty\\(\\) always exists and is not falsy\\.$#', |
313 | | - 'count' => 1, |
314 | | - 'path' => __DIR__ . '/../../../src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php', |
315 | | -]; |
316 | 172 | $ignoreErrors[] = [ |
317 | 173 | // identifier: isset.variable |
318 | 174 | 'message' => '#^Variable \\$default in isset\\(\\) always exists and is not nullable\\.$#', |
|
325 | 181 | 'count' => 1, |
326 | 182 | 'path' => __DIR__ . '/../../../src/wp-includes/taxonomy.php', |
327 | 183 | ]; |
328 | | -$ignoreErrors[] = [ |
329 | | - // identifier: empty.variable |
330 | | - 'message' => '#^Variable \\$the_parent in empty\\(\\) always exists and is not falsy\\.$#', |
331 | | - 'count' => 1, |
332 | | - 'path' => __DIR__ . '/../../../src/wp-includes/taxonomy.php', |
333 | | -]; |
334 | 184 | $ignoreErrors[] = [ |
335 | 185 | // identifier: isset.variable |
336 | 186 | 'message' => '#^Variable \\$s in isset\\(\\) is never defined\\.$#', |
|
343 | 193 | 'count' => 1, |
344 | 194 | 'path' => __DIR__ . '/../../../src/wp-includes/user.php', |
345 | 195 | ]; |
346 | | -$ignoreErrors[] = [ |
347 | | - // identifier: empty.variable |
348 | | - 'message' => '#^Variable \\$control_callback in empty\\(\\) always exists and is not falsy\\.$#', |
349 | | - 'count' => 1, |
350 | | - 'path' => __DIR__ . '/../../../src/wp-includes/widgets.php', |
351 | | -]; |
352 | | -$ignoreErrors[] = [ |
353 | | - // identifier: empty.variable |
354 | | - 'message' => '#^Variable \\$form_callback in empty\\(\\) always exists and is not falsy\\.$#', |
355 | | - 'count' => 1, |
356 | | - 'path' => __DIR__ . '/../../../src/wp-includes/widgets.php', |
357 | | -]; |
358 | | -$ignoreErrors[] = [ |
359 | | - // identifier: empty.variable |
360 | | - 'message' => '#^Variable \\$output_callback in empty\\(\\) always exists and is not falsy\\.$#', |
361 | | - 'count' => 1, |
362 | | - 'path' => __DIR__ . '/../../../src/wp-includes/widgets.php', |
363 | | -]; |
364 | | -$ignoreErrors[] = [ |
365 | | - // identifier: empty.variable |
366 | | - 'message' => '#^Variable \\$update_callback in empty\\(\\) always exists and is not falsy\\.$#', |
367 | | - 'count' => 1, |
368 | | - 'path' => __DIR__ . '/../../../src/wp-includes/widgets.php', |
369 | | -]; |
370 | 196 |
|
371 | 197 | return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; |
0 commit comments