Skip to content

Commit d6174bb

Browse files
committed
Ignore errors in src/wp-includes/build which currently come the Gutenberg build
1 parent 586a65c commit d6174bb

2 files changed

Lines changed: 2 additions & 300 deletions

File tree

tests/phpstan/base.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ parameters:
105105
- ../../src/wp-includes/deprecated.php
106106
- ../../src/wp-includes/ms-deprecated.php
107107
- ../../src/wp-includes/pluggable-deprecated.php
108+
# These files are currently pulled in from Gutenberg, but maybe not long-term. See <https://core.trac.wordpress.org/ticket/64393>.
109+
- ../../src/wp-includes/build
108110
# These files are sourced by wordpress/gutenberg in `tools/release/sync-stable-blocks.js`.
109111
- ../../src/wp-includes/blocks
110112
# Third-party libraries.

tests/phpstan/baseline/level-6.php

Lines changed: 0 additions & 300 deletions
Original file line numberDiff line numberDiff line change
@@ -11635,306 +11635,6 @@
1163511635
'count' => 1,
1163611636
'path' => __DIR__ . '/../../../src/wp-includes/bookmark.php',
1163711637
];
11638-
$ignoreErrors[] = [
11639-
'message' => '#^Function wp_font_library_wp_admin_enqueue_scripts\\(\\) has no return type specified\\.$#',
11640-
'identifier' => 'missingType.return',
11641-
'count' => 1,
11642-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/font-library/page-wp-admin.php',
11643-
];
11644-
$ignoreErrors[] = [
11645-
'message' => '#^Function wp_font_library_wp_admin_preload_data\\(\\) has no return type specified\\.$#',
11646-
'identifier' => 'missingType.return',
11647-
'count' => 1,
11648-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/font-library/page-wp-admin.php',
11649-
];
11650-
$ignoreErrors[] = [
11651-
'message' => '#^Function wp_font_library_wp_admin_render_page\\(\\) has no return type specified\\.$#',
11652-
'identifier' => 'missingType.return',
11653-
'count' => 1,
11654-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/font-library/page-wp-admin.php',
11655-
];
11656-
$ignoreErrors[] = [
11657-
'message' => '#^Function wp_get_font_library_wp_admin_menu_items\\(\\) return type has no value type specified in iterable type array\\.$#',
11658-
'identifier' => 'missingType.iterableValue',
11659-
'count' => 1,
11660-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/font-library/page-wp-admin.php',
11661-
];
11662-
$ignoreErrors[] = [
11663-
'message' => '#^Function wp_get_font_library_wp_admin_routes\\(\\) return type has no value type specified in iterable type array\\.$#',
11664-
'identifier' => 'missingType.iterableValue',
11665-
'count' => 1,
11666-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/font-library/page-wp-admin.php',
11667-
];
11668-
$ignoreErrors[] = [
11669-
'message' => '#^Function wp_register_font_library_wp_admin_menu_item\\(\\) has no return type specified\\.$#',
11670-
'identifier' => 'missingType.return',
11671-
'count' => 1,
11672-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/font-library/page-wp-admin.php',
11673-
];
11674-
$ignoreErrors[] = [
11675-
'message' => '#^Function wp_register_font_library_wp_admin_route\\(\\) has no return type specified\\.$#',
11676-
'identifier' => 'missingType.return',
11677-
'count' => 1,
11678-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/font-library/page-wp-admin.php',
11679-
];
11680-
$ignoreErrors[] = [
11681-
'message' => '#^Function wp_font_library_intercept_render\\(\\) has no return type specified\\.$#',
11682-
'identifier' => 'missingType.return',
11683-
'count' => 1,
11684-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/font-library/page.php',
11685-
];
11686-
$ignoreErrors[] = [
11687-
'message' => '#^Function wp_font_library_preload_data\\(\\) has no return type specified\\.$#',
11688-
'identifier' => 'missingType.return',
11689-
'count' => 1,
11690-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/font-library/page.php',
11691-
];
11692-
$ignoreErrors[] = [
11693-
'message' => '#^Function wp_font_library_render_page\\(\\) has no return type specified\\.$#',
11694-
'identifier' => 'missingType.return',
11695-
'count' => 1,
11696-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/font-library/page.php',
11697-
];
11698-
$ignoreErrors[] = [
11699-
'message' => '#^Function wp_get_font_library_menu_items\\(\\) return type has no value type specified in iterable type array\\.$#',
11700-
'identifier' => 'missingType.iterableValue',
11701-
'count' => 1,
11702-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/font-library/page.php',
11703-
];
11704-
$ignoreErrors[] = [
11705-
'message' => '#^Function wp_get_font_library_routes\\(\\) return type has no value type specified in iterable type array\\.$#',
11706-
'identifier' => 'missingType.iterableValue',
11707-
'count' => 1,
11708-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/font-library/page.php',
11709-
];
11710-
$ignoreErrors[] = [
11711-
'message' => '#^Function wp_register_font_library_menu_item\\(\\) has no return type specified\\.$#',
11712-
'identifier' => 'missingType.return',
11713-
'count' => 1,
11714-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/font-library/page.php',
11715-
];
11716-
$ignoreErrors[] = [
11717-
'message' => '#^Function wp_register_font_library_route\\(\\) has no return type specified\\.$#',
11718-
'identifier' => 'missingType.return',
11719-
'count' => 1,
11720-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/font-library/page.php',
11721-
];
11722-
$ignoreErrors[] = [
11723-
'message' => '#^Function wp_get_site_editor_v2_wp_admin_menu_items\\(\\) return type has no value type specified in iterable type array\\.$#',
11724-
'identifier' => 'missingType.iterableValue',
11725-
'count' => 1,
11726-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor-v2/page-wp-admin.php',
11727-
];
11728-
$ignoreErrors[] = [
11729-
'message' => '#^Function wp_get_site_editor_v2_wp_admin_routes\\(\\) return type has no value type specified in iterable type array\\.$#',
11730-
'identifier' => 'missingType.iterableValue',
11731-
'count' => 1,
11732-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor-v2/page-wp-admin.php',
11733-
];
11734-
$ignoreErrors[] = [
11735-
'message' => '#^Function wp_register_site_editor_v2_wp_admin_menu_item\\(\\) has no return type specified\\.$#',
11736-
'identifier' => 'missingType.return',
11737-
'count' => 1,
11738-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor-v2/page-wp-admin.php',
11739-
];
11740-
$ignoreErrors[] = [
11741-
'message' => '#^Function wp_register_site_editor_v2_wp_admin_route\\(\\) has no return type specified\\.$#',
11742-
'identifier' => 'missingType.return',
11743-
'count' => 1,
11744-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor-v2/page-wp-admin.php',
11745-
];
11746-
$ignoreErrors[] = [
11747-
'message' => '#^Function wp_site_editor_v2_wp_admin_enqueue_scripts\\(\\) has no return type specified\\.$#',
11748-
'identifier' => 'missingType.return',
11749-
'count' => 1,
11750-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor-v2/page-wp-admin.php',
11751-
];
11752-
$ignoreErrors[] = [
11753-
'message' => '#^Function wp_site_editor_v2_wp_admin_preload_data\\(\\) has no return type specified\\.$#',
11754-
'identifier' => 'missingType.return',
11755-
'count' => 1,
11756-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor-v2/page-wp-admin.php',
11757-
];
11758-
$ignoreErrors[] = [
11759-
'message' => '#^Function wp_site_editor_v2_wp_admin_render_page\\(\\) has no return type specified\\.$#',
11760-
'identifier' => 'missingType.return',
11761-
'count' => 1,
11762-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor-v2/page-wp-admin.php',
11763-
];
11764-
$ignoreErrors[] = [
11765-
'message' => '#^Function wp_get_site_editor_v2_menu_items\\(\\) return type has no value type specified in iterable type array\\.$#',
11766-
'identifier' => 'missingType.iterableValue',
11767-
'count' => 1,
11768-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor-v2/page.php',
11769-
];
11770-
$ignoreErrors[] = [
11771-
'message' => '#^Function wp_get_site_editor_v2_routes\\(\\) return type has no value type specified in iterable type array\\.$#',
11772-
'identifier' => 'missingType.iterableValue',
11773-
'count' => 1,
11774-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor-v2/page.php',
11775-
];
11776-
$ignoreErrors[] = [
11777-
'message' => '#^Function wp_register_site_editor_v2_menu_item\\(\\) has no return type specified\\.$#',
11778-
'identifier' => 'missingType.return',
11779-
'count' => 1,
11780-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor-v2/page.php',
11781-
];
11782-
$ignoreErrors[] = [
11783-
'message' => '#^Function wp_register_site_editor_v2_route\\(\\) has no return type specified\\.$#',
11784-
'identifier' => 'missingType.return',
11785-
'count' => 1,
11786-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor-v2/page.php',
11787-
];
11788-
$ignoreErrors[] = [
11789-
'message' => '#^Function wp_site_editor_v2_intercept_render\\(\\) has no return type specified\\.$#',
11790-
'identifier' => 'missingType.return',
11791-
'count' => 1,
11792-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor-v2/page.php',
11793-
];
11794-
$ignoreErrors[] = [
11795-
'message' => '#^Function wp_site_editor_v2_preload_data\\(\\) has no return type specified\\.$#',
11796-
'identifier' => 'missingType.return',
11797-
'count' => 1,
11798-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor-v2/page.php',
11799-
];
11800-
$ignoreErrors[] = [
11801-
'message' => '#^Function wp_site_editor_v2_render_page\\(\\) has no return type specified\\.$#',
11802-
'identifier' => 'missingType.return',
11803-
'count' => 1,
11804-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor-v2/page.php',
11805-
];
11806-
$ignoreErrors[] = [
11807-
'message' => '#^Function wp_get_site_editor_wp_admin_menu_items\\(\\) return type has no value type specified in iterable type array\\.$#',
11808-
'identifier' => 'missingType.iterableValue',
11809-
'count' => 1,
11810-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor/page-wp-admin.php',
11811-
];
11812-
$ignoreErrors[] = [
11813-
'message' => '#^Function wp_get_site_editor_wp_admin_routes\\(\\) return type has no value type specified in iterable type array\\.$#',
11814-
'identifier' => 'missingType.iterableValue',
11815-
'count' => 1,
11816-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor/page-wp-admin.php',
11817-
];
11818-
$ignoreErrors[] = [
11819-
'message' => '#^Function wp_register_site_editor_wp_admin_menu_item\\(\\) has no return type specified\\.$#',
11820-
'identifier' => 'missingType.return',
11821-
'count' => 1,
11822-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor/page-wp-admin.php',
11823-
];
11824-
$ignoreErrors[] = [
11825-
'message' => '#^Function wp_register_site_editor_wp_admin_route\\(\\) has no return type specified\\.$#',
11826-
'identifier' => 'missingType.return',
11827-
'count' => 1,
11828-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor/page-wp-admin.php',
11829-
];
11830-
$ignoreErrors[] = [
11831-
'message' => '#^Function wp_site_editor_wp_admin_enqueue_scripts\\(\\) has no return type specified\\.$#',
11832-
'identifier' => 'missingType.return',
11833-
'count' => 1,
11834-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor/page-wp-admin.php',
11835-
];
11836-
$ignoreErrors[] = [
11837-
'message' => '#^Function wp_site_editor_wp_admin_preload_data\\(\\) has no return type specified\\.$#',
11838-
'identifier' => 'missingType.return',
11839-
'count' => 1,
11840-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor/page-wp-admin.php',
11841-
];
11842-
$ignoreErrors[] = [
11843-
'message' => '#^Function wp_site_editor_wp_admin_render_page\\(\\) has no return type specified\\.$#',
11844-
'identifier' => 'missingType.return',
11845-
'count' => 1,
11846-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor/page-wp-admin.php',
11847-
];
11848-
$ignoreErrors[] = [
11849-
'message' => '#^Function wp_get_site_editor_menu_items\\(\\) return type has no value type specified in iterable type array\\.$#',
11850-
'identifier' => 'missingType.iterableValue',
11851-
'count' => 1,
11852-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor/page.php',
11853-
];
11854-
$ignoreErrors[] = [
11855-
'message' => '#^Function wp_get_site_editor_routes\\(\\) return type has no value type specified in iterable type array\\.$#',
11856-
'identifier' => 'missingType.iterableValue',
11857-
'count' => 1,
11858-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor/page.php',
11859-
];
11860-
$ignoreErrors[] = [
11861-
'message' => '#^Function wp_register_site_editor_menu_item\\(\\) has no return type specified\\.$#',
11862-
'identifier' => 'missingType.return',
11863-
'count' => 1,
11864-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor/page.php',
11865-
];
11866-
$ignoreErrors[] = [
11867-
'message' => '#^Function wp_register_site_editor_route\\(\\) has no return type specified\\.$#',
11868-
'identifier' => 'missingType.return',
11869-
'count' => 1,
11870-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor/page.php',
11871-
];
11872-
$ignoreErrors[] = [
11873-
'message' => '#^Function wp_site_editor_intercept_render\\(\\) has no return type specified\\.$#',
11874-
'identifier' => 'missingType.return',
11875-
'count' => 1,
11876-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor/page.php',
11877-
];
11878-
$ignoreErrors[] = [
11879-
'message' => '#^Function wp_site_editor_preload_data\\(\\) has no return type specified\\.$#',
11880-
'identifier' => 'missingType.return',
11881-
'count' => 1,
11882-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor/page.php',
11883-
];
11884-
$ignoreErrors[] = [
11885-
'message' => '#^Function wp_site_editor_render_page\\(\\) has no return type specified\\.$#',
11886-
'identifier' => 'missingType.return',
11887-
'count' => 1,
11888-
'path' => __DIR__ . '/../../../src/wp-includes/build/pages/site-editor/page.php',
11889-
];
11890-
$ignoreErrors[] = [
11891-
'message' => '#^Function wp_register_font_library_page_routes\\(\\) has no return type specified\\.$#',
11892-
'identifier' => 'missingType.return',
11893-
'count' => 1,
11894-
'path' => __DIR__ . '/../../../src/wp-includes/build/routes.php',
11895-
];
11896-
$ignoreErrors[] = [
11897-
'message' => '#^Function wp_register_font_library_wp_admin_page_routes\\(\\) has no return type specified\\.$#',
11898-
'identifier' => 'missingType.return',
11899-
'count' => 1,
11900-
'path' => __DIR__ . '/../../../src/wp-includes/build/routes.php',
11901-
];
11902-
$ignoreErrors[] = [
11903-
'message' => '#^Function wp_register_page_routes\\(\\) has no return type specified\\.$#',
11904-
'identifier' => 'missingType.return',
11905-
'count' => 1,
11906-
'path' => __DIR__ . '/../../../src/wp-includes/build/routes.php',
11907-
];
11908-
$ignoreErrors[] = [
11909-
'message' => '#^Function wp_register_page_routes\\(\\) has parameter \\$page_routes with no value type specified in iterable type array\\.$#',
11910-
'identifier' => 'missingType.iterableValue',
11911-
'count' => 1,
11912-
'path' => __DIR__ . '/../../../src/wp-includes/build/routes.php',
11913-
];
11914-
$ignoreErrors[] = [
11915-
'message' => '#^Function wp_register_site_editor_page_routes\\(\\) has no return type specified\\.$#',
11916-
'identifier' => 'missingType.return',
11917-
'count' => 1,
11918-
'path' => __DIR__ . '/../../../src/wp-includes/build/routes.php',
11919-
];
11920-
$ignoreErrors[] = [
11921-
'message' => '#^Function wp_register_site_editor_v2_page_routes\\(\\) has no return type specified\\.$#',
11922-
'identifier' => 'missingType.return',
11923-
'count' => 1,
11924-
'path' => __DIR__ . '/../../../src/wp-includes/build/routes.php',
11925-
];
11926-
$ignoreErrors[] = [
11927-
'message' => '#^Function wp_register_site_editor_v2_wp_admin_page_routes\\(\\) has no return type specified\\.$#',
11928-
'identifier' => 'missingType.return',
11929-
'count' => 1,
11930-
'path' => __DIR__ . '/../../../src/wp-includes/build/routes.php',
11931-
];
11932-
$ignoreErrors[] = [
11933-
'message' => '#^Function wp_register_site_editor_wp_admin_page_routes\\(\\) has no return type specified\\.$#',
11934-
'identifier' => 'missingType.return',
11935-
'count' => 1,
11936-
'path' => __DIR__ . '/../../../src/wp-includes/build/routes.php',
11937-
];
1193811638
$ignoreErrors[] = [
1193911639
'message' => '#^Function wp_cache_add_multiple\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
1194011640
'identifier' => 'missingType.iterableValue',

0 commit comments

Comments
 (0)