|
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 | +$ignoreErrors[] = [ |
| 35 | + // identifier: isset.variable |
| 36 | + 'message' => '#^Variable \\$_POST in isset\\(\\) always exists and is not nullable\\.$#', |
| 37 | + 'count' => 1, |
| 38 | + 'path' => __DIR__ . '/../../../src/wp-admin/includes/class-custom-image-header.php', |
| 39 | +]; |
| 40 | +$ignoreErrors[] = [ |
| 41 | + // identifier: isset.variable |
| 42 | + 'message' => '#^Variable \\$oitar in isset\\(\\) always exists and is not nullable\\.$#', |
| 43 | + 'count' => 1, |
| 44 | + 'path' => __DIR__ . '/../../../src/wp-admin/includes/class-custom-image-header.php', |
| 45 | +]; |
28 | 46 | $ignoreErrors[] = [ |
29 | 47 | // identifier: isset.variable |
30 | 48 | 'message' => '#^Variable \\$transient in isset\\(\\) is never defined\\.$#', |
|
67 | 85 | 'count' => 1, |
68 | 86 | 'path' => __DIR__ . '/../../../src/wp-admin/includes/file.php', |
69 | 87 | ]; |
| 88 | +$ignoreErrors[] = [ |
| 89 | + // identifier: isset.variable |
| 90 | + 'message' => '#^Variable \\$_POST in isset\\(\\) always exists and is not nullable\\.$#', |
| 91 | + 'count' => 1, |
| 92 | + 'path' => __DIR__ . '/../../../src/wp-admin/includes/media.php', |
| 93 | +]; |
70 | 94 | $ignoreErrors[] = [ |
71 | 95 | // identifier: empty.variable |
72 | 96 | 'message' => '#^Variable \\$callback in empty\\(\\) always exists and is not falsy\\.$#', |
|
91 | 115 | 'count' => 1, |
92 | 116 | 'path' => __DIR__ . '/../../../src/wp-admin/themes.php', |
93 | 117 | ]; |
| 118 | +$ignoreErrors[] = [ |
| 119 | + // identifier: isset.variable |
| 120 | + 'message' => '#^Variable \\$area in isset\\(\\) always exists and is not nullable\\.$#', |
| 121 | + 'count' => 1, |
| 122 | + 'path' => __DIR__ . '/../../../src/wp-includes/block-template-utils.php', |
| 123 | +]; |
| 124 | +$ignoreErrors[] = [ |
| 125 | + // identifier: isset.variable |
| 126 | + 'message' => '#^Variable \\$lightbox_settings in isset\\(\\) always exists and is not nullable\\.$#', |
| 127 | + 'count' => 1, |
| 128 | + 'path' => __DIR__ . '/../../../src/wp-includes/blocks/image.php', |
| 129 | +]; |
94 | 130 | $ignoreErrors[] = [ |
95 | 131 | // identifier: empty.variable |
96 | 132 | 'message' => '#^Variable \\$inner_blocks in empty\\(\\) always exists and is not falsy\\.$#', |
|
121 | 157 | 'count' => 1, |
122 | 158 | 'path' => __DIR__ . '/../../../src/wp-includes/class-pop3.php', |
123 | 159 | ]; |
| 160 | +$ignoreErrors[] = [ |
| 161 | + // identifier: isset.variable |
| 162 | + 'message' => '#^Variable \\$block in isset\\(\\) always exists and is not nullable\\.$#', |
| 163 | + 'count' => 1, |
| 164 | + 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-list.php', |
| 165 | +]; |
| 166 | +$ignoreErrors[] = [ |
| 167 | + // identifier: isset.variable |
| 168 | + 'message' => '#^Variable \\$namespace in isset\\(\\) always exists and is not nullable\\.$#', |
| 169 | + 'count' => 1, |
| 170 | + 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-parser.php', |
| 171 | +]; |
| 172 | +$ignoreErrors[] = [ |
| 173 | + // identifier: isset.variable |
| 174 | + 'message' => '#^Variable \\$category_name in isset\\(\\) always exists and is not nullable\\.$#', |
| 175 | + 'count' => 1, |
| 176 | + 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-pattern-categories-registry.php', |
| 177 | +]; |
| 178 | +$ignoreErrors[] = [ |
| 179 | + // identifier: isset.variable |
| 180 | + 'message' => '#^Variable \\$pattern_name in isset\\(\\) always exists and is not nullable\\.$#', |
| 181 | + 'count' => 1, |
| 182 | + 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-patterns-registry.php', |
| 183 | +]; |
124 | 184 | $ignoreErrors[] = [ |
125 | 185 | // identifier: empty.variable |
126 | 186 | 'message' => '#^Variable \\$block_type in empty\\(\\) always exists and is not falsy\\.$#', |
|
139 | 199 | 'count' => 1, |
140 | 200 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-comment-query.php', |
141 | 201 | ]; |
| 202 | +$ignoreErrors[] = [ |
| 203 | + // identifier: isset.variable |
| 204 | + 'message' => '#^Variable \\$root in isset\\(\\) always exists and is not nullable\\.$#', |
| 205 | + 'count' => 2, |
| 206 | + 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-customize-setting.php', |
| 207 | +]; |
| 208 | +$ignoreErrors[] = [ |
| 209 | + // identifier: isset.variable |
| 210 | + 'message' => '#^Variable \\$value in isset\\(\\) always exists and is not nullable\\.$#', |
| 211 | + 'count' => 1, |
| 212 | + 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-date-query.php', |
| 213 | +]; |
142 | 214 | $ignoreErrors[] = [ |
143 | 215 | // identifier: constructor.unusedParameter |
144 | 216 | 'message' => '#^Constructor of class WP_Feed_Cache_Transient has an unused parameter \\$location\\.$#', |
|
151 | 223 | 'count' => 1, |
152 | 224 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-feed-cache-transient.php', |
153 | 225 | ]; |
| 226 | +$ignoreErrors[] = [ |
| 227 | + // identifier: isset.variable |
| 228 | + 'message' => '#^Variable \\$loader in isset\\(\\) always exists and is not nullable\\.$#', |
| 229 | + 'count' => 1, |
| 230 | + 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-oembed.php', |
| 231 | +]; |
154 | 232 | $ignoreErrors[] = [ |
155 | 233 | // identifier: isset.variable |
156 | 234 | 'message' => '#^Variable \\$q in isset\\(\\) is never defined\\.$#', |
|
187 | 265 | 'count' => 1, |
188 | 266 | 'path' => __DIR__ . '/../../../src/wp-includes/comment.php', |
189 | 267 | ]; |
| 268 | +$ignoreErrors[] = [ |
| 269 | + // identifier: isset.variable |
| 270 | + 'message' => '#^Variable \\$newrow in isset\\(\\) always exists and is not nullable\\.$#', |
| 271 | + 'count' => 1, |
| 272 | + 'path' => __DIR__ . '/../../../src/wp-includes/general-template.php', |
| 273 | +]; |
| 274 | +$ignoreErrors[] = [ |
| 275 | + // identifier: isset.variable |
| 276 | + 'message' => '#^Variable \\$character_reference in isset\\(\\) always exists and is not nullable\\.$#', |
| 277 | + 'count' => 1, |
| 278 | + 'path' => __DIR__ . '/../../../src/wp-includes/html-api/class-wp-html-decoder.php', |
| 279 | +]; |
| 280 | +$ignoreErrors[] = [ |
| 281 | + // identifier: isset.variable |
| 282 | + 'message' => '#^Variable \\$replacement in isset\\(\\) always exists and is not nullable\\.$#', |
| 283 | + 'count' => 1, |
| 284 | + 'path' => __DIR__ . '/../../../src/wp-includes/html-api/class-wp-html-tag-processor.php', |
| 285 | +]; |
190 | 286 | $ignoreErrors[] = [ |
191 | 287 | // identifier: empty.variable |
192 | 288 | 'message' => '#^Variable \\$attachment in empty\\(\\) always exists and is not falsy\\.$#', |
193 | 289 | 'count' => 1, |
194 | 290 | 'path' => __DIR__ . '/../../../src/wp-includes/media.php', |
195 | 291 | ]; |
| 292 | +$ignoreErrors[] = [ |
| 293 | + // identifier: isset.variable |
| 294 | + 'message' => '#^Variable \\$file_info in isset\\(\\) always exists and is not nullable\\.$#', |
| 295 | + 'count' => 1, |
| 296 | + 'path' => __DIR__ . '/../../../src/wp-includes/media.php', |
| 297 | +]; |
| 298 | +$ignoreErrors[] = [ |
| 299 | + // identifier: isset.variable |
| 300 | + 'message' => '#^Variable \\$user_already_exists in isset\\(\\) always exists and is not nullable\\.$#', |
| 301 | + 'count' => 1, |
| 302 | + 'path' => __DIR__ . '/../../../src/wp-includes/ms-functions.php', |
| 303 | +]; |
196 | 304 | $ignoreErrors[] = [ |
197 | 305 | // identifier: empty.variable |
198 | 306 | 'message' => '#^Variable \\$deprecated in empty\\(\\) always exists and is always falsy\\.$#', |
|
205 | 313 | 'count' => 1, |
206 | 314 | 'path' => __DIR__ . '/../../../src/wp-includes/pluggable.php', |
207 | 315 | ]; |
| 316 | +$ignoreErrors[] = [ |
| 317 | + // identifier: isset.variable |
| 318 | + 'message' => '#^Variable \\$wp_actions in isset\\(\\) always exists and is not nullable\\.$#', |
| 319 | + 'count' => 1, |
| 320 | + 'path' => __DIR__ . '/../../../src/wp-includes/plugin.php', |
| 321 | +]; |
| 322 | +$ignoreErrors[] = [ |
| 323 | + // identifier: isset.variable |
| 324 | + 'message' => '#^Variable \\$wp_current_filter in isset\\(\\) always exists and is not nullable\\.$#', |
| 325 | + 'count' => 1, |
| 326 | + 'path' => __DIR__ . '/../../../src/wp-includes/plugin.php', |
| 327 | +]; |
| 328 | +$ignoreErrors[] = [ |
| 329 | + // identifier: isset.variable |
| 330 | + 'message' => '#^Variable \\$wp_filters in isset\\(\\) always exists and is not nullable\\.$#', |
| 331 | + 'count' => 1, |
| 332 | + 'path' => __DIR__ . '/../../../src/wp-includes/plugin.php', |
| 333 | +]; |
208 | 334 | $ignoreErrors[] = [ |
209 | 335 | // identifier: empty.variable |
210 | 336 | 'message' => '#^Variable \\$last_error_code in empty\\(\\) always exists and is not falsy\\.$#', |
|
229 | 355 | 'count' => 1, |
230 | 356 | 'path' => __DIR__ . '/../../../src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php', |
231 | 357 | ]; |
| 358 | +$ignoreErrors[] = [ |
| 359 | + // identifier: isset.variable |
| 360 | + 'message' => '#^Variable \\$default in isset\\(\\) always exists and is not nullable\\.$#', |
| 361 | + 'count' => 2, |
| 362 | + 'path' => __DIR__ . '/../../../src/wp-includes/taxonomy.php', |
| 363 | +]; |
232 | 364 | $ignoreErrors[] = [ |
233 | 365 | // identifier: empty.variable |
234 | 366 | 'message' => '#^Variable \\$object_terms in empty\\(\\) always exists and is not falsy\\.$#', |
|
277 | 409 | 'count' => 1, |
278 | 410 | 'path' => __DIR__ . '/../../../src/wp-includes/widgets.php', |
279 | 411 | ]; |
| 412 | +$ignoreErrors[] = [ |
| 413 | + // identifier: isset.variable |
| 414 | + 'message' => '#^Variable \\$HTTP_RAW_POST_DATA in isset\\(\\) always exists and is not nullable\\.$#', |
| 415 | + 'count' => 1, |
| 416 | + 'path' => __DIR__ . '/../../../src/xmlrpc.php', |
| 417 | +]; |
280 | 418 |
|
281 | 419 | return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; |
0 commit comments