|
2 | 2 |
|
3 | 3 | $ignoreErrors = []; |
4 | 4 | $ignoreErrors[] = [ |
| 5 | + // identifier: return.missing |
5 | 6 | 'message' => '#^Method WP_Filesystem_SSH2\\:\\:touch\\(\\) should return bool but return statement is missing\\.$#', |
6 | | - 'identifier' => 'return.missing', |
7 | 7 | 'count' => 1, |
8 | 8 | 'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-filesystem-ssh2.php', |
9 | 9 | ]; |
10 | 10 | $ignoreErrors[] = [ |
| 11 | + // identifier: class.notFound |
11 | 12 | 'message' => '#^Instantiated class WP_Press_This_Plugin not found\\.$#', |
12 | | - 'identifier' => 'class.notFound', |
13 | | - 'count' => 1, |
14 | | - 'path' => __DIR__ . '/../../../src/wp-admin/press-this.php', |
15 | | -]; |
16 | | -$ignoreErrors[] = [ |
17 | | - 'message' => '#^Path in include\\(\\) "/press\\-this/class\\-wp\\-press\\-this\\-plugin\\.php" is not a file or it does not exist\\.$#', |
18 | | - 'identifier' => 'include.fileNotFound', |
19 | 13 | 'count' => 1, |
20 | 14 | 'path' => __DIR__ . '/../../../src/wp-admin/press-this.php', |
21 | 15 | ]; |
22 | 16 | $ignoreErrors[] = [ |
| 17 | + // identifier: return.missing |
23 | 18 | 'message' => '#^Method WP_Customize_Background_Image_Setting\\:\\:update\\(\\) should return bool but return statement is missing\\.$#', |
24 | | - 'identifier' => 'return.missing', |
25 | 19 | 'count' => 1, |
26 | 20 | 'path' => __DIR__ . '/../../../src/wp-includes/customize/class-wp-customize-background-image-setting.php', |
27 | 21 | ]; |
28 | 22 | $ignoreErrors[] = [ |
| 23 | + // identifier: return.missing |
29 | 24 | 'message' => '#^Method WP_Customize_Filter_Setting\\:\\:update\\(\\) should return bool but return statement is missing\\.$#', |
30 | | - 'identifier' => 'return.missing', |
31 | 25 | 'count' => 1, |
32 | 26 | 'path' => __DIR__ . '/../../../src/wp-includes/customize/class-wp-customize-filter-setting.php', |
33 | 27 | ]; |
34 | 28 | $ignoreErrors[] = [ |
| 29 | + // identifier: return.missing |
35 | 30 | 'message' => '#^Method WP_Customize_Header_Image_Setting\\:\\:update\\(\\) should return bool but return statement is missing\\.$#', |
36 | | - 'identifier' => 'return.missing', |
37 | | - 'count' => 2, |
| 31 | + 'count' => 1, |
38 | 32 | 'path' => __DIR__ . '/../../../src/wp-includes/customize/class-wp-customize-header-image-setting.php', |
39 | 33 | ]; |
40 | 34 | $ignoreErrors[] = [ |
| 35 | + // identifier: class.notFound |
| 36 | + 'message' => '#^Class GdImage not found\\.$#', |
| 37 | + 'count' => 1, |
| 38 | + 'path' => __DIR__ . '/../../../src/wp-includes/media.php', |
| 39 | +]; |
| 40 | +$ignoreErrors[] = [ |
| 41 | + // identifier: new.static |
41 | 42 | 'message' => '#^Unsafe usage of new static\\(\\)\\.$#', |
42 | | - 'identifier' => 'new.static', |
43 | 43 | 'count' => 1, |
44 | 44 | 'path' => __DIR__ . '/../../../src/wp-includes/style-engine/class-wp-style-engine-css-rules-store.php', |
45 | 45 | ]; |
46 | 46 | $ignoreErrors[] = [ |
| 47 | + // identifier: variable.undefined |
47 | 48 | 'message' => '#^Undefined variable\\: \\$s$#', |
48 | | - 'identifier' => 'variable.undefined', |
49 | 49 | 'count' => 1, |
50 | 50 | 'path' => __DIR__ . '/../../../src/wp-includes/template.php', |
51 | 51 | ]; |
|
0 commit comments