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