|
1 | 1 | <?php declare(strict_types = 1); |
2 | 2 |
|
3 | 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 | 4 | $ignoreErrors[] = [ |
29 | 5 | 'message' => '#^Variable \\$_POST in isset\\(\\) always exists and is not nullable\\.$#', |
30 | 6 | 'identifier' => 'isset.variable', |
|
91 | 67 | 'count' => 1, |
92 | 68 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-query.php', |
93 | 69 | ]; |
94 | | -$ignoreErrors[] = [ |
95 | | - 'message' => '#^Variable \\$modes_str in empty\\(\\) always exists and is not falsy\\.$#', |
96 | | - 'identifier' => 'empty.variable', |
97 | | - 'count' => 1, |
98 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wpdb.php', |
99 | | -]; |
100 | 70 | $ignoreErrors[] = [ |
101 | 71 | 'message' => '#^Variable \\$deprecated in empty\\(\\) always exists and is always falsy\\.$#', |
102 | 72 | 'identifier' => 'empty.variable', |
103 | 73 | 'count' => 1, |
104 | 74 | 'path' => __DIR__ . '/../../../src/wp-includes/pluggable.php', |
105 | 75 | ]; |
106 | | -$ignoreErrors[] = [ |
107 | | - 'message' => '#^Variable \\$schema in empty\\(\\) is never defined\\.$#', |
108 | | - 'identifier' => 'empty.variable', |
109 | | - 'count' => 1, |
110 | | - 'path' => __DIR__ . '/../../../src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php', |
111 | | -]; |
112 | 76 | $ignoreErrors[] = [ |
113 | 77 | 'message' => '#^Variable \\$the_parent in empty\\(\\) always exists and is not falsy\\.$#', |
114 | 78 | 'identifier' => 'empty.variable', |
|
121 | 85 | 'count' => 1, |
122 | 86 | 'path' => __DIR__ . '/../../../src/wp-includes/template.php', |
123 | 87 | ]; |
124 | | -$ignoreErrors[] = [ |
125 | | - 'message' => '#^Variable \\$old_user_data in empty\\(\\) always exists and is not falsy\\.$#', |
126 | | - 'identifier' => 'empty.variable', |
127 | | - 'count' => 1, |
128 | | - 'path' => __DIR__ . '/../../../src/wp-includes/user.php', |
129 | | -]; |
130 | 88 |
|
131 | 89 | return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; |
0 commit comments