Issue #3483050 by mstrelan, nicxvan: Add int return type to all hook_update_last_removed implementations

merge-requests/9225/head^2
catch 2024-11-13 18:36:43 +00:00
parent 496bdd9685
commit 3d350b0388
39 changed files with 38 additions and 260 deletions

View File

@ -12496,12 +12496,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/big_pipe/tests/src/Unit/StackMiddleware/ContentLengthTest.php',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function block_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/block/block.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function block_block_build_local_actions_block_alter\\(\\) has no return type specified\\.$#',
@ -12994,12 +12988,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/block/tests/src/Unit/Plugin/migrate/process/BlockSettingsTest.php',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function block_content_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/block_content/block_content.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function block_content_help\\(\\) has no return type specified\\.$#',
@ -14308,12 +14296,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/comment/comment.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function comment_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/comment/comment.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function comment_cron\\(\\) has no return type specified\\.$#',
@ -16870,12 +16852,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/contact/tests/src/Unit/MailHandlerTest.php',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function content_moderation_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/content_moderation/content_moderation.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function content_moderation_action_info_alter\\(\\) has no return type specified\\.$#',
@ -18076,12 +18052,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/content_translation/content_translation.admin.inc',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function content_translation_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/content_translation/content_translation.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function _content_translation_install_field_storage_definitions\\(\\) has no return type specified\\.$#',
@ -19054,12 +19024,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/dblog/dblog.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function dblog_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/dblog/dblog.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function dblog_cron\\(\\) has no return type specified\\.$#',
@ -19246,12 +19210,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/dynamic_page_cache/tests/dynamic_page_cache_test/src/DynamicPageCacheTestController.php',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function editor_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/editor/editor.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function _editor_delete_file_usage\\(\\) has no return type specified\\.$#',
@ -19516,12 +19474,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function field_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/field/field.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function field_config_import_steps_alter\\(\\) has no return type specified\\.$#',
@ -21394,12 +21346,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/file/file.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function file_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/file/file.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function file_cron\\(\\) has no return type specified\\.$#',
@ -23014,12 +22960,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/help/help.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function help_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/help/help.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function help_block_view_help_block_alter\\(\\) has no return type specified\\.$#',
@ -23212,12 +23152,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/history/history.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function history_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/history/history.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function history_cron\\(\\) has no return type specified\\.$#',
@ -23398,12 +23332,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/image/image.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function image_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/image/image.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function image_entity_presave\\(\\) has no return type specified\\.$#',
@ -24184,12 +24112,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/jsonapi/jsonapi.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function jsonapi_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/jsonapi/jsonapi.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function jsonapi_entity_bundle_create\\(\\) has no return type specified\\.$#',
@ -25186,12 +25108,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/language/language.admin.inc',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function language_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/language/language.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function language_configuration_element_submit\\(\\) has no return type specified\\.$#',
@ -26200,12 +26116,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/layout_builder/layout_builder.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function layout_builder_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/layout_builder/layout_builder.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function layout_builder_block_content_access\\(\\) has no return type specified\\.$#',
@ -27994,12 +27904,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/locale/locale.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function locale_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/locale/locale.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function _locale_parse_js_file\\(\\) has no return type specified\\.$#',
@ -28936,12 +28840,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/media/media.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function media_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/media/media.install',
];
$ignoreErrors[] = [
// identifier: empty.variable
'message' => '#^Variable \\$error in empty\\(\\) always exists and is not falsy\\.$#',
@ -29968,12 +29866,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/media/tests/src/Unit/ResourceTest.php',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function media_library_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/media_library/media_library.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function _media_library_media_type_form_submit\\(\\) has no return type specified\\.$#',
@ -30472,12 +30364,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/media_library/tests/src/Kernel/MediaLibraryWidgetTest.php',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function menu_link_content_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/menu_link_content/menu_link_content.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function _menu_link_content_update_path_alias\\(\\) has no return type specified\\.$#',
@ -31018,12 +30904,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/menu_ui/tests/src/Kernel/MenuBlockTest.php',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function migrate_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/migrate/migrate.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function migrate_help\\(\\) has no return type specified\\.$#',
@ -32150,12 +32030,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/migrate/tests/src/Unit/process/SubstrTest.php',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function migrate_drupal_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/migrate_drupal/migrate_drupal.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function migrate_drupal_help\\(\\) has no return type specified\\.$#',
@ -33558,12 +33432,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/node/node.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function node_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/node/node.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function _node_access_rebuild_batch_finished\\(\\) has no return type specified\\.$#',
@ -35844,12 +35712,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/page_cache/tests/src/Functional/PageCacheTest.php',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function path_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/path/path.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function path_entity_base_field_info\\(\\) has no return type specified\\.$#',
@ -36264,12 +36126,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/pgsql/pgsql.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function pgsql_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/pgsql/pgsql.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function pgsql_help\\(\\) has no return type specified\\.$#',
@ -36618,12 +36474,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/responsive_image/tests/src/Kernel/Plugin/migrate/source/d7/ResponsiveImageStylesTest.php',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function rest_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/rest/rest.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function rest_help\\(\\) has no return type specified\\.$#',
@ -38016,12 +37866,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/search/tests/src/Kernel/SearchTokenizerTest.php',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function serialization_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/serialization/serialization.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function serialization_help\\(\\) has no return type specified\\.$#',
@ -38910,12 +38754,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/syslog/src/Logger/SysLog.php',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function syslog_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/syslog/syslog.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function syslog_help\\(\\) has no return type specified\\.$#',
@ -39744,12 +39582,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/system/system.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function system_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/system/system.install',
];
$ignoreErrors[] = [
// identifier: variable.undefined
'message' => '#^Variable \\$directories might not be defined\\.$#',
@ -42656,12 +42488,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/system/tests/modules/equivalent_update_test/equivalent_update_test.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function equivalent_update_test_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/system/tests/modules/equivalent_update_test/equivalent_update_test.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Method Drupal\\\\error_service_test\\\\Controller\\\\LonelyMonkeyController\\:\\:testBrokenClass\\(\\) has no return type specified\\.$#',
@ -44877,12 +44703,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/system/tests/modules/update_script_test/update_script_test.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function update_script_test_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/system/tests/modules/update_script_test/update_script_test.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function update_script_test_cache_flush\\(\\) has no return type specified\\.$#',
@ -45015,12 +44835,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/system/tests/modules/update_test_last_removed/update_test_last_removed.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function update_test_last_removed_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/system/tests/modules/update_test_last_removed/update_test_last_removed.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function update_test_no_preexisting_update_8001\\(\\) has no return type specified\\.$#',
@ -45111,12 +44925,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/system/tests/modules/update_test_with_7x/update_test_with_7x.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function update_test_with_7x_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/system/tests/modules/update_test_with_7x/update_test_with_7x.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Batch\\\\ProcessingTest\\:\\:_resultMessages\\(\\) has no return type specified\\.$#',
@ -47679,12 +47487,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/taxonomy/src/VocabularyListBuilder.php',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function taxonomy_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/taxonomy/taxonomy.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function taxonomy_build_node_index\\(\\) has no return type specified\\.$#',
@ -48981,12 +48783,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/update/update.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function update_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/update/update.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function update_manager_batch_project_get\\(\\) has no return type specified\\.$#',
@ -50721,12 +50517,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/user/user.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function user_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/user/user.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function _user_cancel\\(\\) has no return type specified\\.$#',
@ -59253,12 +59043,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/views/tests/src/Unit/WizardPluginBaseTest.php',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function views_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/views/views.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function _views_query_tag_alter_condition\\(\\) has no return type specified\\.$#',
@ -62445,12 +62229,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/modules/workspaces/workspaces.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function workspaces_update_last_removed\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/modules/workspaces/workspaces.install',
];
$ignoreErrors[] = [
// identifier: missingType.return
'message' => '#^Function workspaces_cron\\(\\) has no return type specified\\.$#',

View File

@ -989,7 +989,7 @@ function hook_update_dependencies() {
*
* @see hook_update_N()
*/
function hook_update_last_removed() {
function hook_update_last_removed(): int {
// We've removed the 8.x-1.x version of my_module, including database updates.
// The next update function is my_module_update_8200().
return 8103;

View File

@ -20,6 +20,6 @@ function block_install(): void {
/**
* Implements hook_update_last_removed().
*/
function block_update_last_removed() {
function block_update_last_removed(): int {
return 8003;
}

View File

@ -8,6 +8,6 @@
/**
* Implements hook_update_last_removed().
*/
function block_content_update_last_removed() {
function block_content_update_last_removed(): int {
return 10300;
}

View File

@ -114,6 +114,6 @@ function comment_schema() {
/**
* Implements hook_update_last_removed().
*/
function comment_update_last_removed() {
function comment_update_last_removed(): int {
return 10100;
}

View File

@ -8,6 +8,6 @@
/**
* Implements hook_update_last_removed().
*/
function content_moderation_update_last_removed() {
function content_moderation_update_last_removed(): int {
return 8700;
}

View File

@ -41,6 +41,6 @@ function content_translation_install(): void {
/**
* Implements hook_update_last_removed().
*/
function content_translation_update_last_removed() {
function content_translation_update_last_removed(): int {
return 8400;
}

View File

@ -96,6 +96,6 @@ function dblog_schema() {
/**
* Implements hook_update_last_removed().
*/
function dblog_update_last_removed() {
function dblog_update_last_removed(): int {
return 10101;
}

View File

@ -8,6 +8,6 @@
/**
* Implements hook_update_last_removed().
*/
function editor_update_last_removed() {
function editor_update_last_removed(): int {
return 8001;
}

View File

@ -8,6 +8,6 @@
/**
* Implements hook_update_last_removed().
*/
function field_update_last_removed() {
function field_update_last_removed(): int {
return 8500;
}

View File

@ -108,6 +108,6 @@ function file_requirements($phase) {
/**
* Implements hook_update_last_removed().
*/
function file_update_last_removed() {
function file_update_last_removed(): int {
return 8700;
}

View File

@ -53,6 +53,6 @@ function help_schema() {
/**
* Implements hook_update_last_removed().
*/
function help_update_last_removed() {
function help_update_last_removed(): int {
return 10200;
}

View File

@ -45,6 +45,6 @@ function history_schema() {
/**
* Implements hook_update_last_removed().
*/
function history_update_last_removed() {
function history_update_last_removed(): int {
return 10100;
}

View File

@ -73,6 +73,6 @@ function image_requirements($phase) {
/**
* Implements hook_update_last_removed().
*/
function image_update_last_removed() {
function image_update_last_removed(): int {
return 8201;
}

View File

@ -79,6 +79,6 @@ function jsonapi_requirements($phase) {
/**
* Implements hook_update_last_removed().
*/
function jsonapi_update_last_removed() {
function jsonapi_update_last_removed(): int {
return 9401;
}

View File

@ -8,6 +8,6 @@
/**
* Implements hook_update_last_removed().
*/
function language_update_last_removed() {
function language_update_last_removed(): int {
return 8001;
}

View File

@ -79,6 +79,6 @@ function layout_builder_schema() {
/**
* Implements hook_update_last_removed().
*/
function layout_builder_update_last_removed() {
function layout_builder_update_last_removed(): int {
return 8602;
}

View File

@ -319,7 +319,7 @@ function locale_requirements($phase) {
/**
* Implements hook_update_last_removed().
*/
function locale_update_last_removed() {
function locale_update_last_removed(): int {
return 10100;
}

View File

@ -178,6 +178,6 @@ function media_requirements($phase) {
/**
* Implements hook_update_last_removed().
*/
function media_update_last_removed() {
function media_update_last_removed(): int {
return 8700;
}

View File

@ -22,6 +22,6 @@ function media_library_install($is_syncing): void {
/**
* Implements hook_update_last_removed().
*/
function media_library_update_last_removed() {
function media_library_update_last_removed(): int {
return 8704;
}

View File

@ -8,6 +8,6 @@
/**
* Implements hook_update_last_removed().
*/
function menu_link_content_update_last_removed() {
function menu_link_content_update_last_removed(): int {
return 8601;
}

View File

@ -8,6 +8,6 @@
/**
* Implements hook_update_last_removed().
*/
function migrate_update_last_removed() {
function migrate_update_last_removed(): int {
return 10100;
}

View File

@ -8,6 +8,6 @@
/**
* Implements hook_update_last_removed().
*/
function migrate_drupal_update_last_removed() {
function migrate_drupal_update_last_removed(): int {
return 8901;
}

View File

@ -157,6 +157,6 @@ function node_uninstall(): void {
/**
* Implements hook_update_last_removed().
*/
function node_update_last_removed() {
function node_update_last_removed(): int {
return 8700;
}

View File

@ -8,6 +8,6 @@
/**
* Implements hook_update_last_removed().
*/
function path_update_last_removed() {
function path_update_last_removed(): int {
return 8200;
}

View File

@ -44,6 +44,6 @@ function pgsql_requirements() {
/**
* Implements hook_update_last_removed().
*/
function pgsql_update_last_removed() {
function pgsql_update_last_removed(): int {
return 10101;
}

View File

@ -8,6 +8,6 @@
/**
* Implements hook_update_last_removed().
*/
function rest_update_last_removed() {
function rest_update_last_removed(): int {
return 8401;
}

View File

@ -8,6 +8,6 @@
/**
* Implements hook_update_last_removed().
*/
function serialization_update_last_removed() {
function serialization_update_last_removed(): int {
return 8401;
}

View File

@ -17,6 +17,6 @@ function syslog_install(): void {
/**
* Implements hook_update_last_removed().
*/
function syslog_update_last_removed() {
function syslog_update_last_removed(): int {
return 8400;
}

View File

@ -1661,7 +1661,7 @@ function system_schema() {
/**
* Implements hook_update_last_removed().
*/
function system_update_last_removed() {
function system_update_last_removed(): int {
return 10201;
}

View File

@ -14,7 +14,7 @@ if (\Drupal::state()->get('equivalent_update_test_last_removed', FALSE)) {
/**
* Implements hook_update_last_removed().
*/
function equivalent_update_test_update_last_removed() {
function equivalent_update_test_update_last_removed(): int {
return \Drupal::state()->get('equivalent_update_test_update_last_removed', 100000);
}

View File

@ -52,7 +52,7 @@ function update_script_test_requirements_alter(array &$requirements): void {
/**
* Implements hook_update_last_removed().
*/
function update_script_test_update_last_removed() {
function update_script_test_update_last_removed(): int {
return 7110;
}

View File

@ -10,7 +10,7 @@ declare(strict_types=1);
/**
* Implements hook_update_last_removed().
*/
function update_test_last_removed_update_last_removed() {
function update_test_last_removed_update_last_removed(): int {
return 8002;
}

View File

@ -22,6 +22,6 @@ function update_test_with_7x_update_7201() {
/**
* Implements hook_update_last_removed().
*/
function update_test_with_7x_update_last_removed() {
function update_test_with_7x_update_last_removed(): int {
return 7110;
}

View File

@ -8,6 +8,6 @@
/**
* Implements hook_update_last_removed().
*/
function taxonomy_update_last_removed() {
function taxonomy_update_last_removed(): int {
return 10100;
}

View File

@ -172,6 +172,6 @@ function _update_requirement_check($project, $type) {
/**
* Implements hook_update_last_removed().
*/
function update_update_last_removed() {
function update_update_last_removed(): int {
return 8001;
}

View File

@ -122,6 +122,6 @@ function user_requirements($phase): array {
/**
* Implements hook_update_last_removed().
*/
function user_update_last_removed() {
function user_update_last_removed(): int {
return 10000;
}

View File

@ -15,6 +15,6 @@ function views_install(): void {
/**
* Implements hook_update_last_removed().
*/
function views_update_last_removed() {
function views_update_last_removed(): int {
return 8500;
}

View File

@ -123,6 +123,6 @@ function workspaces_schema() {
/**
* Implements hook_update_last_removed().
*/
function workspaces_update_last_removed() {
function workspaces_update_last_removed(): int {
return 8803;
}