File tree Expand file tree Collapse file tree 3 files changed +0
-42
lines changed
Expand file tree Collapse file tree 3 files changed +0
-42
lines changed Original file line number Diff line number Diff line change 3131 'count ' => 1 ,
3232 'path ' => __DIR__ . '/../../../src/wp-admin/includes/class-custom-image-header.php ' ,
3333];
34- $ ignoreErrors [] = [
35- // identifier: isset.variable
36- 'message ' => '#^Variable \\$oitar in isset \\( \\) always exists and is not nullable \\.$# ' ,
37- 'count ' => 1 ,
38- 'path ' => __DIR__ . '/../../../src/wp-admin/includes/class-custom-image-header.php ' ,
39- ];
4034$ ignoreErrors [] = [
4135 // identifier: constructor.unusedParameter
4236 'message ' => '#^Constructor of class WP_Filesystem_Direct has an unused parameter \\$arg \\.$# ' ,
6155 'count ' => 1 ,
6256 'path ' => __DIR__ . '/../../../src/wp-admin/themes.php ' ,
6357];
64- $ ignoreErrors [] = [
65- // identifier: isset.variable
66- 'message ' => '#^Variable \\$area in isset \\( \\) always exists and is not nullable \\.$# ' ,
67- 'count ' => 1 ,
68- 'path ' => __DIR__ . '/../../../src/wp-includes/block-template-utils.php ' ,
69- ];
7058$ ignoreErrors [] = [
7159 // identifier: empty.variable
7260 'message ' => '#^Variable \\$addl_path in empty \\( \\) always exists and is always falsy \\.$# ' ,
Original file line number Diff line number Diff line change 8585 'count ' => 1 ,
8686 'path ' => __DIR__ . '/../../../src/wp-admin/includes/file.php ' ,
8787];
88- $ ignoreErrors [] = [
89- // identifier: return.empty
90- 'message ' => '#^Function iis7_save_url_rewrite_rules \\( \\) should return bool \\|null but empty return statement found \\.$# ' ,
91- 'count ' => 1 ,
92- 'path ' => __DIR__ . '/../../../src/wp-admin/includes/misc.php ' ,
93- ];
94- $ ignoreErrors [] = [
95- // identifier: return.empty
96- 'message ' => '#^Function save_mod_rewrite_rules \\( \\) should return bool \\|null but empty return statement found \\.$# ' ,
97- 'count ' => 1 ,
98- 'path ' => __DIR__ . '/../../../src/wp-admin/includes/misc.php ' ,
99- ];
10088$ ignoreErrors [] = [
10189 // identifier: return.type
10290 'message ' => '#^Function wp_get_nav_menu_to_edit \\( \\) should return string \\|WP_Error \\|null but returns WP_Term \\|false \\.$# ' ,
685673 'count ' => 1 ,
686674 'path ' => __DIR__ . '/../../../src/wp-includes/post-template.php ' ,
687675];
688- $ ignoreErrors [] = [
689- // identifier: return.empty
690- 'message ' => '#^Function get_page_by_path \\( \\) should return array \\|WP_Post \\|null but empty return statement found \\.$# ' ,
691- 'count ' => 1 ,
692- 'path ' => __DIR__ . '/../../../src/wp-includes/post.php ' ,
693- ];
694676$ ignoreErrors [] = [
695677 // identifier: return.type
696678 'message ' => '#^Function wp_set_post_categories \\( \\) should return array \\|WP_Error \\|false but returns true \\.$# ' ,
Original file line number Diff line number Diff line change 121121 'count ' => 1 ,
122122 'path ' => __DIR__ . '/../../../src/wp-admin/includes/media.php ' ,
123123];
124- $ ignoreErrors [] = [
125- // identifier: return.unusedType
126- 'message ' => '#^Function iis7_save_url_rewrite_rules \\( \\) never returns null so it can be removed from the return type \\.$# ' ,
127- 'count ' => 1 ,
128- 'path ' => __DIR__ . '/../../../src/wp-admin/includes/misc.php ' ,
129- ];
130- $ ignoreErrors [] = [
131- // identifier: return.unusedType
132- 'message ' => '#^Function save_mod_rewrite_rules \\( \\) never returns null so it can be removed from the return type \\.$# ' ,
133- 'count ' => 1 ,
134- 'path ' => __DIR__ . '/../../../src/wp-admin/includes/misc.php ' ,
135- ];
136124$ ignoreErrors [] = [
137125 // identifier: booleanAnd.leftAlwaysTrue
138126 'message ' => '#^Left side of && is always true \\.$# ' ,
You can’t perform that action at this time.
0 commit comments