|
55 | 55 | 'count' => 1, |
56 | 56 | 'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-themes-list-table.php', |
57 | 57 | ]; |
58 | | -$ignoreErrors[] = [ |
59 | | - 'message' => '#^Function WP_Filesystem\\(\\) should return bool\\|null but empty return statement found\\.$#', |
60 | | - 'identifier' => 'return.empty', |
61 | | - 'count' => 1, |
62 | | - 'path' => __DIR__ . '/../../../src/wp-admin/includes/file.php', |
63 | | -]; |
64 | 58 | $ignoreErrors[] = [ |
65 | 59 | 'message' => '#^Function wp_get_nav_menu_to_edit\\(\\) should return string\\|WP_Error\\|null but returns WP_Term\\|false\\.$#', |
66 | 60 | 'identifier' => 'return.type', |
67 | 61 | 'count' => 1, |
68 | 62 | 'path' => __DIR__ . '/../../../src/wp-admin/includes/nav-menu.php', |
69 | 63 | ]; |
70 | | -$ignoreErrors[] = [ |
71 | | - 'message' => '#^Function delete_plugins\\(\\) should return bool\\|WP_Error\\|null but empty return statement found\\.$#', |
72 | | - 'identifier' => 'return.empty', |
73 | | - 'count' => 2, |
74 | | - 'path' => __DIR__ . '/../../../src/wp-admin/includes/plugin.php', |
75 | | -]; |
76 | 64 | $ignoreErrors[] = [ |
77 | 65 | 'message' => '#^Function convert_to_screen\\(\\) should return WP_Screen but returns object\\{id\\: string, base\\: string\\}&stdClass\\.$#', |
78 | 66 | 'identifier' => 'return.type', |
79 | 67 | 'count' => 1, |
80 | 68 | 'path' => __DIR__ . '/../../../src/wp-admin/includes/template.php', |
81 | 69 | ]; |
82 | | -$ignoreErrors[] = [ |
83 | | - 'message' => '#^Function delete_theme\\(\\) should return bool\\|WP_Error\\|null but empty return statement found\\.$#', |
84 | | - 'identifier' => 'return.empty', |
85 | | - 'count' => 2, |
86 | | - 'path' => __DIR__ . '/../../../src/wp-admin/includes/theme.php', |
87 | | -]; |
88 | 70 | $ignoreErrors[] = [ |
89 | 71 | 'message' => '#^Cannot access offset \'new_version\' on bool\\.$#', |
90 | 72 | 'identifier' => 'offsetAccess.nonOffsetAccessible', |
|
115 | 97 | 'count' => 1, |
116 | 98 | 'path' => __DIR__ . '/../../../src/wp-includes/blocks.php', |
117 | 99 | ]; |
118 | | -$ignoreErrors[] = [ |
119 | | - 'message' => '#^Function get_category_by_path\\(\\) should return array\\|WP_Error\\|WP_Term\\|null but empty return statement found\\.$#', |
120 | | - 'identifier' => 'return.empty', |
121 | | - 'count' => 1, |
122 | | - 'path' => __DIR__ . '/../../../src/wp-includes/category.php', |
123 | | -]; |
124 | 100 | $ignoreErrors[] = [ |
125 | 101 | 'message' => '#^Parameter \\#3 \\$args \\(stdClass\\) of method Walker_Nav_Menu\\:\\:end_lvl\\(\\) should be compatible with parameter \\$args \\(array\\) of method Walker\\:\\:end_lvl\\(\\)$#', |
126 | 102 | 'identifier' => 'method.childParameterType', |
|
271 | 247 | 'count' => 1, |
272 | 248 | 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-post-type.php', |
273 | 249 | ]; |
274 | | -$ignoreErrors[] = [ |
275 | | - 'message' => '#^Method WP_Query\\:\\:setup_postdata\\(\\) should return true but empty return statement found\\.$#', |
276 | | - 'identifier' => 'return.empty', |
277 | | - 'count' => 2, |
278 | | - 'path' => __DIR__ . '/../../../src/wp-includes/class-wp-query.php', |
279 | | -]; |
280 | 250 | $ignoreErrors[] = [ |
281 | 251 | 'message' => '#^Property WP_Query\\:\\:\\$date_query \\(WP_Date_Query\\) does not accept default value of type false\\.$#', |
282 | 252 | 'identifier' => 'property.defaultValue', |
|
637 | 607 | 'count' => 1, |
638 | 608 | 'path' => __DIR__ . '/../../../src/wp-includes/taxonomy.php', |
639 | 609 | ]; |
640 | | -$ignoreErrors[] = [ |
641 | | - 'message' => '#^Function _remove_theme_support\\(\\) should return bool but empty return statement found\\.$#', |
642 | | - 'identifier' => 'return.empty', |
643 | | - 'count' => 1, |
644 | | - 'path' => __DIR__ . '/../../../src/wp-includes/theme.php', |
645 | | -]; |
646 | 610 | $ignoreErrors[] = [ |
647 | 611 | 'message' => '#^Function _wp_get_current_user\\(\\) should return WP_User but returns array\\|float\\|int\\|string\\|false\\|null\\.$#', |
648 | 612 | 'identifier' => 'return.type', |
|
0 commit comments