Verified Commit 873f84fc authored by quietone's avatar quietone
Browse files

Issue #3488841 by mstrelan, shalini_jha, akulsaxena, smustgrave, nicxvan: Add...

Issue #3488841 by mstrelan, shalini_jha, akulsaxena, smustgrave, nicxvan: Add array return to all *_info hook implementations
parent 7ca46b59
Loading
Loading
Loading
Loading
Loading
+0 −276
Original line number Diff line number Diff line
@@ -13561,12 +13561,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/comment/src/Form/DeleteForm.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\comment\\\\Hook\\\\CommentHooks\\:\\:entityExtraFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/comment/src/Hook/CommentHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\comment\\\\Hook\\\\CommentHooks\\:\\:entityInsert\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -13633,12 +13627,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/comment/src/Hook/CommentHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\comment\\\\Hook\\\\CommentTokensHooks\\:\\:tokenInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/comment/src/Hook/CommentTokensHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\comment\\\\Plugin\\\\EntityReferenceSelection\\\\CommentSelection\\:\\:entityQueryAlter\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -15163,12 +15151,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/contact/src/Entity/Message.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\contact\\\\Hook\\\\ContactHooks\\:\\:entityExtraFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/contact/src/Hook/ContactHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\contact\\\\Hook\\\\ContactHooks\\:\\:help\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -15247,12 +15229,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/contact/src/Plugin/views/field/ContactLink.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\contact_storage_test\\\\Hook\\\\ContactStorageTestHooks\\:\\:entityBaseFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/contact/tests/modules/contact_storage_test/src/Hook/ContactStorageTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\Tests\\\\contact\\\\Functional\\\\ContactPersonalTest\\:\\:assertCacheContext\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -15775,36 +15751,18 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/content_moderation/src/Form/EntityModerationForm.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\content_moderation\\\\Hook\\\\ContentModerationHooks\\:\\:entityBaseFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/content_moderation/src/Hook/ContentModerationHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\content_moderation\\\\Hook\\\\ContentModerationHooks\\:\\:entityBundleDelete\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/content_moderation/src/Hook/ContentModerationHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\content_moderation\\\\Hook\\\\ContentModerationHooks\\:\\:entityBundleFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/content_moderation/src/Hook/ContentModerationHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\content_moderation\\\\Hook\\\\ContentModerationHooks\\:\\:entityDelete\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/content_moderation/src/Hook/ContentModerationHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\content_moderation\\\\Hook\\\\ContentModerationHooks\\:\\:entityExtraFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/content_moderation/src/Hook/ContentModerationHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\content_moderation\\\\Hook\\\\ContentModerationHooks\\:\\:entityInsert\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -16699,18 +16657,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/content_translation/src/FieldTranslationSynchronizerInterface.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\content_translation\\\\Hook\\\\ContentTranslationHooks\\:\\:entityBaseFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/content_translation/src/Hook/ContentTranslationHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\content_translation\\\\Hook\\\\ContentTranslationHooks\\:\\:entityExtraFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/content_translation/src/Hook/ContentTranslationHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\content_translation\\\\Hook\\\\ContentTranslationHooks\\:\\:entityPresave\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -17821,18 +17767,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/field/src/Hook/FieldHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\field\\\\Hook\\\\FieldHooks\\:\\:entityBundleFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/field/src/Hook/FieldHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\field\\\\Hook\\\\FieldHooks\\:\\:entityFieldStorageInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/field/src/Hook/FieldHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\field\\\\Hook\\\\FieldHooks\\:\\:fieldConfigCreate\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -23113,12 +23047,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/language/tests/language_test/src/Controller/LanguageTestController.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\language_test\\\\Hook\\\\LanguageTestHooks\\:\\:languageTypesInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/language/tests/language_test/src/Hook/LanguageTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\ConfigurableLanguageManagerTest\\:\\:setWaitForTerminate\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -24019,12 +23947,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/layout_builder/tests/modules/layout_builder_extra_field_test/layout_builder_extra_field_test.module',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\layout_builder_extra_field_test\\\\Hook\\\\LayoutBuilderExtraFieldTestHooks\\:\\:entityExtraFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/layout_builder/tests/modules/layout_builder_extra_field_test/src/Hook/LayoutBuilderExtraFieldTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\layout_builder_form_block_test\\\\Plugin\\\\Block\\\\TestFormApiFormBlock\\:\\:submitForm\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -24043,12 +23965,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/layout_builder/tests/modules/layout_builder_test/layout_builder_test.module',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\layout_builder_test\\\\Hook\\\\LayoutBuilderTestHooks\\:\\:entityExtraFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/layout_builder/tests/modules/layout_builder_test/src/Hook/LayoutBuilderTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\layout_builder_test\\\\Hook\\\\LayoutBuilderTestHooks\\:\\:layoutBuilderEntityFormDisplayAlter\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -24739,12 +24655,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/link/src/Plugin/migrate/process/FieldLink.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\link_test_base_field\\\\Hook\\\\LinkTestBaseFieldHooks\\:\\:entityBaseFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/link/tests/modules/link_test_base_field/src/Hook/LinkTestBaseFieldHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\Tests\\\\link\\\\Functional\\\\LinkFieldTest\\:\\:assertPathAliasExists\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -25483,12 +25393,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/locale/src/StringStorageInterface.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\locale_test\\\\Hook\\\\LocaleTestHooks\\:\\:tokenInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/locale/tests/modules/locale_test/src/Hook/LocaleTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Functional\\\\LocaleExportTest\\:\\:getCustomPoFile\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -29935,12 +29839,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/node/src/Hook/NodeHooks1.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\node\\\\Hook\\\\NodeHooks1\\:\\:entityExtraFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/node/src/Hook/NodeHooks1.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\node\\\\Hook\\\\NodeHooks1\\:\\:help\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -29953,12 +29851,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/node/src/Hook/NodeHooks1.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\node\\\\Hook\\\\NodeTokensHooks\\:\\:tokenInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/node/src/Hook/NodeTokensHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\node\\\\NodeAccessControlHandler\\:\\:deleteGrants\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -31255,12 +31147,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/path/src/Form/PathFilterForm.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\path\\\\Hook\\\\PathHooks\\:\\:entityBaseFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/path/src/Hook/PathHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\path\\\\Hook\\\\PathHooks\\:\\:entityTranslationCreate\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -32191,12 +32077,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/rest/src/Routing/ResourceRoutes.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\rest_test\\\\Hook\\\\RestTestHooks\\:\\:entityBaseFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/rest/tests/modules/rest_test/src/Hook/RestTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\Tests\\\\rest\\\\Functional\\\\EntityResource\\\\EntityResourceTestBase\\:\\:assert406Response\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -34759,30 +34639,12 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/system/src/Hook/SystemHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\system\\\\Hook\\\\SystemHooks\\:\\:filetransferInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/src/Hook/SystemHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\system\\\\Hook\\\\SystemHooks\\:\\:help\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/src/Hook/SystemHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\system\\\\Hook\\\\SystemHooks\\:\\:updaterInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/src/Hook/SystemHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\system\\\\Hook\\\\SystemTokensHooks\\:\\:tokenInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/src/Hook/SystemTokensHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\system\\\\PhpStorage\\\\MockPhpStorage\\:\\:getConfiguration\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -34993,12 +34855,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/system/system.module',
];
$ignoreErrors[] = [
	'message' => '#^Function system_hook_info\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/system.module',
];
$ignoreErrors[] = [
	'message' => '#^Function system_sort_themes\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -36225,18 +36081,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/entity_crud_hook_test/src/Hook/EntityCrudHookTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\entity_reference_test\\\\Hook\\\\EntityReferenceTestHooks\\:\\:entityBaseFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/entity_reference_test/src/Hook/EntityReferenceTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\entity_schema_test\\\\Hook\\\\EntitySchemaTestHooks\\:\\:entityBaseFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/entity_schema_test/src/Hook/EntitySchemaTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\entity_schema_test\\\\Hook\\\\EntitySchemaTestHooks\\:\\:entityBundleCreate\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -36249,18 +36093,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/entity_schema_test/src/Hook/EntitySchemaTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\entity_schema_test\\\\Hook\\\\EntitySchemaTestHooks\\:\\:entityBundleFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/entity_schema_test/src/Hook/EntitySchemaTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\entity_schema_test\\\\Hook\\\\EntitySchemaTestHooks\\:\\:entityFieldStorageInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/entity_schema_test/src/Hook/EntitySchemaTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Function _entity_test_record_hooks\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -36405,24 +36237,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/entity_test/src/EntityTestViewBuilder.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\entity_test\\\\Hook\\\\EntityTestHooks\\:\\:entityBaseFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/entity_test/src/Hook/EntityTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\entity_test\\\\Hook\\\\EntityTestHooks\\:\\:entityBundleInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/entity_test/src/Hook/EntityTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\entity_test\\\\Hook\\\\EntityTestHooks\\:\\:entityExtraFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/entity_test/src/Hook/EntityTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\entity_test\\\\Hook\\\\EntityTestHooks\\:\\:entityInsert\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -37269,24 +37083,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/entity_test_bundle_class/src/Entity/EntityTestBundleClass.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\entity_test_extra\\\\Hook\\\\EntityTestExtraHooks\\:\\:entityBaseFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/entity_test_extra/src/Hook/EntityTestExtraHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\entity_test_extra\\\\Hook\\\\EntityTestExtraHooks\\:\\:entityBundleFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/entity_test_extra/src/Hook/EntityTestExtraHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\entity_test_extra\\\\Hook\\\\EntityTestExtraHooks\\:\\:entityFieldStorageInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/entity_test_extra/src/Hook/EntityTestExtraHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\entity_test_update\\\\Entity\\\\EntityTestUpdate\\:\\:preCreate\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -37335,18 +37131,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/entity_test_update/src/EventSubscriber/EntitySchemaSubscriber.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\entity_test_update\\\\Hook\\\\EntityTestUpdateHooks\\:\\:entityBaseFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/entity_test_update/src/Hook/EntityTestUpdateHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\entity_test_update\\\\Hook\\\\EntityTestUpdateHooks\\:\\:entityFieldStorageInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/entity_test_update/src/Hook/EntityTestUpdateHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\entity_test_update\\\\Hook\\\\EntityTestUpdateHooks\\:\\:viewPresave\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -38151,12 +37935,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/module_test/module_test.implementations.inc',
];
$ignoreErrors[] = [
	'message' => '#^Function module_test_hook_info\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/module_test/module_test.module',
];
$ignoreErrors[] = [
	'message' => '#^Function module_test_load\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -38793,12 +38571,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/system_test/src/Form/CopyFieldValueTestForm.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\system_test\\\\Hook\\\\SystemTestHooks\\:\\:filetransferInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/system/tests/modules/system_test/src/Hook/SystemTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\system_test\\\\Hook\\\\SystemTestHooks\\:\\:help\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -41097,12 +40869,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/taxonomy/src/Hook/TaxonomyHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\taxonomy\\\\Hook\\\\TaxonomyTokensHooks\\:\\:tokenInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/taxonomy/src/Hook/TaxonomyTokensHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\taxonomy\\\\Plugin\\\\Validation\\\\Constraint\\\\TaxonomyTermHierarchyConstraintValidator\\:\\:create\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -42255,12 +42021,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/update/src/UpdateSettingsForm.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\update_test\\\\Hook\\\\UpdateTestHooks\\:\\:filetransferInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/update/tests/modules/update_test/src/Hook/UpdateTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\Tests\\\\update\\\\Functional\\\\UpdateContribTest\\:\\:securityUpdateAvailabilityProvider\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -42747,12 +42507,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/user/src/Form/UserPermissionsForm.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\user\\\\Hook\\\\UserHooks\\:\\:entityExtraFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/user/src/Hook/UserHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\user\\\\Hook\\\\UserHooks\\:\\:help\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -42783,12 +42537,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/user/src/Hook/UserHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\user\\\\Hook\\\\UserTokensHooks\\:\\:tokenInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/user/src/Hook/UserTokensHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\user\\\\Plugin\\\\Action\\\\AddRoleUser\\:\\:execute\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -44463,12 +44211,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/views/src/Hook/ViewsHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\views\\\\Hook\\\\ViewsTokensHooks\\:\\:tokenInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/views/src/Hook/ViewsTokensHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\views\\\\ManyToOneHelper\\:\\:addFilter\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -50475,12 +50217,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/views/tests/modules/user_batch_action_test/src/Plugin/Action/BatchUserAction.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\views_entity_test\\\\Hook\\\\ViewsEntityTestHooks\\:\\:entityBaseFieldInfo\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/views/tests/modules/views_entity_test/src/Hook/ViewsEntityTestHooks.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\views_entity_test\\\\Hook\\\\ViewsEntityTestHooks\\:\\:entityLoad\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -52035,12 +51771,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/views/views.module',
];
$ignoreErrors[] = [
	'message' => '#^Function views_hook_info\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/views/views.module',
];
$ignoreErrors[] = [
	'message' => '#^Function views_invalidate_cache\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -59758,12 +59488,6 @@
	'count' => 1,
	'path' => __DIR__ . '/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.module',
];
$ignoreErrors[] = [
	'message' => '#^Function module_handler_test_hook_info\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.module',
];
$ignoreErrors[] = [
	'message' => '#^Function module_handler_test_added_hook\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
+11 −13

File changed.

Preview size limit exceeded, changes collapsed.

+2 −2
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@
 *     system will determine whether a file with the name $module.$group.inc
 *     exists, and automatically load it when required.
 */
function hook_hook_info() {
function hook_hook_info(): array {
  $hooks['token_info'] = [
    'group' => 'tokens',
  ];
@@ -1025,7 +1025,7 @@ function hook_update_last_removed(): int {
 * @see drupal_get_updaters()
 * @see hook_updater_info_alter()
 */
function hook_updater_info() {
function hook_updater_info(): array {
  return [
    'module' => [
      'class' => 'Drupal\Core\Updater\Module',
+1 −1
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@ function hook_archiver_info_alter(&$info) {
 * @see hook_filetransfer_info_alter()
 * @see drupal_get_filetransfer_info()
 */
function hook_filetransfer_info() {
function hook_filetransfer_info(): array {
  $info['sftp'] = [
    'title' => t('SFTP (Secure FTP)'),
    'class' => 'Drupal\Core\FileTransfer\SFTP',
+1 −1
Original line number Diff line number Diff line
@@ -208,7 +208,7 @@ function hook_tokens_alter(array &$replacements, array $context, \Drupal\Core\Re
 * @see hook_token_info_alter()
 * @see hook_tokens()
 */
function hook_token_info() {
function hook_token_info(): array {
  $type = [
    'name' => t('Nodes'),
    'description' => t('Tokens related to individual nodes.'),
Loading