|
1 | 1 | <?php declare(strict_types = 1); |
2 | 2 |
|
3 | | -return []; |
| 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 \\$_POST in isset\\(\\) always exists and is not nullable\\.$#', |
| 30 | + 'identifier' => 'isset.variable', |
| 31 | + 'count' => 1, |
| 32 | + 'path' => __DIR__ . '/../../src/wp-admin/includes/class-custom-image-header.php', |
| 33 | +]; |
| 34 | +$ignoreErrors[] = [ |
| 35 | + 'message' => '#^Constructor of class WP_Filesystem_Direct has an unused parameter \\$arg\\.$#', |
| 36 | + 'identifier' => 'constructor.unusedParameter', |
| 37 | + 'count' => 1, |
| 38 | + 'path' => __DIR__ . '/../../src/wp-admin/includes/class-wp-filesystem-direct.php', |
| 39 | +]; |
| 40 | +$ignoreErrors[] = [ |
| 41 | + 'message' => '#^Variable \\$class in empty\\(\\) always exists and is always falsy\\.$#', |
| 42 | + 'identifier' => 'empty.variable', |
| 43 | + 'count' => 1, |
| 44 | + 'path' => __DIR__ . '/../../src/wp-admin/includes/class-wp-posts-list-table.php', |
| 45 | +]; |
| 46 | +$ignoreErrors[] = [ |
| 47 | + 'message' => '#^Variable \\$_POST in isset\\(\\) always exists and is not nullable\\.$#', |
| 48 | + 'identifier' => 'isset.variable', |
| 49 | + 'count' => 1, |
| 50 | + 'path' => __DIR__ . '/../../src/wp-admin/includes/media.php', |
| 51 | +]; |
| 52 | +$ignoreErrors[] = [ |
| 53 | + 'message' => '#^Variable \\$parent_file in empty\\(\\) always exists and is not falsy\\.$#', |
| 54 | + 'identifier' => 'empty.variable', |
| 55 | + 'count' => 1, |
| 56 | + 'path' => __DIR__ . '/../../src/wp-admin/themes.php', |
| 57 | +]; |
| 58 | +$ignoreErrors[] = [ |
| 59 | + 'message' => '#^Constant HEADER_IMAGE_HEIGHT not found\\.$#', |
| 60 | + 'identifier' => 'constant.notFound', |
| 61 | + 'count' => 1, |
| 62 | + 'path' => __DIR__ . '/../../src/wp-content/themes/twentyeleven/functions.php', |
| 63 | +]; |
| 64 | +$ignoreErrors[] = [ |
| 65 | + 'message' => '#^Constant HEADER_IMAGE_WIDTH not found\\.$#', |
| 66 | + 'identifier' => 'constant.notFound', |
| 67 | + 'count' => 1, |
| 68 | + 'path' => __DIR__ . '/../../src/wp-content/themes/twentyeleven/functions.php', |
| 69 | +]; |
| 70 | +$ignoreErrors[] = [ |
| 71 | + 'message' => '#^Constant HEADER_TEXTCOLOR not found\\.$#', |
| 72 | + 'identifier' => 'constant.notFound', |
| 73 | + 'count' => 2, |
| 74 | + 'path' => __DIR__ . '/../../src/wp-content/themes/twentyeleven/functions.php', |
| 75 | +]; |
| 76 | +$ignoreErrors[] = [ |
| 77 | + 'message' => '#^Constant HEADER_IMAGE_WIDTH not found\\.$#', |
| 78 | + 'identifier' => 'constant.notFound', |
| 79 | + 'count' => 1, |
| 80 | + 'path' => __DIR__ . '/../../src/wp-content/themes/twentyeleven/header.php', |
| 81 | +]; |
| 82 | +$ignoreErrors[] = [ |
| 83 | + 'message' => '#^Constant HEADER_IMAGE_WIDTH not found\\.$#', |
| 84 | + 'identifier' => 'constant.notFound', |
| 85 | + 'count' => 1, |
| 86 | + 'path' => __DIR__ . '/../../src/wp-content/themes/twentyeleven/showcase.php', |
| 87 | +]; |
| 88 | +$ignoreErrors[] = [ |
| 89 | + 'message' => '#^Function twentyseventeen_edit_link invoked with 1 parameter, 0 required\\.$#', |
| 90 | + 'identifier' => 'arguments.count', |
| 91 | + 'count' => 1, |
| 92 | + 'path' => __DIR__ . '/../../src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php', |
| 93 | +]; |
| 94 | +$ignoreErrors[] = [ |
| 95 | + 'message' => '#^Function twentyseventeen_edit_link invoked with 1 parameter, 0 required\\.$#', |
| 96 | + 'identifier' => 'arguments.count', |
| 97 | + 'count' => 1, |
| 98 | + 'path' => __DIR__ . '/../../src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php', |
| 99 | +]; |
| 100 | +$ignoreErrors[] = [ |
| 101 | + 'message' => '#^Function twentyseventeen_edit_link invoked with 1 parameter, 0 required\\.$#', |
| 102 | + 'identifier' => 'arguments.count', |
| 103 | + 'count' => 1, |
| 104 | + 'path' => __DIR__ . '/../../src/wp-content/themes/twentyseventeen/template-parts/page/content-page.php', |
| 105 | +]; |
| 106 | +$ignoreErrors[] = [ |
| 107 | + 'message' => '#^Constant HEADER_IMAGE_HEIGHT not found\\.$#', |
| 108 | + 'identifier' => 'constant.notFound', |
| 109 | + 'count' => 1, |
| 110 | + 'path' => __DIR__ . '/../../src/wp-content/themes/twentyten/functions.php', |
| 111 | +]; |
| 112 | +$ignoreErrors[] = [ |
| 113 | + 'message' => '#^Constant HEADER_IMAGE_WIDTH not found\\.$#', |
| 114 | + 'identifier' => 'constant.notFound', |
| 115 | + 'count' => 1, |
| 116 | + 'path' => __DIR__ . '/../../src/wp-content/themes/twentyten/functions.php', |
| 117 | +]; |
| 118 | +$ignoreErrors[] = [ |
| 119 | + 'message' => '#^Constant HEADER_IMAGE_WIDTH not found\\.$#', |
| 120 | + 'identifier' => 'constant.notFound', |
| 121 | + 'count' => 1, |
| 122 | + 'path' => __DIR__ . '/../../src/wp-content/themes/twentyten/header.php', |
| 123 | +]; |
| 124 | +$ignoreErrors[] = [ |
| 125 | + 'message' => '#^Function wp_cache_switch_to_blog_fallback invoked with 1 parameter, 0 required\\.$#', |
| 126 | + 'identifier' => 'arguments.count', |
| 127 | + 'count' => 1, |
| 128 | + 'path' => __DIR__ . '/../../src/wp-includes/cache-compat.php', |
| 129 | +]; |
| 130 | +$ignoreErrors[] = [ |
| 131 | + 'message' => '#^Variable \\$addl_path in empty\\(\\) always exists and is always falsy\\.$#', |
| 132 | + 'identifier' => 'empty.variable', |
| 133 | + 'count' => 1, |
| 134 | + 'path' => __DIR__ . '/../../src/wp-includes/canonical.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 \\$block_type in empty\\(\\) always exists and is not falsy\\.$#', |
| 144 | + 'identifier' => 'empty.variable', |
| 145 | + 'count' => 1, |
| 146 | + 'path' => __DIR__ . '/../../src/wp-includes/class-wp-block-supports.php', |
| 147 | +]; |
| 148 | +$ignoreErrors[] = [ |
| 149 | + 'message' => '#^Variable \\$loader in isset\\(\\) always exists and is not nullable\\.$#', |
| 150 | + 'identifier' => 'isset.variable', |
| 151 | + 'count' => 1, |
| 152 | + 'path' => __DIR__ . '/../../src/wp-includes/class-wp-oembed.php', |
| 153 | +]; |
| 154 | +$ignoreErrors[] = [ |
| 155 | + 'message' => '#^Variable \\$search in empty\\(\\) always exists and is not falsy\\.$#', |
| 156 | + 'identifier' => 'empty.variable', |
| 157 | + 'count' => 1, |
| 158 | + 'path' => __DIR__ . '/../../src/wp-includes/class-wp-query.php', |
| 159 | +]; |
| 160 | +$ignoreErrors[] = [ |
| 161 | + 'message' => '#^Variable \\$status_type_clauses in empty\\(\\) always exists and is not falsy\\.$#', |
| 162 | + 'identifier' => 'empty.variable', |
| 163 | + 'count' => 1, |
| 164 | + 'path' => __DIR__ . '/../../src/wp-includes/class-wp-query.php', |
| 165 | +]; |
| 166 | +$ignoreErrors[] = [ |
| 167 | + 'message' => '#^Variable \\$deprecated in empty\\(\\) always exists and is always falsy\\.$#', |
| 168 | + 'identifier' => 'empty.variable', |
| 169 | + 'count' => 1, |
| 170 | + 'path' => __DIR__ . '/../../src/wp-includes/pluggable.php', |
| 171 | +]; |
| 172 | +$ignoreErrors[] = [ |
| 173 | + 'message' => '#^Variable \\$schema in empty\\(\\) is never defined\\.$#', |
| 174 | + 'identifier' => 'empty.variable', |
| 175 | + 'count' => 1, |
| 176 | + 'path' => __DIR__ . '/../../src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php', |
| 177 | +]; |
| 178 | +$ignoreErrors[] = [ |
| 179 | + 'message' => '#^Variable \\$the_parent in empty\\(\\) always exists and is not falsy\\.$#', |
| 180 | + 'identifier' => 'empty.variable', |
| 181 | + 'count' => 1, |
| 182 | + 'path' => __DIR__ . '/../../src/wp-includes/taxonomy.php', |
| 183 | +]; |
| 184 | +$ignoreErrors[] = [ |
| 185 | + 'message' => '#^Variable \\$s in isset\\(\\) is never defined\\.$#', |
| 186 | + 'identifier' => 'isset.variable', |
| 187 | + 'count' => 1, |
| 188 | + 'path' => __DIR__ . '/../../src/wp-includes/template.php', |
| 189 | +]; |
| 190 | + |
| 191 | +return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; |
0 commit comments