|
2 | 2 |
|
3 | 3 | $ignoreErrors = []; |
4 | 4 | $ignoreErrors[] = [ |
5 | | - // identifier: variable.undefined |
6 | | - 'message' => '#^Call to function compact\\(\\) contains possibly undefined variable \\$comment_author\\.$#', |
7 | | - 'count' => 1, |
8 | | - 'path' => __DIR__ . '/../../../src/wp-admin/includes/ajax-actions.php', |
9 | | -]; |
10 | | -$ignoreErrors[] = [ |
11 | | - // identifier: variable.undefined |
12 | | - 'message' => '#^Call to function compact\\(\\) contains possibly undefined variable \\$comment_author_email\\.$#', |
13 | | - 'count' => 1, |
14 | | - 'path' => __DIR__ . '/../../../src/wp-admin/includes/ajax-actions.php', |
15 | | -]; |
16 | | -$ignoreErrors[] = [ |
17 | | - // identifier: variable.undefined |
18 | | - 'message' => '#^Call to function compact\\(\\) contains possibly undefined variable \\$comment_author_url\\.$#', |
19 | | - 'count' => 1, |
20 | | - 'path' => __DIR__ . '/../../../src/wp-admin/includes/ajax-actions.php', |
21 | | -]; |
22 | | -$ignoreErrors[] = [ |
23 | | - // identifier: variable.undefined |
24 | | - 'message' => '#^Call to function compact\\(\\) contains possibly undefined variable \\$user_id\\.$#', |
25 | | - 'count' => 1, |
26 | | - 'path' => __DIR__ . '/../../../src/wp-admin/includes/ajax-actions.php', |
27 | | -]; |
28 | | -$ignoreErrors[] = [ |
29 | | - // identifier: isset.variable |
30 | | - 'message' => '#^Variable \\$_POST in isset\\(\\) always exists and is not nullable\\.$#', |
31 | | - 'count' => 1, |
32 | | - 'path' => __DIR__ . '/../../../src/wp-admin/includes/class-custom-image-header.php', |
33 | | -]; |
34 | | -$ignoreErrors[] = [ |
35 | | - // identifier: isset.variable |
36 | | - 'message' => '#^Variable \\$oitar 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: constructor.unusedParameter |
42 | 5 | 'message' => '#^Constructor of class WP_Filesystem_Direct has an unused parameter \\$arg\\.$#', |
| 6 | + 'identifier' => 'constructor.unusedParameter', |
43 | 7 | 'count' => 1, |
44 | 8 | 'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-filesystem-direct.php', |
45 | 9 | ]; |
46 | 10 | $ignoreErrors[] = [ |
47 | | - // identifier: empty.variable |
48 | 11 | 'message' => '#^Variable \\$class in empty\\(\\) always exists and is always falsy\\.$#', |
| 12 | + 'identifier' => 'empty.variable', |
49 | 13 | 'count' => 1, |
50 | 14 | 'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-posts-list-table.php', |
51 | 15 | ]; |
52 | 16 | $ignoreErrors[] = [ |
53 | | - // identifier: empty.variable |
54 | 17 | 'message' => '#^Variable \\$connection_type in empty\\(\\) always exists and is not falsy\\.$#', |
| 18 | + 'identifier' => 'empty.variable', |
55 | 19 | 'count' => 1, |
56 | 20 | 'path' => __DIR__ . '/../../../src/wp-admin/includes/file.php', |
57 | 21 | ]; |
58 | 22 | $ignoreErrors[] = [ |
59 | | - // identifier: isset.variable |
60 | | - 'message' => '#^Variable \\$_POST in isset\\(\\) always exists and is not nullable\\.$#', |
61 | | - 'count' => 1, |
62 | | - 'path' => __DIR__ . '/../../../src/wp-admin/includes/media.php', |
63 | | -]; |
64 | | -$ignoreErrors[] = [ |
65 | | - // identifier: empty.variable |
66 | 23 | 'message' => '#^Variable \\$parent_file in empty\\(\\) always exists and is not falsy\\.$#', |
| 24 | + 'identifier' => 'empty.variable', |
67 | 25 | 'count' => 1, |
68 | 26 | 'path' => __DIR__ . '/../../../src/wp-admin/themes.php', |
69 | 27 | ]; |
70 | 28 | $ignoreErrors[] = [ |
71 | | - // identifier: isset.variable |
72 | | - 'message' => '#^Variable \\$area in isset\\(\\) always exists and is not nullable\\.$#', |
73 | | - 'count' => 1, |
74 | | - 'path' => __DIR__ . '/../../../src/wp-includes/block-template-utils.php', |
75 | | -]; |
76 | | -$ignoreErrors[] = [ |
77 | | - // identifier: empty.variable |
78 | 29 | 'message' => '#^Variable \\$addl_path in empty\\(\\) always exists and is always falsy\\.$#', |
| 30 | + 'identifier' => 'empty.variable', |
79 | 31 | 'count' => 1, |
80 | 32 | 'path' => __DIR__ . '/../../../src/wp-includes/canonical.php', |
81 | 33 | ]; |
82 | 34 | $ignoreErrors[] = [ |
83 | | - // identifier: isset.variable |
84 | | - 'message' => '#^Variable \\$namespace in isset\\(\\) always exists and is not nullable\\.$#', |
85 | | - 'count' => 1, |
86 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-parser.php', |
87 | | -]; |
88 | | -$ignoreErrors[] = [ |
89 | | - // identifier: empty.variable |
90 | 35 | 'message' => '#^Variable \\$block_type in empty\\(\\) always exists and is not falsy\\.$#', |
| 36 | + 'identifier' => 'empty.variable', |
91 | 37 | 'count' => 1, |
92 | 38 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-block-supports.php', |
93 | 39 | ]; |
94 | 40 | $ignoreErrors[] = [ |
95 | | - // identifier: constructor.unusedParameter |
96 | | - 'message' => '#^Constructor of class WP_Feed_Cache_Transient has an unused parameter \\$location\\.$#', |
97 | | - 'count' => 1, |
98 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-feed-cache-transient.php', |
99 | | -]; |
100 | | -$ignoreErrors[] = [ |
101 | | - // identifier: constructor.unusedParameter |
102 | | - 'message' => '#^Constructor of class WP_Feed_Cache_Transient has an unused parameter \\$type\\.$#', |
103 | | - 'count' => 1, |
104 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-feed-cache-transient.php', |
105 | | -]; |
106 | | -$ignoreErrors[] = [ |
107 | | - // identifier: isset.variable |
108 | | - 'message' => '#^Variable \\$loader in isset\\(\\) always exists and is not nullable\\.$#', |
109 | | - 'count' => 1, |
110 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-oembed.php', |
111 | | -]; |
112 | | -$ignoreErrors[] = [ |
113 | | - // identifier: isset.variable |
114 | 41 | 'message' => '#^Variable \\$q in isset\\(\\) is never defined\\.$#', |
| 42 | + 'identifier' => 'isset.variable', |
115 | 43 | 'count' => 1, |
116 | 44 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-query.php', |
117 | 45 | ]; |
118 | 46 | $ignoreErrors[] = [ |
119 | | - // identifier: empty.variable |
120 | 47 | 'message' => '#^Variable \\$search in empty\\(\\) always exists and is not falsy\\.$#', |
| 48 | + 'identifier' => 'empty.variable', |
121 | 49 | 'count' => 1, |
122 | 50 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-query.php', |
123 | 51 | ]; |
124 | 52 | $ignoreErrors[] = [ |
125 | | - // identifier: empty.variable |
126 | 53 | 'message' => '#^Variable \\$status_type_clauses in empty\\(\\) always exists and is not falsy\\.$#', |
| 54 | + 'identifier' => 'empty.variable', |
127 | 55 | 'count' => 1, |
128 | 56 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-query.php', |
129 | 57 | ]; |
130 | 58 | $ignoreErrors[] = [ |
131 | | - // identifier: empty.variable |
132 | | - 'message' => '#^Variable \\$modes_str in empty\\(\\) always exists and is not falsy\\.$#', |
133 | | - 'count' => 1, |
134 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wpdb.php', |
135 | | -]; |
136 | | -$ignoreErrors[] = [ |
137 | | - // identifier: isset.variable |
138 | | - 'message' => '#^Variable \\$newrow in isset\\(\\) always exists and is not nullable\\.$#', |
139 | | - 'count' => 1, |
140 | | - 'path' => __DIR__ . '/../../../src/wp-includes/general-template.php', |
141 | | -]; |
142 | | -$ignoreErrors[] = [ |
143 | | - // identifier: isset.variable |
144 | | - 'message' => '#^Variable \\$user_already_exists in isset\\(\\) always exists and is not nullable\\.$#', |
145 | | - 'count' => 1, |
146 | | - 'path' => __DIR__ . '/../../../src/wp-includes/ms-functions.php', |
147 | | -]; |
148 | | -$ignoreErrors[] = [ |
149 | | - // identifier: empty.variable |
150 | 59 | 'message' => '#^Variable \\$deprecated in empty\\(\\) always exists and is always falsy\\.$#', |
| 60 | + 'identifier' => 'empty.variable', |
151 | 61 | 'count' => 1, |
152 | 62 | 'path' => __DIR__ . '/../../../src/wp-includes/pluggable.php', |
153 | 63 | ]; |
154 | 64 | $ignoreErrors[] = [ |
155 | | - // identifier: empty.variable |
156 | | - 'message' => '#^Variable \\$schema in empty\\(\\) is never defined\\.$#', |
| 65 | + 'message' => '#^Variable \\$the_parent in empty\\(\\) always exists and is not falsy\\.$#', |
| 66 | + 'identifier' => 'empty.variable', |
157 | 67 | 'count' => 1, |
158 | | - 'path' => __DIR__ . '/../../../src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php', |
159 | | -]; |
160 | | -$ignoreErrors[] = [ |
161 | | - // identifier: isset.variable |
162 | | - 'message' => '#^Variable \\$default in isset\\(\\) always exists and is not nullable\\.$#', |
163 | | - 'count' => 2, |
164 | 68 | 'path' => __DIR__ . '/../../../src/wp-includes/taxonomy.php', |
165 | 69 | ]; |
166 | 70 | $ignoreErrors[] = [ |
167 | | - // identifier: isset.variable |
168 | 71 | 'message' => '#^Variable \\$s in isset\\(\\) is never defined\\.$#', |
| 72 | + 'identifier' => 'isset.variable', |
169 | 73 | 'count' => 1, |
170 | 74 | 'path' => __DIR__ . '/../../../src/wp-includes/template.php', |
171 | 75 | ]; |
172 | | -$ignoreErrors[] = [ |
173 | | - // identifier: empty.variable |
174 | | - 'message' => '#^Variable \\$old_user_data in empty\\(\\) always exists and is not falsy\\.$#', |
175 | | - 'count' => 1, |
176 | | - 'path' => __DIR__ . '/../../../src/wp-includes/user.php', |
177 | | -]; |
178 | 76 |
|
179 | 77 | return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; |
0 commit comments