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