diff options
442 files changed, 845 insertions, 5909 deletions
diff --git a/core/.phpstan-baseline.php b/core/.phpstan-baseline.php index 8e9ddb70e03..3dc55759869 100644 --- a/core/.phpstan-baseline.php +++ b/core/.phpstan-baseline.php @@ -12510,18 +12510,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\big_pipe\\\\Functional\\\\BigPipeTest\\:\\:performMetaRefresh\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/big_pipe/tests/src/Functional/BigPipeTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\big_pipe\\\\Functional\\\\BigPipeTest\\:\\:setCsrfTokenSeedInTestEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/big_pipe/tests/src/Functional/BigPipeTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\big_pipe\\\\Unit\\\\Render\\\\BigPipeResponseAttachmentsProcessorTest\\:\\:attachmentsProvider\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php', @@ -12845,12 +12833,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/modules/block/tests/src/Functional/BlockRenderOrderTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\block\\\\Functional\\\\BlockTest\\:\\:moveBlockToRegion\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/block/tests/src/Functional/BlockTest.php', -]; -$ignoreErrors[] = [ // identifier: variable.undefined 'message' => '#^Variable \\$edit might not be defined\\.$#', 'count' => 1, @@ -12870,24 +12852,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\block\\\\Functional\\\\BlockXssTest\\:\\:doBlockContentTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/block/tests/src/Functional/BlockXssTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\block\\\\Functional\\\\BlockXssTest\\:\\:doMenuTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/block/tests/src/Functional/BlockXssTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\block\\\\Functional\\\\BlockXssTest\\:\\:doViewTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/block/tests/src/Functional/BlockXssTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\block\\\\Functional\\\\Rest\\\\BlockJsonAnonTest\\:\\:assertAuthenticationEdgeCases\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/block/tests/src/Functional/Rest/BlockJsonAnonTest.php', @@ -13044,30 +13008,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\block\\\\Kernel\\\\BlockStorageUnitTest\\:\\:createTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/block/tests/src/Kernel/BlockStorageUnitTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\block\\\\Kernel\\\\BlockStorageUnitTest\\:\\:deleteTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/block/tests/src/Kernel/BlockStorageUnitTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\block\\\\Kernel\\\\BlockStorageUnitTest\\:\\:loadTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/block/tests/src/Kernel/BlockStorageUnitTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\block\\\\Kernel\\\\BlockViewBuilderTest\\:\\:verifyRenderCacheHandling\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/block/tests/src/Kernel/BlockViewBuilderTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\block\\\\Kernel\\\\Plugin\\\\migrate\\\\source\\\\BlockTest\\:\\:providerSource\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/block/tests/src/Kernel/Plugin/migrate/source/BlockTest.php', @@ -13314,18 +13254,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\block_content\\\\Functional\\\\BlockContentTranslationUITest\\:\\:doTestBasicTranslation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\block_content\\\\Functional\\\\BlockContentTranslationUITest\\:\\:doTestTranslationEdit\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\block_content\\\\Functional\\\\BlockContentTranslationUITest\\:\\:getEditValues\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php', @@ -13344,12 +13272,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\block_content\\\\Functional\\\\BlockContentTranslationUITest\\:\\:setupBundle\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\block_content\\\\Functional\\\\BlockContentTypeTest\\:\\:assertBreadcrumb\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/block_content/tests/src/Functional/BlockContentTypeTest.php', @@ -13704,12 +13626,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\breakpoint\\\\Unit\\\\BreakpointTest\\:\\:setupBreakpoint\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/breakpoint/tests/src/Unit/BreakpointTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Function _update_ckeditor5_html_filter\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/ckeditor5/ckeditor5.module', @@ -14106,12 +14022,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\ckeditor5\\\\Functional\\\\ImageUploadTest\\:\\:createBasicFormat\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/ckeditor5/tests/src/Functional/ImageUploadTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\ckeditor5\\\\Functional\\\\ImageUploadTest\\:\\:drupalLogin\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/ckeditor5/tests/src/Functional/ImageUploadTest.php', @@ -14208,24 +14118,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\ckeditor5\\\\FunctionalJavascript\\\\CKEditor5Test\\:\\:languageOfPartsPluginConfigureLanguageListHelper\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5Test.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\ckeditor5\\\\FunctionalJavascript\\\\CKEditor5Test\\:\\:languageOfPartsPluginInitialConfigurationHelper\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5Test.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\ckeditor5\\\\FunctionalJavascript\\\\CKEditor5Test\\:\\:languageOfPartsPluginTestHelper\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5Test.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\ckeditor5\\\\FunctionalJavascript\\\\CKEditor5Test\\:\\:pressEditorButton\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5Test.php', @@ -14472,12 +14364,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\ckeditor5\\\\Kernel\\\\CKEditor5PluginManagerTest\\:\\:enableModules\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/ckeditor5/tests/src/Kernel/CKEditor5PluginManagerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\ckeditor5\\\\Kernel\\\\CKEditor5PluginManagerTest\\:\\:providerTestPluginSupportingElement\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/ckeditor5/tests/src/Kernel/CKEditor5PluginManagerTest.php', @@ -15264,12 +15150,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\comment\\\\Functional\\\\CommentNonNodeTest\\:\\:performCommentOperation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/comment/tests/src/Functional/CommentNonNodeTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\comment\\\\Functional\\\\CommentRssTest\\:\\:assertCacheContext\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/comment/tests/src/Functional/CommentRssTest.php', @@ -15378,36 +15258,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\comment\\\\Functional\\\\CommentTranslationUITest\\:\\:doTestAuthoringInfo\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/comment/tests/src/Functional/CommentTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\comment\\\\Functional\\\\CommentTranslationUITest\\:\\:doTestPublishedStatus\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/comment/tests/src/Functional/CommentTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\comment\\\\Functional\\\\CommentTranslationUITest\\:\\:doTestTranslationEdit\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/comment/tests/src/Functional/CommentTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\comment\\\\Functional\\\\CommentTranslationUITest\\:\\:getNewEntityValues\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/comment/tests/src/Functional/CommentTranslationUITest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\comment\\\\Functional\\\\CommentTranslationUITest\\:\\:setupBundle\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/comment/tests/src/Functional/CommentTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\comment\\\\Functional\\\\Rest\\\\CommentJsonAnonTest\\:\\:assertAuthenticationEdgeCases\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/comment/tests/src/Functional/Rest/CommentJsonAnonTest.php', @@ -15726,12 +15582,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\comment\\\\Kernel\\\\Views\\\\CommentAdminViewTest\\:\\:doTestFilters\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/comment/tests/src/Kernel/Views/CommentAdminViewTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\comment\\\\Kernel\\\\Views\\\\CommentFieldNameTest\\:\\:addDefaultCommentField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/comment/tests/src/Kernel/Views/CommentFieldNameTest.php', @@ -16314,12 +16164,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config\\\\Functional\\\\ConfigImportUITest\\:\\:prepareSiteNameUpdate\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config/tests/src/Functional/ConfigImportUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\config\\\\Functional\\\\ConfigInstallProfileUnmetDependenciesTest\\:\\:assertErrorSummaries\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/config/tests/src/Functional/ConfigInstallProfileUnmetDependenciesTest.php', @@ -16344,30 +16188,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config\\\\Functional\\\\ConfigInstallProfileUnmetDependenciesTest\\:\\:copyTestingOverrides\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config/tests/src/Functional/ConfigInstallProfileUnmetDependenciesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config\\\\Functional\\\\ConfigInstallProfileUnmetDependenciesTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config/tests/src/Functional/ConfigInstallProfileUnmetDependenciesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config\\\\Functional\\\\ConfigInstallProfileUnmetDependenciesTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config/tests/src/Functional/ConfigInstallProfileUnmetDependenciesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config\\\\Functional\\\\ConfigInstallProfileUnmetDependenciesTest\\:\\:setUpSite\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config/tests/src/Functional/ConfigInstallProfileUnmetDependenciesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\config\\\\Functional\\\\ConfigInstallProfileUnmetDependenciesTest\\:\\:updateRequirementsProblem\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/config/tests/src/Functional/ConfigInstallProfileUnmetDependenciesTest.php', @@ -16668,102 +16488,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationInstallTest\\:\\:setUpLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationListUiTest\\:\\:doBlockListTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationListUiTest\\:\\:doContactFormsListTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationListUiTest\\:\\:doContentTypeListTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationListUiTest\\:\\:doCustomContentTypeListTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationListUiTest\\:\\:doDateFormatListTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationListUiTest\\:\\:doFieldListTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationListUiTest\\:\\:doFormatsListTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationListUiTest\\:\\:doImageStyleListTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationListUiTest\\:\\:doLanguageListTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationListUiTest\\:\\:doMenuListTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationListUiTest\\:\\:doResponsiveImageListTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationListUiTest\\:\\:doSettingsPageTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationListUiTest\\:\\:doShortcutListTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationListUiTest\\:\\:doUserRoleListTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationListUiTest\\:\\:doVocabularyListTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationUiTestBase\\:\\:assertMailPattern\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/config_translation/tests/src/Functional/ConfigTranslationUiTestBase.php', @@ -16818,18 +16542,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Unit\\\\TestConfigNamesMapper\\:\\:setConfigFactory\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\config_translation\\\\Unit\\\\TestConfigNamesMapper\\:\\:setConfigNames\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Function contact_entity_extra_field_info\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/contact/contact.module', @@ -17130,24 +16842,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\contact\\\\Functional\\\\ContactPersonalTest\\:\\:checkContactAccess\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/contact/tests/src/Functional/ContactPersonalTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\contact\\\\Functional\\\\ContactPersonalTest\\:\\:enablePageCaching\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/contact/tests/src/Functional/ContactPersonalTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\contact\\\\Functional\\\\ContactSitewideTest\\:\\:addContactForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/contact/tests/src/Functional/ContactSitewideTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\contact\\\\Functional\\\\ContactSitewideTest\\:\\:assertFieldDoesNotExist\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/contact/tests/src/Functional/ContactSitewideTest.php', @@ -17178,12 +16878,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\contact\\\\Functional\\\\ContactSitewideTest\\:\\:deleteContactForms\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/contact/tests/src/Functional/ContactSitewideTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\contact\\\\Functional\\\\ContactSitewideTest\\:\\:fieldUIAddExistingField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/contact/tests/src/Functional/ContactSitewideTest.php', @@ -17202,18 +16896,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\contact\\\\Functional\\\\ContactSitewideTest\\:\\:submitContact\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/contact/tests/src/Functional/ContactSitewideTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\contact\\\\Functional\\\\ContactSitewideTest\\:\\:updateContactForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/contact/tests/src/Functional/ContactSitewideTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\contact\\\\Functional\\\\Rest\\\\ContactFormJsonAnonTest\\:\\:assertAuthenticationEdgeCases\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/contact/tests/src/Functional/Rest/ContactFormJsonAnonTest.php', @@ -18156,12 +17838,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\content_moderation\\\\Functional\\\\ViewsModerationStateFilterTest\\:\\:executeAndAssertIdenticalResultset\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\content_moderation\\\\Functional\\\\WorkspaceContentModerationIntegrationTest\\:\\:isLabelInContentOverview\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_moderation/tests/src/Functional/WorkspaceContentModerationIntegrationTest.php', @@ -18426,12 +18102,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\content_moderation\\\\Kernel\\\\EntityOperationsTest\\:\\:createNodeType\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/content_moderation/tests/src/Kernel/EntityOperationsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\content_moderation\\\\Kernel\\\\EntityStateChangeValidationTest\\:\\:addEntityTypeAndBundleToWorkflow\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php', @@ -18462,12 +18132,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\content_moderation\\\\Kernel\\\\EntityTypeInfoTest\\:\\:enableModeration\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\content_moderation\\\\Kernel\\\\InitialStateTest\\:\\:addEntityTypeAndBundleToWorkflow\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_moderation/tests/src/Kernel/InitialStateTest.php', @@ -18588,12 +18252,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\content_moderation\\\\Kernel\\\\WorkspacesContentModerationStateTest\\:\\:addEntityTypeAndBundleToWorkflow\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\content_moderation\\\\Kernel\\\\WorkspacesContentModerationStateTest\\:\\:assertWorkspaceAssociation\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php', @@ -18648,12 +18306,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\content_moderation\\\\Unit\\\\ContentModerationRouteSubscriberTest\\:\\:setupEntityTypes\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/content_moderation/tests/src/Unit/ContentModerationRouteSubscriberTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\content_moderation\\\\Unit\\\\ContentPreprocessTest\\:\\:routeNodeProvider\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_moderation/tests/src/Unit/ContentPreprocessTest.php', @@ -19134,12 +18786,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\content_translation\\\\Functional\\\\ContentTranslationMetadataFieldsTest\\:\\:setupBundle\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/content_translation/tests/src/Functional/ContentTranslationMetadataFieldsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\content_translation\\\\Functional\\\\ContentTranslationOperationsTest\\:\\:disableBundleTranslation\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_translation/tests/src/Functional/ContentTranslationOperationsTest.php', @@ -19176,12 +18822,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\content_translation\\\\Functional\\\\ContentTranslationRevisionTranslationDeletionTest\\:\\:doTestOverview\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/content_translation/tests/src/Functional/ContentTranslationRevisionTranslationDeletionTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\content_translation\\\\Functional\\\\ContentTranslationSettingsTest\\:\\:addDefaultCommentField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php', @@ -19224,12 +18864,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\content_translation\\\\Functional\\\\ContentTranslationSyncImageTest\\:\\:setupTestFields\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/content_translation/tests/src/Functional/ContentTranslationSyncImageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\content_translation\\\\Functional\\\\ContentTranslationTestBase\\:\\:enableTranslation\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php', @@ -19392,12 +19026,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\content_translation\\\\Functional\\\\ContentTranslationUntranslatableFieldsTest\\:\\:setupTestFields\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/content_translation/tests/src/Functional/ContentTranslationUntranslatableFieldsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\content_translation\\\\Functional\\\\ContentTranslationWorkflowsTest\\:\\:assertCacheContext\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php', @@ -19428,12 +19056,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\content_translation\\\\Functional\\\\ContentTranslationWorkflowsTest\\:\\:doTestWorkflows\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\content_translation\\\\Functional\\\\ContentTranslationWorkflowsTest\\:\\:enablePageCaching\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php', @@ -19446,30 +19068,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\content_translation\\\\Functional\\\\ContentTranslationWorkflowsTest\\:\\:setupEntity\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\content_translation\\\\Functional\\\\ContentTranslationWorkflowsTest\\:\\:setupUsers\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\content_translation\\\\Functional\\\\Views\\\\TranslationLinkTest\\:\\:getTranslatorPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_translation/tests/src/Functional/Views/TranslationLinkTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\content_translation\\\\Kernel\\\\ContentTranslationFieldSyncRevisionTest\\:\\:setUntranslatableFieldWidgetsDisplay\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/content_translation/tests/src/Kernel/ContentTranslationFieldSyncRevisionTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\content_translation\\\\Kernel\\\\Plugin\\\\migrate\\\\source\\\\d7\\\\EntityTranslationSettingsTest\\:\\:providerSource\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_translation/tests/src/Kernel/Plugin/migrate/source/d7/EntityTranslationSettingsTest.php', @@ -19583,12 +19187,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/modules/contextual/tests/src/FunctionalJavascript/ContextualLinksTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\contextual\\\\FunctionalJavascript\\\\EditModeTest\\:\\:pressToolbarEditButton\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php', -]; -$ignoreErrors[] = [ // identifier: variable.undefined 'message' => '#^Variable \\$unrestricted_tab_count might not be defined\\.$#', 'count' => 1, @@ -19704,12 +19302,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\datetime\\\\Kernel\\\\DateTimeFormInjectionTest\\:\\:submitForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/datetime/tests/src/Kernel/DateTimeFormInjectionTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\datetime\\\\Kernel\\\\DateTimeFormInjectionTest\\:\\:validateForm\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/datetime/tests/src/Kernel/DateTimeFormInjectionTest.php', @@ -19746,30 +19338,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\datetime\\\\Kernel\\\\Views\\\\FilterDateTest\\:\\:updateNodesDateFieldsValues\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/datetime/tests/src/Kernel/Views/FilterDateTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\datetime\\\\Kernel\\\\Views\\\\FilterDateTimeTest\\:\\:_testBetween\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\datetime\\\\Kernel\\\\Views\\\\FilterDateTimeTest\\:\\:_testExact\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\datetime\\\\Kernel\\\\Views\\\\FilterDateTimeTest\\:\\:_testOffset\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\datetime\\\\Unit\\\\Plugin\\\\migrate\\\\field\\\\DateFieldTest\\:\\:providerTestDefineValueProcessPipeline\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/datetime/tests/src/Unit/Plugin/migrate/field/DateFieldTest.php', @@ -19980,12 +19548,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\dblog\\\\Functional\\\\DbLogResourceTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/dblog/tests/src/Functional/DbLogResourceTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\dblog\\\\Functional\\\\DbLogTest\\:\\:assertBreadcrumb\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/dblog/tests/src/Functional/DbLogTest.php', @@ -20004,84 +19566,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\dblog\\\\Functional\\\\DbLogTest\\:\\:clearLogsEntries\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/dblog/tests/src/Functional/DbLogTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\dblog\\\\Functional\\\\DbLogTest\\:\\:doNode\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/dblog/tests/src/Functional/DbLogTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\dblog\\\\Functional\\\\DbLogTest\\:\\:doUser\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/dblog/tests/src/Functional/DbLogTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\dblog\\\\Functional\\\\DbLogTest\\:\\:filterLogsEntries\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/dblog/tests/src/Functional/DbLogTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\dblog\\\\Functional\\\\DbLogTest\\:\\:generateLogEntries\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/dblog/tests/src/Functional/DbLogTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\dblog\\\\Functional\\\\DbLogTest\\:\\:verifyBreadcrumbs\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/dblog/tests/src/Functional/DbLogTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\dblog\\\\Functional\\\\DbLogTest\\:\\:verifyEvents\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/dblog/tests/src/Functional/DbLogTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\dblog\\\\Functional\\\\DbLogTest\\:\\:verifyLinkEscaping\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/dblog/tests/src/Functional/DbLogTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\dblog\\\\Functional\\\\DbLogTest\\:\\:verifyReports\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/dblog/tests/src/Functional/DbLogTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\dblog\\\\Functional\\\\DbLogTest\\:\\:verifyRowLimit\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/dblog/tests/src/Functional/DbLogTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\dblog\\\\Functional\\\\DbLogTest\\:\\:verifySort\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/dblog/tests/src/Functional/DbLogTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\dblog\\\\Functional\\\\DbLogViewsTest\\:\\:filterLogsEntries\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/dblog/tests/src/Functional/DbLogViewsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\dblog\\\\Kernel\\\\DbLogFormInjectionTest\\:\\:submitForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/dblog/tests/src/Kernel/DbLogFormInjectionTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\dblog\\\\Kernel\\\\DbLogFormInjectionTest\\:\\:validateForm\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/dblog/tests/src/Kernel/DbLogFormInjectionTest.php', @@ -20328,24 +19818,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\editor\\\\Functional\\\\EditorAdminTest\\:\\:addEditorToNewFormat\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/editor/tests/src/Functional/EditorAdminTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\editor\\\\Functional\\\\EditorAdminTest\\:\\:enableUnicornEditor\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/editor/tests/src/Functional/EditorAdminTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\editor\\\\Functional\\\\EditorAdminTest\\:\\:verifyUnicornEditorConfiguration\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/editor/tests/src/Functional/EditorAdminTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\editor\\\\Functional\\\\Rest\\\\EditorJsonAnonTest\\:\\:assertAuthenticationEdgeCases\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/editor/tests/src/Functional/Rest/EditorJsonAnonTest.php', @@ -20910,12 +20382,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Functional\\\\EntityReference\\\\EntityReferenceFieldTranslatedReferenceViewTest\\:\\:createContent\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Functional\\\\EntityReference\\\\EntityReferenceFieldTranslatedReferenceViewTest\\:\\:createNotTranslatedReferencedEntity\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php', @@ -20940,30 +20406,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Functional\\\\EntityReference\\\\EntityReferenceFieldTranslatedReferenceViewTest\\:\\:enableTranslation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Functional\\\\EntityReference\\\\EntityReferenceFieldTranslatedReferenceViewTest\\:\\:setUpContentTypes\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Functional\\\\EntityReference\\\\EntityReferenceFieldTranslatedReferenceViewTest\\:\\:setUpEntityReferenceField\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Functional\\\\EntityReference\\\\EntityReferenceFieldTranslatedReferenceViewTest\\:\\:setUpLanguages\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Functional\\\\EntityReference\\\\EntityReferenceIntegrationTest\\:\\:assertConfigEntityImport\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php', @@ -20994,12 +20436,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Functional\\\\FunctionalString\\\\StringFieldTest\\:\\:_testTextfieldWidgets\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Functional/FunctionalString/StringFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Functional\\\\MultipleWidgetFormTest\\:\\:widgetAlterTest\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field/tests/src/Functional/MultipleWidgetFormTest.php', @@ -21192,12 +20628,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Functional\\\\TranslationWebTest\\:\\:checkTranslationRevisions\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Functional/TranslationWebTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Functional\\\\Views\\\\FieldTestBase\\:\\:setUpFieldStorages\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field/tests/src/Functional/Views/FieldTestBase.php', @@ -21246,12 +20676,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\BulkDeleteTest\\:\\:checkHooksInvocations\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Kernel/BulkDeleteTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\Entity\\\\Update\\\\SqlContentEntityStorageSchemaColumnTest\\:\\:addBaseField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field/tests/src/Kernel/Entity/Update/SqlContentEntityStorageSchemaColumnTest.php', @@ -21438,12 +20862,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\EntityReference\\\\EntityReferenceSettingsTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\EntityReference\\\\Views\\\\EntityReferenceRelationshipTest\\:\\:createEntityReferenceField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field/tests/src/Kernel/EntityReference/Views/EntityReferenceRelationshipTest.php', @@ -21462,18 +20880,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\FieldCrudTest\\:\\:doFieldPropertyConstraintsTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Kernel/FieldCrudTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\FieldDefinitionIntegrityTest\\:\\:checkDisplayOption\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Kernel/FieldDefinitionIntegrityTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\FieldKernelTestBase\\:\\:assertFieldValues\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field/tests/src/Kernel/FieldKernelTestBase.php', @@ -21492,12 +20898,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\FieldTypePluginManagerTest\\:\\:enableAllCoreModules\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\KernelString\\\\StringFormatterTest\\:\\:grantPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field/tests/src/Kernel/KernelString/StringFormatterTest.php', @@ -21522,36 +20922,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\Migrate\\\\d6\\\\MigrateFieldInstanceLabelDescriptionTest\\:\\:migrateDumpAlter\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldInstanceLabelDescriptionTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\Migrate\\\\d7\\\\MigrateFieldInstanceLabelDescriptionTest\\:\\:migrateDumpAlter\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceLabelDescriptionTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\Migrate\\\\d7\\\\RollbackFieldInstanceTest\\:\\:executeRollback\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Kernel/Migrate/d7/RollbackFieldInstanceTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\Migrate\\\\d7\\\\RollbackFieldTest\\:\\:executeRollback\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Kernel/Migrate/d7/RollbackFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\Migrate\\\\d7\\\\RollbackViewModesTest\\:\\:executeRollback\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Kernel/Migrate/d7/RollbackViewModesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\Plugin\\\\migrate\\\\source\\\\d6\\\\FieldInstanceLabelDescriptionTranslationTest\\:\\:providerSource\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstanceLabelDescriptionTranslationTest.php', @@ -21636,42 +21006,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\Views\\\\HandlerFieldFieldTest\\:\\:createFields\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Kernel/Views/HandlerFieldFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\Views\\\\HandlerFieldFieldTest\\:\\:doTestFormatterSimpleFieldRender\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Kernel/Views/HandlerFieldFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\Views\\\\HandlerFieldFieldTest\\:\\:doTestInaccessibleFieldRender\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Kernel/Views/HandlerFieldFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\Views\\\\HandlerFieldFieldTest\\:\\:doTestMultipleFieldRender\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Kernel/Views/HandlerFieldFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\Views\\\\HandlerFieldFieldTest\\:\\:doTestSimpleFieldRender\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Kernel/Views/HandlerFieldFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Kernel\\\\Views\\\\HandlerFieldFieldTest\\:\\:prepareView\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field/tests/src/Kernel/Views/HandlerFieldFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\field\\\\Unit\\\\DependencyFieldItem\\:\\:calculateDependencies\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php', @@ -22440,54 +21774,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field_ui\\\\Functional\\\\ManageFieldsLifecycleTest\\:\\:addExistingField\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field_ui/tests/src/Functional/ManageFieldsLifecycleTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field_ui\\\\Functional\\\\ManageFieldsLifecycleTest\\:\\:addPersistentFieldStorage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field_ui/tests/src/Functional/ManageFieldsLifecycleTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field_ui\\\\Functional\\\\ManageFieldsLifecycleTest\\:\\:cardinalitySettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field_ui/tests/src/Functional/ManageFieldsLifecycleTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field_ui\\\\Functional\\\\ManageFieldsLifecycleTest\\:\\:createField\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field_ui/tests/src/Functional/ManageFieldsLifecycleTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field_ui\\\\Functional\\\\ManageFieldsLifecycleTest\\:\\:deleteField\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field_ui/tests/src/Functional/ManageFieldsLifecycleTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field_ui\\\\Functional\\\\ManageFieldsLifecycleTest\\:\\:fieldListAdminPage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field_ui/tests/src/Functional/ManageFieldsLifecycleTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field_ui\\\\Functional\\\\ManageFieldsLifecycleTest\\:\\:manageFieldsPage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field_ui/tests/src/Functional/ManageFieldsLifecycleTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\field_ui\\\\Functional\\\\ManageFieldsLifecycleTest\\:\\:updateField\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/field_ui/tests/src/Functional/ManageFieldsLifecycleTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\field_ui\\\\Functional\\\\ManageFieldsTest\\:\\:assertFieldDoesNotExist\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field_ui/tests/src/Functional/ManageFieldsTest.php', @@ -23208,24 +22494,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\file\\\\Functional\\\\DownloadTest\\:\\:checkUrl\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/file/tests/src/Functional/DownloadTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\file\\\\Functional\\\\DownloadTest\\:\\:doPrivateFileTransferTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/file/tests/src/Functional/DownloadTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\file\\\\Functional\\\\FileFieldAnonymousSubmissionTest\\:\\:doTestNodeWithFileWithoutTitle\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/file/tests/src/Functional/FileFieldAnonymousSubmissionTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\file\\\\Functional\\\\FileFieldDisplayTest\\:\\:assertFieldDoesNotExist\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/file/tests/src/Functional/FileFieldDisplayTest.php', @@ -23334,12 +22602,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\file\\\\Functional\\\\FileFieldWidgetTest\\:\\:doTestTemporaryFileRemovalExploit\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/file/tests/src/Functional/FileFieldWidgetTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\file\\\\Functional\\\\FileFieldWidgetTest\\:\\:fieldUIAddExistingField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/file/tests/src/Functional/FileFieldWidgetTest.php', @@ -23754,12 +23016,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\file\\\\Kernel\\\\Migrate\\\\d7\\\\MigratePrivateFileTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/file/tests/src/Kernel/Migrate/d7/MigratePrivateFileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\file\\\\Kernel\\\\Plugin\\\\Validation\\\\Constraint\\\\FileEncodingConstraintValidatorTest\\:\\:getInvalidEncodedPoFile\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/file/tests/src/Kernel/Plugin/Validation/Constraint/FileEncodingConstraintValidatorTest.php', @@ -24156,30 +23412,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\filter\\\\Functional\\\\FilterDefaultFormatTest\\:\\:resetFilterCaches\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\filter\\\\Functional\\\\FilterFormTest\\:\\:doFilterFormTestAsAdmin\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/filter/tests/src/Functional/FilterFormTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\filter\\\\Functional\\\\FilterFormTest\\:\\:doFilterFormTestAsNonAdmin\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/filter/tests/src/Functional/FilterFormTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\filter\\\\Functional\\\\FilterFormatAccessTest\\:\\:resetFilterCaches\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/filter/tests/src/Functional/FilterFormatAccessTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\filter\\\\Functional\\\\FilterHtmlImageSecureTest\\:\\:addDefaultCommentField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/filter/tests/src/Functional/FilterHtmlImageSecureTest.php', @@ -24276,24 +23508,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\filter\\\\Kernel\\\\FilterCaptionTwigDebugTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/filter/tests/src/Kernel/FilterCaptionTwigDebugTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\filter\\\\Kernel\\\\FilterCrudTest\\:\\:verifyTextFormat\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/filter/tests/src/Kernel/FilterCrudTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\filter\\\\Kernel\\\\Migrate\\\\d7\\\\MigrateFilterFormatTest\\:\\:migrateDumpAlter\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/filter/tests/src/Kernel/Migrate/d7/MigrateFilterFormatTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\filter\\\\Kernel\\\\Plugin\\\\migrate\\\\source\\\\d6\\\\FilterFormatTest\\:\\:providerSource\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/filter/tests/src/Kernel/Plugin/migrate/source/d6/FilterFormatTest.php', @@ -24498,12 +23712,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\help\\\\Functional\\\\HelpTest\\:\\:verifyHelp\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/help/tests/src/Functional/HelpTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\help\\\\Functional\\\\HelpTopicSearchTest\\:\\:cronRun\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/help/tests/src/Functional/HelpTopicSearchTest.php', @@ -24528,48 +23736,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\help\\\\Functional\\\\HelpTopicTest\\:\\:verifyBreadCrumb\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/help/tests/src/Functional/HelpTopicTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\help\\\\Functional\\\\HelpTopicTest\\:\\:verifyHelp\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/help/tests/src/Functional/HelpTopicTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\help\\\\Functional\\\\HelpTopicsSyntaxTest\\:\\:validateHtml\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/help/tests/src/Functional/HelpTopicsSyntaxTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\help\\\\Functional\\\\HelpTopicsSyntaxTest\\:\\:verifyBadTopic\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/help/tests/src/Functional/HelpTopicsSyntaxTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\help\\\\Functional\\\\HelpTopicsSyntaxTest\\:\\:verifyTopic\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/help/tests/src/Functional/HelpTopicsSyntaxTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\help\\\\Kernel\\\\HelpEmptyPageTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/help/tests/src/Kernel/HelpEmptyPageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\help\\\\Unit\\\\HelpTopicTwigLoaderTest\\:\\:setUpVfs\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/help/tests/src/Unit/HelpTopicTwigLoaderTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\help\\\\Unit\\\\HelpTopicTwigTest\\:\\:getTwigMock\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/help/tests/src/Unit/HelpTopicTwigTest.php', @@ -25284,12 +24450,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\image\\\\Functional\\\\ImageFieldDisplayTest\\:\\:_testImageFieldFormatters\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/image/tests/src/Functional/ImageFieldDisplayTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\image\\\\Functional\\\\ImageFieldDisplayTest\\:\\:assertCacheContext\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/image/tests/src/Functional/ImageFieldDisplayTest.php', @@ -25380,12 +24540,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\image\\\\Functional\\\\ImageStylesPathAndUrlTest\\:\\:doImageStyleUrlAndPathTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/image/tests/src/Functional/ImageStylesPathAndUrlTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\image\\\\Functional\\\\Rest\\\\ImageStyleJsonAnonTest\\:\\:assertAuthenticationEdgeCases\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/image/tests/src/Functional/Rest/ImageStyleJsonAnonTest.php', @@ -25488,12 +24642,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\image\\\\Kernel\\\\ImageStyleCustomStreamWrappersTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/image/tests/src/Kernel/ImageStyleCustomStreamWrappersTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\image\\\\Kernel\\\\Migrate\\\\d6\\\\MigrateImageTest\\:\\:prepareMigration\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageTest.php', @@ -26118,48 +25266,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ActionTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/ActionTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\BaseFieldOverrideTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/BaseFieldOverrideTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\BlockContentTest\\:\\:createEntityReferenceField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/BlockContentTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\BlockContentTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/BlockContentTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\BlockContentTest\\:\\:setUpRevisionAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/BlockContentTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\BlockContentTypeTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/BlockContentTypeTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\BlockTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/BlockTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\CommentTest\\:\\:addDefaultCommentField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/CommentTest.php', @@ -26172,96 +25284,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\CommentTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/CommentTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\CommentTypeTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/CommentTypeTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ConfigTestTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/ConfigTestTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ConfigurableLanguageTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/ConfigurableLanguageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ContactFormTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/ContactFormTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ContentLanguageSettingsTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/ContentLanguageSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\DateFormatTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/DateFormatTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\EditorTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/EditorTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\EntityFormDisplayTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/EntityFormDisplayTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\EntityFormModeTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/EntityFormModeTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\EntityTestComputedFieldTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/EntityTestComputedFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\EntityTestMapFieldTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/EntityTestMapFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\EntityTestTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/EntityTestTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\EntityViewDisplayTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/EntityViewDisplayTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\EntityViewModeTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/EntityViewModeTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\EntryPointTest\\:\\:grantPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/EntryPointTest.php', @@ -26274,78 +25296,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\FieldConfigTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/FieldConfigTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\FieldStorageConfigTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/FieldStorageConfigTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\FileTest\\:\\:createEntityReferenceField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/FileTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\FileTest\\:\\:makeCurrentUserFileOwner\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/FileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\FileTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/FileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\FileUploadTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/FileUploadTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\FileUploadTest\\:\\:testFileUploadInvalidFileType\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/FileUploadTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\FileUploadTest\\:\\:testFileUploadLargerFileSize\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/FileUploadTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\FileUploadTest\\:\\:testFileUploadMaliciousExtension\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/FileUploadTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\FileUploadTest\\:\\:testPostFileUploadInvalidHeaders\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/FileUploadTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\FilterFormatTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/FilterFormatTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ImageStyleTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/ImageStyleTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\InternalEntitiesTest\\:\\:createEntityReferenceField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/InternalEntitiesTest.php', @@ -26400,90 +25356,24 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\MediaTest\\:\\:doTestRelationshipMutation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/MediaTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\MediaTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/MediaTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\MediaTest\\:\\:setUpRevisionAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/MediaTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\MediaTypeTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/MediaTypeTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\MenuLinkContentTest\\:\\:createEntityReferenceField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/MenuLinkContentTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\MenuLinkContentTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/MenuLinkContentTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\MenuTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/MenuTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\MessageTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/MessageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\NodeTest\\:\\:createEntityReferenceField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/NodeTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\NodeTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/NodeTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\NodeTest\\:\\:setUpRevisionAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/NodeTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\NodeTest\\:\\:setWaitForTerminate\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/NodeTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\NodeTypeTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/NodeTypeTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\PathAliasTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/PathAliasTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ResourceTestBase\\:\\:addEntityTypeAndBundleToWorkflow\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/ResourceTestBase.php', @@ -26628,12 +25518,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ResponsiveImageStyleTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/ResponsiveImageStyleTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\RestJsonApiUnsupported\\:\\:assertAuthenticationEdgeCases\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/RestJsonApiUnsupported.php', @@ -26652,42 +25536,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\RestResourceConfigTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/RestResourceConfigTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\RoleTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/RoleTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\SearchPageTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/SearchPageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ShortcutSetTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/ShortcutSetTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ShortcutTest\\:\\:createEntityReferenceField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/ShortcutTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ShortcutTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/ShortcutTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\TermTest\\:\\:createEntityReferenceField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/TermTest.php', @@ -26700,60 +25554,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\TermTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/TermTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\TermTest\\:\\:setUpRevisionAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/TermTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\UserTest\\:\\:sendDeleteRequestForUser\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/UserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\UserTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/UserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ViewTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/ViewTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\VocabularyTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/VocabularyTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\WorkflowTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/WorkflowTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Kernel\\\\Context\\\\FieldResolverTest\\:\\:makeBundle\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Kernel/Context/FieldResolverTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Kernel\\\\Context\\\\FieldResolverTest\\:\\:makeField\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Kernel/Context/FieldResolverTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Kernel\\\\Context\\\\FieldResolverTest\\:\\:resolveInternalEntityQueryPathErrorProvider\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Kernel/Context/FieldResolverTest.php', @@ -26862,24 +25662,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Kernel\\\\Query\\\\FilterTest\\:\\:savePaintingType\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Kernel\\\\Query\\\\FilterTest\\:\\:savePaintings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Kernel\\\\Query\\\\FilterTest\\:\\:setUpSchemas\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Kernel\\\\ResourceType\\\\RelatedResourceTypesTest\\:\\:getRelatableResourceTypesByFieldProvider\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Kernel/ResourceType/RelatedResourceTypesTest.php', @@ -26892,12 +25674,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Unit\\\\JsonApiResource\\\\LinkTest\\:\\:mockUrlAssembler\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/jsonapi/tests/src/Unit/JsonApiResource/LinkTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\jsonapi\\\\Unit\\\\JsonApiSpecTest\\:\\:providerTestIsValidCustomQueryParameter\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Unit/JsonApiSpecTest.php', @@ -27738,36 +26514,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\LanguageConfigurationTest\\:\\:checkConfigurableLanguageWeight\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Functional/LanguageConfigurationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\LanguageNegotiationContentEntityTest\\:\\:createTranslatableEntity\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\LanguageNegotiationContentEntityTest\\:\\:setCurrentRequestForRoute\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\LanguageNegotiationInfoTest\\:\\:checkFixedLanguageTypes\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\LanguageNegotiationInfoTest\\:\\:stateSet\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\LanguageSelectorTranslatableTest\\:\\:disableBundleTranslation\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php', @@ -27780,66 +26526,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\LanguageSwitchingTest\\:\\:createHomePage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Functional/LanguageSwitchingTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\LanguageSwitchingTest\\:\\:doTestHomePageLinks\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Functional/LanguageSwitchingTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\LanguageSwitchingTest\\:\\:doTestLanguageBlock404\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Functional/LanguageSwitchingTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\LanguageSwitchingTest\\:\\:doTestLanguageBlockAnonymous\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Functional/LanguageSwitchingTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\LanguageSwitchingTest\\:\\:doTestLanguageBlockAuthenticated\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Functional/LanguageSwitchingTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\LanguageSwitchingTest\\:\\:doTestLanguageLinkActiveClassAnonymous\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Functional/LanguageSwitchingTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\LanguageSwitchingTest\\:\\:doTestLanguageLinkActiveClassAuthenticated\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Functional/LanguageSwitchingTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\LanguageSwitchingTest\\:\\:saveNativeLanguageName\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Functional/LanguageSwitchingTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\LanguageUILanguageNegotiationTest\\:\\:doRunTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\LanguageUrlRewritingTest\\:\\:checkUrl\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\Rest\\\\ConfigurableLanguageJsonAnonTest\\:\\:assertAuthenticationEdgeCases\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/language/tests/src/Functional/Rest/ConfigurableLanguageJsonAnonTest.php', @@ -28020,42 +26706,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Kernel\\\\EntityDefaultLanguageTest\\:\\:createContentType\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Kernel/EntityDefaultLanguageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Kernel\\\\EntityUrlLanguageTest\\:\\:createTranslatableEntity\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Kernel\\\\EntityUrlLanguageTest\\:\\:setCurrentRequestForRoute\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Kernel\\\\Migrate\\\\d6\\\\MigrateDefaultLanguageTest\\:\\:setDefaultLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Kernel/Migrate/d6/MigrateDefaultLanguageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Kernel\\\\Migrate\\\\d7\\\\MigrateDefaultLanguageTest\\:\\:setDefaultLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Kernel/Migrate/d7/MigrateDefaultLanguageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Kernel\\\\Migrate\\\\d7\\\\MigrateLanguageContentCommentSettingsNoEntityTranslationTest\\:\\:migrateDumpAlter\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentCommentSettingsNoEntityTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\language\\\\Kernel\\\\Plugin\\\\migrate\\\\source\\\\LanguageTest\\:\\:providerSource\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/language/tests/src/Kernel/Plugin/migrate/source/LanguageTest.php', @@ -29154,30 +27804,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\Functional\\\\LayoutBuilderDefaultValuesTest\\:\\:addImageFields\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/Functional/LayoutBuilderDefaultValuesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\Functional\\\\LayoutBuilderDefaultValuesTest\\:\\:addTextFields\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/Functional/LayoutBuilderDefaultValuesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\Functional\\\\LayoutBuilderDefaultValuesTest\\:\\:assertNodeWithDefaultValues\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/Functional/LayoutBuilderDefaultValuesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\Functional\\\\LayoutBuilderDefaultValuesTest\\:\\:assertNodeWithValues\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/Functional/LayoutBuilderDefaultValuesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\Functional\\\\LayoutBuilderDefaultValuesTest\\:\\:createImageField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/layout_builder/tests/src/Functional/LayoutBuilderDefaultValuesTest.php', @@ -29196,12 +27822,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\Functional\\\\LayoutBuilderFieldBlockEntityReferenceCacheTagsTest\\:\\:verifyPageCacheContainsTags\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/Functional/LayoutBuilderFieldBlockEntityReferenceCacheTagsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\Functional\\\\LayoutBuilderTestBase\\:\\:assertFieldDoesNotExist\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/layout_builder/tests/src/Functional/LayoutBuilderTestBase.php', @@ -29238,36 +27858,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\Functional\\\\LayoutBuilderTranslationTest\\:\\:addEntityTranslation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\Functional\\\\LayoutBuilderTranslationTest\\:\\:addLayoutOverride\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\Functional\\\\LayoutBuilderTranslationTest\\:\\:getTranslatorPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\Functional\\\\LayoutBuilderTranslationTest\\:\\:setUpEntities\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\Functional\\\\LayoutBuilderTranslationTest\\:\\:setUpViewDisplay\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\Functional\\\\LayoutSectionTest\\:\\:providerTestLayoutSectionFormatter\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/layout_builder/tests/src/Functional/LayoutSectionTest.php', @@ -29424,12 +28020,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\ContextualLinksTest\\:\\:addBlock\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/ContextualLinksTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\ContextualLinksTest\\:\\:assertCacheContext\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/ContextualLinksTest.php', @@ -29448,12 +28038,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\ContextualLinksTest\\:\\:assertCorrectContextualLinks\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/ContextualLinksTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\ContextualLinksTest\\:\\:assertNoCacheContext\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/ContextualLinksTest.php', @@ -29472,36 +28056,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\InlineBlockPrivateFilesTest\\:\\:addInlineFileBlockToLayout\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\InlineBlockPrivateFilesTest\\:\\:attachFileField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\InlineBlockPrivateFilesTest\\:\\:attachFileToBlockForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\InlineBlockPrivateFilesTest\\:\\:createNewNodeRevision\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\InlineBlockPrivateFilesTest\\:\\:replaceFileInBlock\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\InlineBlockTest\\:\\:layoutNoSaveProvider\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTest.php', @@ -29562,60 +28122,18 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\LayoutBuilderDisableInteractionsTest\\:\\:addBlock\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\LayoutBuilderDisableInteractionsTest\\:\\:clickContextualLink\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\LayoutBuilderDisableInteractionsTest\\:\\:movePointerTo\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\LayoutBuilderDisableInteractionsTest\\:\\:toggleContextualTriggerVisibility\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\LayoutBuilderNestedFormUiTest\\:\\:addFormBlock\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderNestedFormUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\LayoutBuilderTest\\:\\:clickContextualLink\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\LayoutBuilderTest\\:\\:enableLayoutsForBundle\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\LayoutBuilderTest\\:\\:markCurrentPage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\LayoutBuilderTest\\:\\:openAddBlockForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\LayoutBuilderTest\\:\\:sortableAfter\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderTest.php', @@ -29658,18 +28176,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\MoveBlockFormTest\\:\\:moveBlockWithKeyboard\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/MoveBlockFormTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\MoveBlockFormTest\\:\\:openBodyMoveForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/MoveBlockFormTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\layout_builder\\\\FunctionalJavascript\\\\MoveBlockFormTest\\:\\:toggleContextualTriggerVisibility\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/layout_builder/tests/src/FunctionalJavascript/MoveBlockFormTest.php', @@ -29964,42 +28470,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\link\\\\Functional\\\\LinkFieldTest\\:\\:doTestEditNonNodeEntityLink\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/link/tests/src/Functional/LinkFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\link\\\\Functional\\\\LinkFieldTest\\:\\:doTestLinkFormatter\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/link/tests/src/Functional/LinkFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\link\\\\Functional\\\\LinkFieldTest\\:\\:doTestLinkSeparateFormatter\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/link/tests/src/Functional/LinkFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\link\\\\Functional\\\\LinkFieldTest\\:\\:doTestLinkTitle\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/link/tests/src/Functional/LinkFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\link\\\\Functional\\\\LinkFieldTest\\:\\:doTestLinkTypeOnLinkWidget\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/link/tests/src/Functional/LinkFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\link\\\\Functional\\\\LinkFieldTest\\:\\:doTestURLValidation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/link/tests/src/Functional/LinkFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\link\\\\Functional\\\\LinkFieldUITest\\:\\:assertFieldDoesNotExist\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/link/tests/src/Functional/LinkFieldUITest.php', @@ -30042,12 +28512,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\link\\\\Functional\\\\LinkFieldUITest\\:\\:runFieldUIItem\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/link/tests/src/Functional/LinkFieldUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\link\\\\FunctionalJavascript\\\\LinkFieldFormStatesTest\\:\\:linkFieldFormStatesData\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/link/tests/src/FunctionalJavascript/LinkFieldFormStatesTest.php', @@ -31038,12 +29502,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Functional\\\\LocaleImportFunctionalTest\\:\\:importPoFile\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Functional\\\\LocaleLocaleLookupTest\\:\\:setWaitForTerminate\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php', @@ -31086,12 +29544,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Functional\\\\LocalePluralFormatTest\\:\\:importPoFile\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/locale/tests/src/Functional/LocalePluralFormatTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Functional\\\\LocaleTranslatedSchemaDefinitionTest\\:\\:assertErrorSummaries\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/locale/tests/src/Functional/LocaleTranslatedSchemaDefinitionTest.php', @@ -31164,90 +29616,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Functional\\\\LocalesLocationAddIndexUpdateTest\\:\\:setDatabaseDumpFiles\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/locale/tests/src/Functional/LocalesLocationAddIndexUpdateTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Kernel\\\\LocaleConfigSubscriberForeignTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Kernel\\\\LocaleConfigSubscriberForeignTest\\:\\:saveLanguageActive\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Kernel\\\\LocaleConfigSubscriberForeignTest\\:\\:setUpLanguages\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Kernel\\\\LocaleConfigSubscriberForeignTest\\:\\:setUpLocale\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Kernel\\\\LocaleConfigSubscriberTest\\:\\:deleteLanguageOverride\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Kernel\\\\LocaleConfigSubscriberTest\\:\\:deleteLocaleTranslationData\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Kernel\\\\LocaleConfigSubscriberTest\\:\\:saveLanguageOverride\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Kernel\\\\LocaleConfigSubscriberTest\\:\\:saveLocaleTranslationData\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Kernel\\\\LocaleConfigSubscriberTest\\:\\:setUpDefaultLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Kernel\\\\LocaleConfigSubscriberTest\\:\\:setUpLanguages\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Kernel\\\\LocaleConfigSubscriberTest\\:\\:setUpLocale\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Kernel\\\\LocaleConfigSubscriberTest\\:\\:setUpNoTranslation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Kernel\\\\LocaleConfigSubscriberTest\\:\\:setUpTranslation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\locale\\\\Kernel\\\\Migrate\\\\MigrateLocaleConfigsTest\\:\\:assertConfigSchema\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/locale/tests/src/Kernel/Migrate/MigrateLocaleConfigsTest.php', @@ -31902,12 +30270,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\media\\\\Functional\\\\MediaTranslationUITest\\:\\:setupBundle\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/media/tests/src/Functional/MediaTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\media\\\\Functional\\\\MediaTypeCreationTest\\:\\:providerMediaTypeCreationForm\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/media/tests/src/Functional/MediaTypeCreationTest.php', @@ -32226,12 +30588,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\media\\\\FunctionalJavascript\\\\MediaSourceOEmbedVideoTest\\:\\:initConfig\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/media/tests/src/FunctionalJavascript/MediaSourceOEmbedVideoTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\media\\\\FunctionalJavascript\\\\MediaSourceOEmbedVideoTest\\:\\:lockHttpClientToFixtures\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/media/tests/src/FunctionalJavascript/MediaSourceOEmbedVideoTest.php', @@ -32262,54 +30618,24 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\media\\\\FunctionalJavascript\\\\MediaStandardProfileTest\\:\\:audioTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\media\\\\FunctionalJavascript\\\\MediaStandardProfileTest\\:\\:documentTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\media\\\\FunctionalJavascript\\\\MediaStandardProfileTest\\:\\:hijackProviderEndpoints\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\media\\\\FunctionalJavascript\\\\MediaStandardProfileTest\\:\\:imageTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\media\\\\FunctionalJavascript\\\\MediaStandardProfileTest\\:\\:lockHttpClientToFixtures\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\media\\\\FunctionalJavascript\\\\MediaStandardProfileTest\\:\\:remoteVideoTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\media\\\\FunctionalJavascript\\\\MediaStandardProfileTest\\:\\:useFixtureProviders\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\media\\\\FunctionalJavascript\\\\MediaStandardProfileTest\\:\\:videoTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\media\\\\Kernel\\\\MediaAccessControlHandlerTest\\:\\:grantPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/media/tests/src/Kernel/MediaAccessControlHandlerTest.php', @@ -32376,12 +30702,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\media\\\\Kernel\\\\MediaSourceTest\\:\\:createMediaTypeViaForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/media/tests/src/Kernel/MediaSourceTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\media\\\\Kernel\\\\MediaThumbnailFormatterTest\\:\\:createEntityReferenceField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/media/tests/src/Kernel/MediaThumbnailFormatterTest.php', @@ -32784,12 +31104,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\media_library\\\\FunctionalJavascript\\\\EntityReferenceWidgetTest\\:\\:sortableUpdate\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\media_library\\\\FunctionalJavascript\\\\MediaLibraryTestBase\\:\\:addMediaFileToField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php', @@ -33114,12 +31428,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\menu_link_content\\\\Functional\\\\MenuLinkContentTranslationUITest\\:\\:doTestTranslationEdit\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/menu_link_content/tests/src/Functional/MenuLinkContentTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\menu_link_content\\\\Functional\\\\Rest\\\\MenuLinkContentJsonAnonTest\\:\\:assertAuthenticationEdgeCases\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/menu_link_content/tests/src/Functional/Rest/MenuLinkContentJsonAnonTest.php', @@ -33510,108 +31818,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\Functional\\\\MenuUiTest\\:\\:addCustomMenuCRUD\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/menu_ui/tests/src/Functional/MenuUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\Functional\\\\MenuUiTest\\:\\:addInvalidMenuLink\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/menu_ui/tests/src/Functional/MenuUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\Functional\\\\MenuUiTest\\:\\:assertMenuLink\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/menu_ui/tests/src/Functional/MenuUiTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\Functional\\\\MenuUiTest\\:\\:checkInvalidParentMenuLinks\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/menu_ui/tests/src/Functional/MenuUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\Functional\\\\MenuUiTest\\:\\:deleteCustomMenu\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/menu_ui/tests/src/Functional/MenuUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\Functional\\\\MenuUiTest\\:\\:deleteMenuLink\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/menu_ui/tests/src/Functional/MenuUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\Functional\\\\MenuUiTest\\:\\:disableMenuLink\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/menu_ui/tests/src/Functional/MenuUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\Functional\\\\MenuUiTest\\:\\:doMenuLinkFormDefaultsTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/menu_ui/tests/src/Functional/MenuUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\Functional\\\\MenuUiTest\\:\\:doMenuTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/menu_ui/tests/src/Functional/MenuUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\Functional\\\\MenuUiTest\\:\\:doTestMenuBlock\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/menu_ui/tests/src/Functional/MenuUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\Functional\\\\MenuUiTest\\:\\:enableMenuLink\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/menu_ui/tests/src/Functional/MenuUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\Functional\\\\MenuUiTest\\:\\:modifyMenuLink\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/menu_ui/tests/src/Functional/MenuUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\Functional\\\\MenuUiTest\\:\\:moveMenuLink\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/menu_ui/tests/src/Functional/MenuUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\Functional\\\\MenuUiTest\\:\\:resetMenuLink\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/menu_ui/tests/src/Functional/MenuUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\Functional\\\\MenuUiTest\\:\\:toggleMenuLink\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/menu_ui/tests/src/Functional/MenuUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\Functional\\\\MenuUiTest\\:\\:verifyAccess\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/menu_ui/tests/src/Functional/MenuUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\Functional\\\\MenuUiTest\\:\\:verifyMenuLink\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/menu_ui/tests/src/Functional/MenuUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\menu_ui\\\\FunctionalJavascript\\\\MenuUiJavascriptTest\\:\\:assertMenuLink\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/menu_ui/tests/src/FunctionalJavascript/MenuUiJavascriptTest.php', @@ -34378,89 +32590,11 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\MigrateEntityContentBaseTest\\:\\:createDestination\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\MigrateEntityContentBaseTest\\:\\:performStubTest\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\MigrateEntityContentValidationTest\\:\\:mapMessageRecorder\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\MigrateEntityContentValidationTest\\:\\:runImport\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\MigrateEventsTest\\:\\:mapDeleteEventRecorder\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateEventsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\MigrateEventsTest\\:\\:mapSaveEventRecorder\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateEventsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\MigrateEventsTest\\:\\:postImportEventRecorder\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateEventsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\MigrateEventsTest\\:\\:postRowSaveEventRecorder\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateEventsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\MigrateEventsTest\\:\\:preImportEventRecorder\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateEventsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\MigrateEventsTest\\:\\:preRowSaveEventRecorder\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateEventsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\MigrateInterruptionTest\\:\\:postRowSaveEventRecorder\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateInterruptionTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\MigrateMessageTest\\:\\:display\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateMessageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\MigrateMessageTest\\:\\:mapMessageRecorder\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateMessageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\MigrateProcessErrorMessagesTest\\:\\:setPluginManagers\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateProcessErrorMessagesTest.php', -]; -$ignoreErrors[] = [ // identifier: phpunit.dataProviderMethod 'message' => '#^@dataProvider providerSource related method not found\\.$#', 'count' => 1, @@ -34570,12 +32704,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\Plugin\\\\MigrationProvidersExistTest\\:\\:enableAllModules\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\Plugin\\\\id_map\\\\SqlTest\\:\\:providerTestEnsureTables\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/Plugin/id_map/SqlTest.php', @@ -34600,18 +32728,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\TestSqlBase\\:\\:setConfiguration\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/SqlBaseTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\TestSqlBase\\:\\:setQuery\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/SqlBaseTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\process\\\\ExtractTest\\:\\:multipleValueProviderSource\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/process/ExtractTest.php', @@ -34642,12 +32758,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\MigrateExecutableMemoryExceededTest\\:\\:runMemoryExceededTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/MigrateExecutableMemoryExceededTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\MigrateLookupTest\\:\\:providerExceptionOnMigrationNotFound\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/MigrateLookupTest.php', @@ -34678,18 +32788,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\MigrateSqlIdMapEnsureTablesTest\\:\\:runEnsureTablesTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\MigrateSqlIdMapTest\\:\\:saveMap\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\MigrateTestCase\\:\\:queryResultTest\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/MigrateTestCase.php', @@ -34708,12 +32806,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\TestMigrationMock\\:\\:set\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/MigrationPluginManagerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\MigrationTest\\:\\:getInvalidMigrationDependenciesProvider\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/MigrationTest.php', @@ -34726,72 +32818,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\TestMigration\\:\\:setDestinationPlugin\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/MigrationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\TestMigration\\:\\:setMigrationPluginManager\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/MigrationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\TestMigration\\:\\:setPluginId\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/MigrationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\TestMigration\\:\\:setRequirements\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/MigrationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\TestMigration\\:\\:setSourcePlugin\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/MigrationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\Plugin\\\\migrate\\\\destination\\\\EntityTestDestination\\:\\:setEntity\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\Plugin\\\\migrate\\\\destination\\\\EntityRevisionTestDestination\\:\\:setEntity\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityRevisionTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\TestSqlBase\\:\\:calculateDependencies\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/SqlBaseTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\TestSqlBase\\:\\:setDatabase\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/SqlBaseTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\TestSqlBase\\:\\:setIds\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/SqlBaseTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\TestSqlBase\\:\\:setMigration\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/SqlBaseTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\TestMigrateExecutable\\:\\:handleException\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/TestMigrateExecutable.php', @@ -34864,12 +32896,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\process\\\\TestConcat\\:\\:setDelimiter\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/process/ConcatTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\process\\\\ExplodeTest\\:\\:providerExplodeWithNonStrictAndEmptySource\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/process/ExplodeTest.php', @@ -34906,12 +32932,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\process\\\\MakeUniqueEntityFieldTest\\:\\:entityQueryExpects\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/process/MakeUniqueEntityFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\process\\\\MakeUniqueEntityFieldTest\\:\\:providerTestMakeUniqueEntityField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/process/MakeUniqueEntityFieldTest.php', @@ -35259,12 +33279,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate_drupal\\\\Kernel\\\\NodeMigrationTypePluginAlterTest\\:\\:setupDb\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate_drupal/tests/src/Kernel/NodeMigrationTypePluginAlterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\migrate_drupal\\\\Kernel\\\\Plugin\\\\migrate\\\\source\\\\ContentEntityConstructorTest\\:\\:providerTestConstructor\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityConstructorTest.php', @@ -35606,12 +33620,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate_drupal\\\\Unit\\\\source\\\\TestDrupalSqlBase\\:\\:setDatabase\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate_drupal/tests/src/Unit/source/DrupalSqlBaseTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\migrate_drupal\\\\Unit\\\\source\\\\d6\\\\TestDrupal6SqlBase\\:\\:getModuleSchemaVersionWrapper\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php', @@ -35624,18 +33632,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate_drupal\\\\Unit\\\\source\\\\d6\\\\TestDrupal6SqlBase\\:\\:setDatabase\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate_drupal\\\\Unit\\\\source\\\\d6\\\\TestDrupal6SqlBase\\:\\:setModuleHandler\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\migrate_drupal\\\\Unit\\\\source\\\\d6\\\\TestDrupal6SqlBase\\:\\:variableGetWrapper\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php', @@ -36044,12 +34040,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d7\\\\FilePathTest\\:\\:makeFiles\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\FunctionalJavascript\\\\SettingsTest\\:\\:providerTestCredentialForm\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate_drupal_ui/tests/src/FunctionalJavascript/SettingsTest.php', @@ -36158,24 +34148,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\mysql\\\\Functional\\\\InstallerIsolationLevelExistingSettingsTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/mysql/tests/src/Functional/InstallerIsolationLevelExistingSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\mysql\\\\Functional\\\\InstallerIsolationLevelNoDatabaseSettingsTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/mysql/tests/src/Functional/InstallerIsolationLevelNoDatabaseSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\mysql\\\\Functional\\\\RequirementsTest\\:\\:writeIsolationLevelSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/mysql/tests/src/Functional/RequirementsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\mysql\\\\Kernel\\\\mysql\\\\DbDumpTest\\:\\:assertPathAliasExists\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/mysql/tests/src/Kernel/mysql/DbDumpTest.php', @@ -36187,12 +34159,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/modules/mysql/tests/src/Kernel/mysql/DbDumpTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\mysql\\\\Kernel\\\\mysql\\\\DbDumpTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/mysql/tests/src/Kernel/mysql/DbDumpTest.php', -]; -$ignoreErrors[] = [ // identifier: variable.undefined 'message' => '#^Variable \\$string_ascii_check might not be defined\\.$#', 'count' => 1, @@ -36392,12 +34358,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\navigation\\\\FunctionalJavascript\\\\NavigationBlockUiTest\\:\\:openAddBlockForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/navigation/tests/src/FunctionalJavascript/NavigationBlockUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\navigation\\\\FunctionalJavascript\\\\NavigationBlockUiTest\\:\\:sortableAfter\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/navigation/tests/src/FunctionalJavascript/NavigationBlockUiTest.php', @@ -37460,12 +35420,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\node\\\\Functional\\\\NodeAccessLanguageFallbackTest\\:\\:checkRecords\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/node/tests/src/Functional/NodeAccessLanguageFallbackTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\node\\\\Functional\\\\NodeAccessPagerTest\\:\\:addDefaultCommentField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/node/tests/src/Functional/NodeAccessPagerTest.php', @@ -37508,18 +35462,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\node\\\\Functional\\\\NodeEditFormTest\\:\\:checkVariousAuthoredByValues\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/node/tests/src/Functional/NodeEditFormTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\node\\\\Functional\\\\NodeRevisionsTest\\:\\:createRevisions\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/node/tests/src/Functional/NodeRevisionsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\node\\\\Functional\\\\NodeTestBase\\:\\:assertNodeAccess\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/node/tests/src/Functional/NodeTestBase.php', @@ -37568,42 +35510,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\node\\\\Functional\\\\NodeTranslationUITest\\:\\:doTestAlternateHreflangLinks\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/node/tests/src/Functional/NodeTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\node\\\\Functional\\\\NodeTranslationUITest\\:\\:doTestAuthoringInfo\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/node/tests/src/Functional/NodeTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\node\\\\Functional\\\\NodeTranslationUITest\\:\\:doTestPublishedStatus\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/node/tests/src/Functional/NodeTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\node\\\\Functional\\\\NodeTranslationUITest\\:\\:doTestTranslationEdit\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/node/tests/src/Functional/NodeTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\node\\\\Functional\\\\NodeTranslationUITest\\:\\:doTestTranslations\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/node/tests/src/Functional/NodeTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\node\\\\Functional\\\\NodeTranslationUITest\\:\\:doUninstallTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/node/tests/src/Functional/NodeTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\node\\\\Functional\\\\NodeTranslationUITest\\:\\:getNewEntityValues\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/node/tests/src/Functional/NodeTranslationUITest.php', @@ -37700,12 +35606,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\node\\\\Functional\\\\Rest\\\\NodeJsonBasicAuthTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/node/tests/src/Functional/Rest/NodeJsonBasicAuthTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\node\\\\Functional\\\\Rest\\\\NodeJsonCookieTest\\:\\:assertAuthenticationEdgeCases\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/node/tests/src/Functional/Rest/NodeJsonCookieTest.php', @@ -37892,12 +35792,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\node\\\\Functional\\\\Views\\\\FrontPageTest\\:\\:doTestFrontPageViewCacheTags\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/node/tests/src/Functional/Views/FrontPageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\node\\\\Functional\\\\Views\\\\FrontPageTest\\:\\:enablePageCaching\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/node/tests/src/Functional/Views/FrontPageTest.php', @@ -38408,12 +36302,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\options\\\\Functional\\\\OptionsFieldUITest\\:\\:createOptionsField\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/options/tests/src/Functional/OptionsFieldUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\options\\\\FunctionalJavascript\\\\OptionsFieldUIAllowedValuesTest\\:\\:assertNodeFormOrder\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/options/tests/src/FunctionalJavascript/OptionsFieldUIAllowedValuesTest.php', @@ -38432,12 +36320,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\options\\\\FunctionalJavascript\\\\OptionsFieldUITest\\:\\:createOptionsField\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/options/tests/src/FunctionalJavascript/OptionsFieldUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\options\\\\Kernel\\\\Views\\\\OptionsTestBase\\:\\:mockStandardInstall\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/options/tests/src/Kernel/Views/OptionsTestBase.php', @@ -38726,12 +36608,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\path\\\\Kernel\\\\Migrate\\\\d6\\\\MigrateUrlAliasTest\\:\\:checkUrlMigration\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/path/tests/src/Kernel/Migrate/d6/MigrateUrlAliasTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\path\\\\Kernel\\\\Migrate\\\\d7\\\\MigrateUrlAliasTestBase\\:\\:assertPathAliasExists\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasTestBase.php', @@ -39266,18 +37142,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\responsive_image\\\\Functional\\\\ResponsiveImageFieldDisplayTest\\:\\:addTestImageStyleMappings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\responsive_image\\\\Functional\\\\ResponsiveImageFieldDisplayTest\\:\\:doTestResponsiveImageFieldFormatters\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\responsive_image\\\\Functional\\\\Rest\\\\ResponsiveImageStyleJsonAnonTest\\:\\:assertAuthenticationEdgeCases\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/responsive_image/tests/src/Functional/Rest/ResponsiveImageStyleJsonAnonTest.php', @@ -39962,12 +37826,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\rest\\\\Functional\\\\Views\\\\StyleSerializerEntityTest\\:\\:addRequestWithFormat\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/rest/tests/src/Functional/Views/StyleSerializerEntityTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\rest\\\\Functional\\\\Views\\\\StyleSerializerEntityTest\\:\\:assertCacheContext\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/rest/tests/src/Functional/Views/StyleSerializerEntityTest.php', @@ -40004,12 +37862,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\rest\\\\Functional\\\\Views\\\\StyleSerializerTest\\:\\:addRequestWithFormat\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\rest\\\\Functional\\\\Views\\\\StyleSerializerTest\\:\\:assertCacheContext\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php', @@ -40652,24 +38504,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\search\\\\Functional\\\\SearchCommentTest\\:\\:setRolePermissions\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/search/tests/src/Functional/SearchCommentTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\search\\\\Functional\\\\SearchConfigSettingsFormTest\\:\\:setDefaultThroughUi\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\search\\\\Functional\\\\SearchConfigSettingsFormTest\\:\\:verifySearchPageOperations\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\search\\\\Functional\\\\SearchNumberMatchingTest\\:\\:cronRun\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/search/tests/src/Functional/SearchNumberMatchingTest.php', @@ -40802,30 +38636,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\search\\\\Kernel\\\\SearchMatchTest\\:\\:_setup\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/search/tests/src/Kernel/SearchMatchTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\search\\\\Kernel\\\\SearchMatchTest\\:\\:_testQueries\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/search/tests/src/Kernel/SearchMatchTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\search\\\\Kernel\\\\SearchMatchTest\\:\\:_testQueryMatching\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/search/tests/src/Kernel/SearchMatchTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\search\\\\Kernel\\\\SearchMatchTest\\:\\:_testQueryScores\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/search/tests/src/Kernel/SearchMatchTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\search\\\\Kernel\\\\SearchMatchTest\\:\\:getText\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/search/tests/src/Kernel/SearchMatchTest.php', @@ -41096,12 +38906,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\settings_tray\\\\FunctionalJavascript\\\\SettingsTrayBlockFormTest\\:\\:doTestBlocks\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\settings_tray\\\\FunctionalJavascript\\\\SettingsTrayBlockFormTest\\:\\:getBlockTests\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php', @@ -41564,36 +39368,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\shortcut\\\\Functional\\\\ShortcutLinksTest\\:\\:verifyAccessShortcutsPermissionForEditPages\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\shortcut\\\\Functional\\\\ShortcutTestBase\\:\\:generateShortcutSet\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/shortcut/tests/src/Functional/ShortcutTestBase.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\shortcut\\\\Functional\\\\ShortcutTranslationUITest\\:\\:doTestBasicTranslation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\shortcut\\\\Functional\\\\ShortcutTranslationUITest\\:\\:doTestTranslationChanged\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\shortcut\\\\Functional\\\\ShortcutTranslationUITest\\:\\:doTestTranslationEdit\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\shortcut\\\\Functional\\\\ShortcutTranslationUITest\\:\\:getNewEntityValues\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php', @@ -48299,18 +46079,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Entity\\\\EntityFormTest\\:\\:doTestFormCRUD\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Entity/EntityFormTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Entity\\\\EntityFormTest\\:\\:doTestMultilingualFormCRUD\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Entity/EntityFormTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Entity\\\\EntityFormTest\\:\\:loadEntityByName\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Functional/Entity/EntityFormTest.php', @@ -48365,12 +46133,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Entity\\\\EntityRevisionsTest\\:\\:runRevisionsTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Entity/EntityRevisionsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\FileTransfer\\\\FileTransferTest\\:\\:_buildFakeModule\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php', @@ -48383,12 +46145,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\FileTransfer\\\\FileTransferTest\\:\\:_writeDirectory\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\FileTransfer\\\\MockTestConnection\\:\\:flushCommands\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php', @@ -48436,12 +46192,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Form\\\\FormTest\\:\\:validateSelectSorting\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Form/FormTest.php', -]; -$ignoreErrors[] = [ // identifier: empty.variable 'message' => '#^Variable \\$form_output in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 2, @@ -48449,12 +46199,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Form\\\\LanguageSelectElementTest\\:\\:_testLanguageSelectElementOptions\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Form\\\\StubForm\\:\\:submitForm\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Functional/Form/StubForm.php', @@ -48533,96 +46277,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Menu\\\\MenuRouterTest\\:\\:doTestDescriptionMenuItems\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Menu/MenuRouterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Menu\\\\MenuRouterTest\\:\\:doTestExoticPath\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Menu/MenuRouterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Menu\\\\MenuRouterTest\\:\\:doTestHookMenuIntegration\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Menu/MenuRouterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Menu\\\\MenuRouterTest\\:\\:doTestMenuHierarchy\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Menu/MenuRouterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Menu\\\\MenuRouterTest\\:\\:doTestMenuLinksDiscoveredAlter\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Menu/MenuRouterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Menu\\\\MenuRouterTest\\:\\:doTestMenuName\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Menu/MenuRouterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Menu\\\\MenuRouterTest\\:\\:doTestMenuOnRoute\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Menu/MenuRouterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Menu\\\\MenuRouterTest\\:\\:doTestMenuOptionalPlaceholders\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Menu/MenuRouterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Menu\\\\MenuRouterTest\\:\\:doTestThemeCallbackAdministrative\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Menu/MenuRouterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Menu\\\\MenuRouterTest\\:\\:doTestThemeCallbackFakeTheme\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Menu/MenuRouterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Menu\\\\MenuRouterTest\\:\\:doTestThemeCallbackMaintenanceMode\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Menu/MenuRouterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Menu\\\\MenuRouterTest\\:\\:doTestThemeCallbackNoThemeRequested\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Menu/MenuRouterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Menu\\\\MenuRouterTest\\:\\:doTestThemeCallbackOptionalTheme\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Menu/MenuRouterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Menu\\\\MenuRouterTest\\:\\:doTestTitleCallbackFalse\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Menu/MenuRouterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Menu\\\\MenuRouterTest\\:\\:doTestTitleMenuCallback\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Menu/MenuRouterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Module\\\\ModuleTestBase\\:\\:assertLogMessage\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Functional/Module/ModuleTestBase.php', @@ -48923,24 +46577,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Session\\\\SessionHttpsTest\\:\\:loginHttp\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Session/SessionHttpsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Session\\\\SessionHttpsTest\\:\\:loginHttps\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Session/SessionHttpsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Session\\\\SessionTest\\:\\:sessionReset\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Session/SessionTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\System\\\\AccessDeniedTest\\:\\:assertCacheContext\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Functional/System/AccessDeniedTest.php', @@ -49103,18 +46739,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\System\\\\SitesDirectoryHardeningTest\\:\\:makeWritable\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/System/SitesDirectoryHardeningTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\System\\\\SystemAuthorizeTest\\:\\:drupalGetAuthorizePHP\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/System/SystemAuthorizeTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\System\\\\TokenReplaceWebTest\\:\\:assertCacheContext\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Functional/System/TokenReplaceWebTest.php', @@ -49217,35 +46841,11 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Theme\\\\MaintenanceThemeUpdateRegistryTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Theme/MaintenanceThemeUpdateRegistryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Theme\\\\MaintenanceThemeUpdateRegistryTest\\:\\:prepareSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Theme/MaintenanceThemeUpdateRegistryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Theme\\\\MaintenanceThemeUpdateRegistryTest\\:\\:updateRequirementsProblem\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Functional/Theme/MaintenanceThemeUpdateRegistryTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Theme\\\\ThemeUiTest\\:\\:uninstallModules\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Theme/ThemeUiTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Theme\\\\ThemeUiTest\\:\\:uninstallTheme\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Theme/ThemeUiTest.php', -]; -$ignoreErrors[] = [ // identifier: variable.undefined 'message' => '#^Variable \\$expected_required_list_items might not be defined\\.$#', 'count' => 2, @@ -49289,12 +46889,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Theme\\\\ThemeUpdateTest\\:\\:doSelectionTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Theme/ThemeUpdateTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Theme\\\\ThemeUpdateTest\\:\\:ensureUpdatesToRun\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Functional/Theme/ThemeUpdateTest.php', @@ -49313,12 +46907,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Theme\\\\TwigTransTest\\:\\:installLanguages\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/Theme/TwigTransTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\UpdateSystem\\\\BrokenCacheUpdateTest\\:\\:assertConfigSchema\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Functional/UpdateSystem/BrokenCacheUpdateTest.php', @@ -49463,18 +47051,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\UpdateSystem\\\\EquivalentUpdateTest\\:\\:testModuleUninstall\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/UpdateSystem/EquivalentUpdateTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\UpdateSystem\\\\EquivalentUpdateTest\\:\\:testUpdateHooks\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/UpdateSystem/EquivalentUpdateTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\UpdateSystem\\\\EquivalentUpdateTest\\:\\:updateRequirementsProblem\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Functional/UpdateSystem/EquivalentUpdateTest.php', @@ -49691,18 +47267,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\UpdateSystem\\\\UpdatePathTestBaseFilledTest\\:\\:replaceUser1\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestBaseFilledTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\UpdateSystem\\\\UpdatePathTestBaseFilledTest\\:\\:setDatabaseDumpFiles\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestBaseFilledTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\UpdateSystem\\\\UpdatePathTestJavaScriptTest\\:\\:assertConfigSchema\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestJavaScriptTest.php', @@ -49739,12 +47303,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\UpdateSystem\\\\UpdatePathTestJavaScriptTest\\:\\:doSelectionTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestJavaScriptTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\UpdateSystem\\\\UpdatePathTestJavaScriptTest\\:\\:ensureUpdatesToRun\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestJavaScriptTest.php', @@ -49859,12 +47417,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\UpdateSystem\\\\UpdatePostUpdateExceptionTest\\:\\:doSelectionTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateExceptionTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\UpdateSystem\\\\UpdatePostUpdateExceptionTest\\:\\:ensureUpdatesToRun\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateExceptionTest.php', @@ -49919,12 +47471,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\UpdateSystem\\\\UpdatePostUpdateFailingTest\\:\\:doSelectionTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateFailingTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\UpdateSystem\\\\UpdatePostUpdateFailingTest\\:\\:ensureUpdatesToRun\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateFailingTest.php', @@ -49979,12 +47525,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\UpdateSystem\\\\UpdatePostUpdateTest\\:\\:doSelectionTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\UpdateSystem\\\\UpdatePostUpdateTest\\:\\:ensureUpdatesToRun\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateTest.php', @@ -50129,12 +47669,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\UpdateSystem\\\\UpdateScriptTest\\:\\:runUpdates\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\UpdateSystem\\\\UpdateScriptTest\\:\\:updateRequirementsProblem\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php', @@ -50243,48 +47777,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Kernel\\\\Entity\\\\ConfigEntityImportTest\\:\\:checkSinglePluginConfigSync\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Kernel\\\\Entity\\\\ConfigEntityImportTest\\:\\:doActionUpdate\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Kernel\\\\Entity\\\\ConfigEntityImportTest\\:\\:doBlockUpdate\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Kernel\\\\Entity\\\\ConfigEntityImportTest\\:\\:doFilterFormatUpdate\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Kernel\\\\Entity\\\\ConfigEntityImportTest\\:\\:doImageStyleUpdate\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Kernel\\\\Entity\\\\ConfigEntityImportTest\\:\\:doSearchPageUpdate\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Kernel\\\\Entity\\\\ConfigEntityImportTest\\:\\:doThirdPartySettingsUpdate\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Kernel\\\\Entity\\\\EntityReferenceSelection\\\\EntityReferenceSelectionAccessTest\\:\\:addDefaultCommentField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Kernel/Entity/EntityReferenceSelection/EntityReferenceSelectionAccessTest.php', @@ -50333,18 +47825,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Kernel\\\\Form\\\\ProgrammaticTest\\:\\:doSubmitForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Kernel\\\\Mail\\\\MailTest\\:\\:configureDefaultMailInterface\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Kernel/Mail/MailTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Kernel\\\\MenuAccessControlHandlerTest\\:\\:grantPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Kernel/MenuAccessControlHandlerTest.php', @@ -50411,12 +47891,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Kernel\\\\PhpStorage\\\\PhpStorageFactoryTest\\:\\:setSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Kernel/PhpStorage/PhpStorageFactoryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Kernel\\\\Plugin\\\\migrate\\\\source\\\\ActionTest\\:\\:providerSource\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Kernel/Plugin/migrate/source/ActionTest.php', @@ -50447,18 +47921,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Kernel\\\\System\\\\CronQueueTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Kernel/System/CronQueueTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Kernel\\\\Theme\\\\TwigIncludeTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Kernel/Theme/TwigIncludeTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Kernel\\\\TimezoneResolverTest\\:\\:grantPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Kernel/TimezoneResolverTest.php', @@ -50471,24 +47933,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Unit\\\\Breadcrumbs\\\\PathBasedBreadcrumbBuilderTest\\:\\:setupAccessManagerToAllow\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Unit\\\\Breadcrumbs\\\\PathBasedBreadcrumbBuilderTest\\:\\:setupStubPathProcessor\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Unit\\\\Breadcrumbs\\\\TestPathBasedBreadcrumbBuilder\\:\\:setLinkGenerator\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\system\\\\Unit\\\\Menu\\\\MenuLinkTreeTest\\:\\:providerTestBuildCacheability\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/src/Unit/Menu/MenuLinkTreeTest.php', @@ -51599,18 +49043,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\taxonomy\\\\Functional\\\\TermTranslationFieldViewTest\\:\\:setUpNode\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/taxonomy/tests/src/Functional/TermTranslationFieldViewTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\taxonomy\\\\Functional\\\\TermTranslationFieldViewTest\\:\\:setUpTerm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/taxonomy/tests/src/Functional/TermTranslationFieldViewTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\taxonomy\\\\Functional\\\\TermTranslationFieldViewTest\\:\\:setUpTermReferenceField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/taxonomy/tests/src/Functional/TermTranslationFieldViewTest.php', @@ -51659,30 +49091,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\taxonomy\\\\Functional\\\\TermTranslationTest\\:\\:setUpTerms\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/taxonomy/tests/src/Functional/TermTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\taxonomy\\\\Functional\\\\TermTranslationTest\\:\\:setupLanguages\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/taxonomy/tests/src/Functional/TermTranslationTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\taxonomy\\\\Functional\\\\TermTranslationUITest\\:\\:doTestPublishedStatus\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/taxonomy/tests/src/Functional/TermTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\taxonomy\\\\Functional\\\\TermTranslationUITest\\:\\:doTestTranslationEdit\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/taxonomy/tests/src/Functional/TermTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\taxonomy\\\\Functional\\\\TermTranslationUITest\\:\\:getEditValues\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/taxonomy/tests/src/Functional/TermTranslationUITest.php', @@ -51695,12 +49109,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\taxonomy\\\\Functional\\\\TermTranslationUITest\\:\\:setupBundle\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/taxonomy/tests/src/Functional/TermTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\taxonomy\\\\Functional\\\\Views\\\\TaxonomyIndexTidUiTest\\:\\:createEntityReferenceField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php', @@ -51737,12 +49145,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\taxonomy\\\\Functional\\\\Views\\\\TermTranslationViewsTest\\:\\:setUpTerms\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/taxonomy/tests/src/Functional/Views/TermTranslationViewsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\taxonomy\\\\Functional\\\\Views\\\\TermTranslationViewsTest\\:\\:setupLanguages\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/taxonomy/tests/src/Functional/Views/TermTranslationViewsTest.php', @@ -51767,12 +49169,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\taxonomy\\\\Kernel\\\\Migrate\\\\d6\\\\MigrateVocabularyFieldInstanceTest\\:\\:assertTargetBundles\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldInstanceTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\taxonomy\\\\Kernel\\\\PendingRevisionTest\\:\\:getTaxonomyIndex\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/taxonomy/tests/src/Kernel/PendingRevisionTest.php', @@ -51869,12 +49265,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\taxonomy\\\\Kernel\\\\TaxonomyQueryAlterTest\\:\\:setupQueryTagTestHooks\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/taxonomy/tests/src/Kernel/TaxonomyQueryAlterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\taxonomy\\\\Kernel\\\\TermKernelTest\\:\\:grantPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/taxonomy/tests/src/Kernel/TermKernelTest.php', @@ -51995,12 +49385,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\text\\\\Functional\\\\TextFieldTest\\:\\:_testTextfieldWidgetsFormatted\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/text/tests/src/Functional/TextFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\text\\\\Kernel\\\\Migrate\\\\MigrateTextConfigsTest\\:\\:assertConfigSchema\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/text/tests/src/Kernel/Migrate/MigrateTextConfigsTest.php', @@ -52031,12 +49415,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\text\\\\Kernel\\\\TextWithSummaryItemTest\\:\\:createField\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\text\\\\Unit\\\\Plugin\\\\migrate\\\\field\\\\d6\\\\TextFieldTest\\:\\:getFieldTypeProvider\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php', @@ -52127,12 +49505,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\toolbar\\\\Functional\\\\ToolbarCacheContextsTest\\:\\:installExtraModules\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Function template_preprocess_toolbar\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/toolbar/toolbar.module', @@ -52355,12 +49727,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\update\\\\Functional\\\\UpdateManagerUpdateTest\\:\\:checkTableHeaders\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/update/tests/src/Functional/UpdateManagerUpdateTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\update\\\\Functional\\\\UpdateMiscTest\\:\\:cronRun\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/update/tests/src/Functional/UpdateMiscTest.php', @@ -52523,12 +49889,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\update\\\\Unit\\\\UpdateFetcherTest\\:\\:mockClient\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/update/tests/src/Unit/UpdateFetcherTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Function _update_authorize_clear_update_status\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/update/update.authorize.inc', @@ -53753,18 +51113,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\user\\\\Functional\\\\UserAdminLanguageTest\\:\\:addCustomLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/user/tests/src/Functional/UserAdminLanguageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\user\\\\Functional\\\\UserAdminLanguageTest\\:\\:setLanguageNegotiation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/user/tests/src/Functional/UserAdminLanguageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\user\\\\Functional\\\\UserAdminTest\\:\\:assertMailPattern\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/user/tests/src/Functional/UserAdminTest.php', @@ -53806,30 +51154,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/modules/user/tests/src/Functional/UserLoginHttpTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\user\\\\Functional\\\\UserLoginHttpTest\\:\\:doTestLogin\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/user/tests/src/Functional/UserLoginHttpTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\user\\\\Functional\\\\UserLoginHttpTest\\:\\:doTestPasswordReset\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/user/tests/src/Functional/UserLoginHttpTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\user\\\\Functional\\\\UserLoginHttpTest\\:\\:loginFromResetEmail\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/user/tests/src/Functional/UserLoginHttpTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\user\\\\Functional\\\\UserLoginHttpTest\\:\\:resetFlood\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/user/tests/src/Functional/UserLoginHttpTest.php', -]; -$ignoreErrors[] = [ // identifier: isset.variable 'message' => '#^Variable \\$name in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, @@ -53855,12 +51179,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\user\\\\Functional\\\\UserLoginTest\\:\\:resetUserPassword\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/user/tests/src/Functional/UserLoginTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\user\\\\Functional\\\\UserPasswordResetTest\\:\\:assertMailPattern\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/user/tests/src/Functional/UserPasswordResetTest.php', @@ -53933,24 +51251,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\user\\\\Functional\\\\UserRegistrationRestTest\\:\\:setUpAuthorization\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/user/tests/src/Functional/UserRegistrationRestTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\user\\\\Functional\\\\UserRolesAssignmentTest\\:\\:userLoadAndCheckRoleAssigned\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/user/tests/src/Functional/UserRolesAssignmentTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\user\\\\Functional\\\\UserTranslationUITest\\:\\:doTestTranslationEdit\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/user/tests/src/Functional/UserTranslationUITest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\user\\\\Functional\\\\UserTranslationUITest\\:\\:getNewEntityValues\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/user/tests/src/Functional/UserTranslationUITest.php', @@ -54053,18 +51353,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\user\\\\Kernel\\\\Migrate\\\\d6\\\\MigrateUserRoleTest\\:\\:assertMessages\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\user\\\\Kernel\\\\Migrate\\\\d6\\\\MigrateUserRoleTest\\:\\:assertNoDuplicateRoles\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\user\\\\Kernel\\\\Migrate\\\\d6\\\\MigrateUserRoleTest\\:\\:providerTestUserRole\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php', @@ -61793,36 +59081,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Functional\\\\Handler\\\\FilterDateTest\\:\\:_testBetween\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Functional/Handler/FilterDateTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Functional\\\\Handler\\\\FilterDateTest\\:\\:_testFilterDateUI\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Functional/Handler/FilterDateTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Functional\\\\Handler\\\\FilterDateTest\\:\\:_testFilterDatetimeUI\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Functional/Handler/FilterDateTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Functional\\\\Handler\\\\FilterDateTest\\:\\:_testOffset\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Functional/Handler/FilterDateTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Functional\\\\Handler\\\\FilterDateTest\\:\\:_testUiValidation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Functional/Handler/FilterDateTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Functional\\\\Handler\\\\FilterDateTest\\:\\:assertConfigSchema\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Functional/Handler/FilterDateTest.php', @@ -61949,12 +59207,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Functional\\\\Plugin\\\\DisplayFeedTranslationTest\\:\\:checkFeedResults\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Functional/Plugin/DisplayFeedTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Functional\\\\Plugin\\\\DisplayFeedTranslationTest\\:\\:disableBundleTranslation\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Functional/Plugin/DisplayFeedTranslationTest.php', @@ -62003,12 +59255,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Functional\\\\Plugin\\\\DisplayTest\\:\\:checkTranslationSetting\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Functional/Plugin/DisplayTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Functional\\\\Plugin\\\\ExposedFormCheckboxesTest\\:\\:createEntityReferenceField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Functional/Plugin/ExposedFormCheckboxesTest.php', @@ -62255,12 +59501,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Functional\\\\Wizard\\\\PagerTest\\:\\:createViewAtPath\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Functional/Wizard/PagerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Functional\\\\Wizard\\\\TaggedWithTest\\:\\:createEntityReferenceField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Functional/Wizard/TaggedWithTest.php', @@ -62279,42 +59519,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\CacheableMetadataCalculationTest\\:\\:resetState\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Entity\\\\EntityViewsDataTest\\:\\:setUpEntityType\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Entity\\\\ViewsTestEntity\\:\\:setMockedBaseFieldDefinitions\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Entity\\\\FieldEntityTest\\:\\:addDefaultCommentField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Entity/FieldEntityTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Entity\\\\RowEntityRenderersTest\\:\\:checkLanguageRenderers\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Entity/RowEntityRenderersTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Entity\\\\RowEntityRenderersTest\\:\\:checkLanguageRenderersRelationship\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Entity/RowEntityRenderersTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\EventSubscriber\\\\ViewsEntitySchemaSubscriberIntegrationTest\\:\\:addBaseField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Kernel/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php', @@ -62489,30 +59699,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Handler\\\\AreaEntityTest\\:\\:doTestCalculateDependencies\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Handler/AreaEntityTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Handler\\\\AreaEntityTest\\:\\:doTestRender\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Handler/AreaEntityTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Handler\\\\AreaEntityTest\\:\\:setUpFixtures\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Handler/AreaEntityTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Handler\\\\AreaOrderTest\\:\\:setUpFixtures\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Handler\\\\AreaTest\\:\\:viewsData\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Handler/AreaTest.php', @@ -62585,12 +59771,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Handler\\\\FieldEntityLinkTest\\:\\:doTestEntityLink\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Handler/FieldEntityLinkTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Handler\\\\FieldEntityLinkTest\\:\\:grantPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Handler/FieldEntityLinkTest.php', @@ -62603,12 +59783,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Handler\\\\FieldEntityLinkTest\\:\\:setUpFixtures\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Handler/FieldEntityLinkTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Handler\\\\FieldFieldAccessTestBase\\:\\:assertFieldAccess\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Handler/FieldFieldAccessTestBase.php', @@ -62639,30 +59813,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Handler\\\\FieldKernelTest\\:\\:_testEmptyText\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Handler\\\\FieldKernelTest\\:\\:_testHideIfEmpty\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Handler\\\\FieldKernelTest\\:\\:viewsData\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Handler\\\\FieldRenderedEntityTest\\:\\:setUpFixtures\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Handler/FieldRenderedEntityTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Handler\\\\FieldTimeIntervalTest\\:\\:dataSet\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Handler/FieldTimeIntervalTest.php', @@ -62837,24 +59993,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Plugin\\\\QueryTest\\:\\:_testInitQuery\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Plugin/QueryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Plugin\\\\QueryTest\\:\\:_testQueryExecute\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Plugin/QueryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Plugin\\\\QueryTest\\:\\:queryMethodsTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Plugin/QueryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Plugin\\\\QueryTest\\:\\:viewsData\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Plugin/QueryTest.php', @@ -62909,12 +60047,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Plugin\\\\RowRenderCacheTest\\:\\:doTestRenderedOutput\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Plugin\\\\RowRenderCacheTest\\:\\:grantPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php', @@ -62927,12 +60059,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Plugin\\\\RowRenderCacheTest\\:\\:setUpFixtures\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Plugin\\\\RssFieldsTest\\:\\:grantPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Plugin/RssFieldsTest.php', @@ -62950,18 +60076,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Plugin/SqlQueryTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Plugin\\\\StyleTableUnitTest\\:\\:prepareView\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\Plugin\\\\StyleTest\\:\\:doTestGrouping\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Plugin/StyleTest.php', -]; -$ignoreErrors[] = [ // identifier: variable.undefined 'message' => '#^Variable \\$rand1 might not be defined\\.$#', 'count' => 2, @@ -62993,18 +60107,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\QueryGroupByTest\\:\\:groupByTestHelper\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/QueryGroupByTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\QueryGroupByTest\\:\\:setupTestEntities\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/QueryGroupByTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\TestViewsTest\\:\\:assertConfigSchema\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Kernel/TestViewsTest.php', @@ -63023,36 +60125,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\ViewExecutableTest\\:\\:setUpFixtures\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/ViewExecutableTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\ViewStorageTest\\:\\:createTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/ViewStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\ViewStorageTest\\:\\:displayMethodTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/ViewStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\ViewStorageTest\\:\\:displayTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/ViewStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\ViewStorageTest\\:\\:loadTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/ViewStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\ViewsKernelTestBase\\:\\:dataSet\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Kernel/ViewsKernelTestBase.php', @@ -63083,12 +60155,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\ViewsTemplateTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Kernel/ViewsTemplateTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Unit\\\\EventSubscriber\\\\TestRouteSubscriber\\:\\:getApplicableViews\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Unit/EventSubscriber/RouteSubscriberTest.php', @@ -63101,12 +60167,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Unit\\\\Plugin\\\\Derivative\\\\TestViewsLocalTask\\:\\:setApplicableMenuViews\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Unit\\\\Plugin\\\\HandlerBaseTest\\:\\:setupDisplay\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php', @@ -63124,18 +60184,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Unit\\\\Plugin\\\\area\\\\EntityTest\\:\\:setupEntityTypeManager\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/area/EntityTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Unit\\\\Plugin\\\\area\\\\ResultTest\\:\\:setupViewPager\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/area/ResultTest.php', -]; -$ignoreErrors[] = [ // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 1, @@ -63143,36 +60191,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Unit\\\\Plugin\\\\display\\\\PathPluginBaseTest\\:\\:setupContainer\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/display/PathPluginBaseTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Function Drupal\\\\views\\\\Plugin\\\\views\\\\field\\\\base_path\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Unit\\\\Plugin\\\\field\\\\FieldPluginBaseTest\\:\\:setUpUrlIntegrationServices\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Unit\\\\Plugin\\\\field\\\\FieldPluginBaseTest\\:\\:setupDisplayWithEmptyArgumentsAndFields\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Unit\\\\Plugin\\\\field\\\\FieldPluginBaseTestField\\:\\:setLinkGenerator\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Unit\\\\Plugin\\\\field\\\\FieldTest\\:\\:providerTestPrepareItemsByDelta\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/field/FieldTest.php', @@ -63191,12 +60215,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Unit\\\\Plugin\\\\field\\\\FieldTest\\:\\:setupLanguageRenderer\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/field/FieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Unit\\\\Plugin\\\\field\\\\FieldTest\\:\\:setupViewsData\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/field/FieldTest.php', @@ -63226,24 +60244,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/pager/SqlBaseTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Unit\\\\Plugin\\\\query\\\\SqlTest\\:\\:setupEntityTypeManager\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/query/SqlTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Unit\\\\Plugin\\\\query\\\\SqlTest\\:\\:setupViewWithRelationships\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/query/SqlTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Unit\\\\Plugin\\\\query\\\\SqlTest\\:\\:setupViewsData\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/query/SqlTest.php', -]; -$ignoreErrors[] = [ // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 1, @@ -63293,12 +60293,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Unit\\\\ViewsHandlerManagerTest\\:\\:setupMockedFactory\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views/tests/src/Unit/ViewsHandlerManagerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views\\\\Unit\\\\WizardPluginBaseTest\\:\\:providerTestGetSelected\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Unit/WizardPluginBaseTest.php', @@ -63593,13 +60587,13 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Function views_field_views_data\\(\\) has no return type specified\\.$#', + 'message' => '#^Function views_entity_field_label\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/views.views.inc', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Function views_entity_field_label\\(\\) has no return type specified\\.$#', + 'message' => '#^Function views_field_views_data\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/views.views.inc', ]; @@ -64193,12 +61187,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\Functional\\\\ArgumentValidatorTest\\:\\:saveArgumentHandlerWithValidationOptions\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views_ui/tests/src/Functional/ArgumentValidatorTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\Functional\\\\CustomBooleanTest\\:\\:dataSet\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views_ui/tests/src/Functional/CustomBooleanTest.php', @@ -64211,18 +61199,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\Functional\\\\DefaultViewsTest\\:\\:clickViewsOperationLink\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views_ui/tests/src/Functional/DefaultViewsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\Functional\\\\DisplayFeedTest\\:\\:checkFeedViewUi\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views_ui/tests/src/Functional/DisplayFeedTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\Functional\\\\DisplayPathTest\\:\\:assertCacheContext\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views_ui/tests/src/Functional/DisplayPathTest.php', @@ -64265,24 +61241,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\Functional\\\\DisplayPathTest\\:\\:doAdvancedPathsValidationTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views_ui/tests/src/Functional/DisplayPathTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\Functional\\\\DisplayPathTest\\:\\:doBasicPathUITest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views_ui/tests/src/Functional/DisplayPathTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\Functional\\\\DisplayPathTest\\:\\:doPathXssFilterTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views_ui/tests/src/Functional/DisplayPathTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\Functional\\\\DisplayPathTest\\:\\:enablePageCaching\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views_ui/tests/src/Functional/DisplayPathTest.php', @@ -64325,54 +61283,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\FunctionalJavascript\\\\DisplayTest\\:\\:addTranslation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\FunctionalJavascript\\\\DisplayTest\\:\\:toggleContextualTriggerVisibility\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\FunctionalJavascript\\\\FieldDialogsTest\\:\\:openFieldDialog\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views_ui/tests/src/FunctionalJavascript/FieldDialogsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\FunctionalJavascript\\\\FilterCriteriaTest\\:\\:openFilterDialog\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views_ui/tests/src/FunctionalJavascript/FilterCriteriaTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\FunctionalJavascript\\\\PreviewTest\\:\\:clickPreviewLinkAJAX\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views_ui/tests/src/FunctionalJavascript/PreviewTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\FunctionalJavascript\\\\PreviewTest\\:\\:dataSet\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views_ui/tests/src/FunctionalJavascript/PreviewTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\FunctionalJavascript\\\\PreviewTest\\:\\:enableViewsTestModule\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views_ui/tests/src/FunctionalJavascript/PreviewTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\FunctionalJavascript\\\\PreviewTest\\:\\:getPreviewAJAX\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/views_ui/tests/src/FunctionalJavascript/PreviewTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\views_ui\\\\FunctionalJavascript\\\\PreviewTest\\:\\:schemaDefinition\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views_ui/tests/src/FunctionalJavascript/PreviewTest.php', @@ -66263,12 +63179,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\workspaces\\\\Kernel\\\\WorkspaceAssociationTest\\:\\:assertWorkspaceAssociations\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/modules/workspaces/tests/src/Kernel/WorkspaceAssociationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\workspaces\\\\Kernel\\\\WorkspaceAssociationTest\\:\\:createWorkspaceHierarchy\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/workspaces/tests/src/Kernel/WorkspaceAssociationTest.php', @@ -66911,42 +63821,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\demo_umami\\\\Functional\\\\DemoUmamiProfileTest\\:\\:drupalLoginWithPassword\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\demo_umami\\\\Functional\\\\DemoUmamiProfileTest\\:\\:testAppearance\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\demo_umami\\\\Functional\\\\DemoUmamiProfileTest\\:\\:testDemonstrationWarningMessage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\demo_umami\\\\Functional\\\\DemoUmamiProfileTest\\:\\:testUser\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\demo_umami\\\\Functional\\\\DemoUmamiProfileTest\\:\\:testWarningsOnStatusPage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\demo_umami\\\\Functional\\\\UmamiMultilingualInstallTest\\:\\:setUpLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Function umami_form_alter\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/profiles/demo_umami/themes/umami/umami.theme', @@ -67133,12 +64007,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\standard\\\\FunctionalJavascript\\\\StandardPerformanceTest\\:\\:submitLoginForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/profiles/standard/tests/src/FunctionalJavascript/StandardPerformanceTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\drupal_system_listing_compatible_test\\\\Kernel\\\\SystemListingCrossProfileCompatibleTest\\:\\:testSystemListing\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/profiles/testing/modules/drupal_system_listing_compatible_test/tests/src/Kernel/SystemListingCrossProfileCompatibleTest.php', @@ -67265,18 +64133,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\BuildTests\\\\Composer\\\\Template\\\\ComposerProjectTemplatesTest\\:\\:makeTestPackage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\BuildTests\\\\Composer\\\\Template\\\\ComposerProjectTemplatesTest\\:\\:makeVendorPackage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\BuildTests\\\\Composer\\\\Template\\\\ComposerProjectTemplatesTest\\:\\:provideTemplateCreateProject\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php', @@ -67409,78 +64265,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\Ajax\\\\MessageCommandTest\\:\\:waitForMessageRemoved\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/Ajax/MessageCommandTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\Ajax\\\\MessageCommandTest\\:\\:waitForMessageVisible\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/Ajax/MessageCommandTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\Core\\\\Form\\\\JavascriptStatesTest\\:\\:doCheckboxTriggerTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/Core/Form/JavascriptStatesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\Core\\\\Form\\\\JavascriptStatesTest\\:\\:doCheckboxesTriggerTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/Core/Form/JavascriptStatesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\Core\\\\Form\\\\JavascriptStatesTest\\:\\:doMultipleSelectTriggerTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/Core/Form/JavascriptStatesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\Core\\\\Form\\\\JavascriptStatesTest\\:\\:doMultipleTriggerTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/Core/Form/JavascriptStatesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\Core\\\\Form\\\\JavascriptStatesTest\\:\\:doNestedTriggerTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/Core/Form/JavascriptStatesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\Core\\\\Form\\\\JavascriptStatesTest\\:\\:doRadiosTriggerTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/Core/Form/JavascriptStatesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\Core\\\\Form\\\\JavascriptStatesTest\\:\\:doSelectTriggerTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/Core/Form/JavascriptStatesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\Core\\\\Form\\\\JavascriptStatesTest\\:\\:doTextfieldTriggerTests\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/Core/Form/JavascriptStatesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\EntityReference\\\\EntityReferenceAutocompleteWidgetTest\\:\\:createEntityReferenceField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/EntityReference/EntityReferenceAutocompleteWidgetTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\EntityReference\\\\EntityReferenceAutocompleteWidgetTest\\:\\:doAutocomplete\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/EntityReference/EntityReferenceAutocompleteWidgetTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\JSWebAssert\\:\\:assertEscaped\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php', @@ -67517,12 +64307,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\JavascriptErrorsTest\\:\\:clearErrorLog\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/JavascriptErrorsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\PerformanceTestBase\\:\\:doInstallModulesFromClassProperty\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/PerformanceTestBase.php', @@ -67541,24 +64325,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\TableDrag\\\\TableDragTest\\:\\:markRowHandleForDragging\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/TableDrag/TableDragTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\TableDrag\\\\TableDragTest\\:\\:moveRowWithKeyboard\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/TableDrag/TableDragTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\TableDrag\\\\TableDragTest\\:\\:waitUntilDraggingCompleted\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/TableDrag/TableDragTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\FunctionalJavascriptTests\\\\Tests\\\\DrupalSelenium2DriverTest\\:\\:attachFileField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/FunctionalJavascriptTests/Tests/DrupalSelenium2DriverTest.php', @@ -67625,12 +64391,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\BrowserTestBaseUserAgentTest\\:\\:prepareRequest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/BrowserTestBaseUserAgentTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Core\\\\Recipe\\\\StandardRecipeInstallTest\\:\\:assertConfigSchema\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Core/Recipe/StandardRecipeInstallTest.php', @@ -67727,174 +64487,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\DistributionProfileExistingSettingsTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/DistributionProfileExistingSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\DistributionProfileExistingSettingsTest\\:\\:setUpLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/DistributionProfileExistingSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\DistributionProfileExistingSettingsTest\\:\\:setUpProfile\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/DistributionProfileExistingSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\DistributionProfileExistingSettingsTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/DistributionProfileExistingSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\DistributionProfileTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/DistributionProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\DistributionProfileTest\\:\\:setUpLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/DistributionProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\DistributionProfileTest\\:\\:setUpProfile\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/DistributionProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\DistributionProfileTranslationQueryTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\DistributionProfileTranslationQueryTest\\:\\:setUpLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\DistributionProfileTranslationQueryTest\\:\\:setUpProfile\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\DistributionProfileTranslationQueryTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\DistributionProfileTranslationQueryTest\\:\\:visitInstaller\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\DistributionProfileTranslationTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\DistributionProfileTranslationTest\\:\\:setUpLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\DistributionProfileTranslationTest\\:\\:setUpProfile\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\DistributionProfileTranslationTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\DrupalFlushAllCachesInInstallerTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/DrupalFlushAllCachesInInstallerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerBrokenDatabaseCredentialsTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabaseCredentialsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerBrokenDatabaseCredentialsTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabaseCredentialsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerBrokenDatabaseCredentialsTest\\:\\:setUpSite\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabaseCredentialsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerBrokenDatabasePortSettingsTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabasePortSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerBrokenDatabasePortSettingsTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabasePortSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerBrokenDatabasePortSettingsTest\\:\\:setUpSite\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabasePortSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerConfigDirectorySetNoDirectoryErrorTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectorySetNoDirectoryErrorTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerConfigDirectorySetNoDirectoryErrorTest\\:\\:setUpRequirementsProblem\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectorySetNoDirectoryErrorTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerConfigDirectorySetNoDirectoryErrorTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectorySetNoDirectoryErrorTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerConfigDirectorySetNoDirectoryErrorTest\\:\\:setUpSite\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectorySetNoDirectoryErrorTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerConfigDirectorySetNoDirectoryTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectorySetNoDirectoryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerConfigDirectoryTestBase\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectoryTestBase.php', @@ -67907,78 +64499,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerDatabaseErrorMessagesTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerDatabaseErrorMessagesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerDatabaseErrorMessagesTest\\:\\:setUpSite\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerDatabaseErrorMessagesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerEmptySettingsTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerEmptySettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingBrokenDatabaseSettingsTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingBrokenDatabaseSettingsTest\\:\\:setUpRequirementsProblem\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingBrokenDatabaseSettingsTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingBrokenDatabaseSettingsTest\\:\\:setUpSite\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingConfigDirectoryTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigDirectoryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingConfigExistingSettingsTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigExistingSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingConfigNoConfigTest\\:\\:setUpSite\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoConfigTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingConfigNoSystemSiteTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingConfigNoSystemSiteTest\\:\\:setUpSite\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingConfigProfileHookInstall\\:\\:setUpRequirementsProblem\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php', @@ -68003,12 +64523,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingConfigSyncDirectoryMultilingualTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingConfigSyncDirectoryMultilingualTest\\:\\:setUpProfile\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php', @@ -68045,30 +64559,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingConfigSyncDirectoryProfileMismatchTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileMismatchTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingConfigSyncDirectoryProfileMismatchTest\\:\\:setUpSite\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileMismatchTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingConfigTest\\:\\:setUpLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingConfigTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingConfigTestBase\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTestBase.php', @@ -68081,150 +64571,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingDatabaseSettingsTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingDatabaseSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingDatabaseSettingsTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingDatabaseSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingSettingsNoProfileTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsNoProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingSettingsNoProfileTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsNoProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingSettingsTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingSettingsTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerExistingSettingsTest\\:\\:visitInstaller\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerLanguageDirectionTest\\:\\:setUpLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerLanguageDirectionTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerLanguagePageTest\\:\\:setUpLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerLanguagePageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerNonDefaultDatabaseDriverTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerNonDefaultDatabaseDriverTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerNonEnglishProfileWithoutLocaleModuleTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerNonEnglishProfileWithoutLocaleModuleTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerPerformanceTest\\:\\:prepareSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerPerformanceTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerProfileRequirementsTest\\:\\:setUpRequirementsProblem\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerProfileRequirementsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerProfileRequirementsTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerProfileRequirementsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerProfileRequirementsTest\\:\\:setUpSite\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerProfileRequirementsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerRouterTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerRouterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerSiteConfigProfileTest\\:\\:setUpSite\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerSiteConfigProfileTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerSkipPermissionHardeningTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerSkipPermissionHardeningTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerSkipPermissionHardeningTest\\:\\:setUpSite\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerSkipPermissionHardeningTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTest\\:\\:setUpLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTest\\:\\:setUpProfile\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTest\\:\\:setUpSite\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTest\\:\\:visitInstaller\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTestBase\\:\\:assertErrorSummaries\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php', @@ -68309,156 +64661,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTranslationExistingFileTest\\:\\:setUpLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTranslationExistingFileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTranslationExistingFileTest\\:\\:setUpProfile\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTranslationExistingFileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTranslationExistingFileTest\\:\\:setUpRequirementsProblem\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTranslationExistingFileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTranslationExistingFileTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTranslationExistingFileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTranslationExistingFileTest\\:\\:setUpSite\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTranslationExistingFileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTranslationMultipleLanguageForeignTest\\:\\:setUpLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageForeignTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTranslationMultipleLanguageNonInteractiveTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageNonInteractiveTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTranslationMultipleLanguageNonInteractiveTest\\:\\:verifyImportedStringsTranslated\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageNonInteractiveTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTranslationMultipleLanguageTest\\:\\:setUpLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTranslationMultipleLanguageTest\\:\\:verifyImportedStringsTranslated\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTranslationNonStandardFilenamesTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTranslationNonStandardFilenamesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTranslationNonStandardFilenamesTest\\:\\:prepareSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTranslationNonStandardFilenamesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTranslationQueryTest\\:\\:setUpLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTranslationQueryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTranslationQueryTest\\:\\:visitInstaller\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTranslationQueryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTranslationTest\\:\\:setUpLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\InstallerTranslationTest\\:\\:setUpSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/InstallerTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\MinimalInstallerTest\\:\\:assertConfigDiff\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/MinimalInstallerTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\MultipleDistributionsProfileTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/MultipleDistributionsProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\MultipleDistributionsProfileTest\\:\\:setUpLanguage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/MultipleDistributionsProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\MultipleDistributionsProfileTest\\:\\:setUpProfile\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/MultipleDistributionsProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\SingleVisibleProfileTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/SingleVisibleProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\SingleVisibleProfileTest\\:\\:setUpProfile\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/SingleVisibleProfileTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\StandardInstallerTest\\:\\:setUpSite\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/StandardInstallerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\SuperUserAccessInstallTest\\:\\:prepareEnvironment\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/SuperUserAccessInstallTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Installer\\\\SuperUserAccessInstallTest\\:\\:setUpSite\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Installer/SuperUserAccessInstallTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\FunctionalTests\\\\MailCaptureTest\\:\\:assertMailPattern\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/MailCaptureTest.php', @@ -69161,12 +65369,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\FunctionalTests\\\\Update\\\\UpdatePathTestBaseTest\\:\\:setDatabaseDumpFiles\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Components\\\\ComponentRenderTest\\:\\:formatPlural\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Components/ComponentRenderTest.php', @@ -69185,12 +65387,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Config\\\\DefaultConfigTest\\:\\:doTestsOnConfigStorage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Config/DefaultConfigTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Action\\\\EmailActionTest\\:\\:assertMailPattern\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Action/EmailActionTest.php', @@ -69214,30 +65410,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Archiver/ArchiverTestBase.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Asset\\\\LibraryDiscoveryIntegrationTest\\:\\:activateTheme\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Asset/LibraryDiscoveryIntegrationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Asset\\\\ResolvedLibraryDefinitionsFilesMatchTest\\:\\:verifyLibraryFilesExist\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Asset/ResolvedLibraryDefinitionsFilesMatchTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Bootstrap\\\\ShutdownFunctionTest\\:\\:shutdownOne\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Bootstrap/ShutdownFunctionTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Bootstrap\\\\ShutdownFunctionTest\\:\\:shutdownTwo\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Bootstrap/ShutdownFunctionTest.php', -]; -$ignoreErrors[] = [ // identifier: variable.undefined 'message' => '#^Variable \\$found might not be defined\\.$#', 'count' => 1, @@ -69251,12 +65423,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Cache\\\\CacheCollectorTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Cache/CacheCollectorTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Cache\\\\CacheContextOptimizationTest\\:\\:grantPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php', @@ -69269,18 +65435,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Cache\\\\DatabaseBackendTagTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTagTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Cache\\\\EndOfTransactionQueriesTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Cache\\\\GenericCacheBackendUnitTestBase\\:\\:setUpCacheBackend\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php', @@ -69293,60 +65447,18 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Common\\\\DrupalFlushAllCachesTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Common/DrupalFlushAllCachesTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\ConfigDependencyTest\\:\\:providerConfigEntityUninstallComplex\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\ConfigImporterMissingContentTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\ConfigImporterTest\\:\\:customStep\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\ConfigInstallTest\\:\\:installModules\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\CachedStorageTest\\:\\:delete\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/CachedStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\CachedStorageTest\\:\\:insert\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/CachedStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\CachedStorageTest\\:\\:read\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/CachedStorageTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\CachedStorageTest\\:\\:update\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/CachedStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\ConfigStorageTestBase\\:\\:delete\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/ConfigStorageTestBase.php', @@ -69371,126 +65483,36 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\DatabaseStorageTest\\:\\:delete\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\DatabaseStorageTest\\:\\:insert\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\DatabaseStorageTest\\:\\:read\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\DatabaseStorageTest\\:\\:update\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\FileStorageTest\\:\\:delete\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/FileStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\FileStorageTest\\:\\:insert\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/FileStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\FileStorageTest\\:\\:read\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/FileStorageTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\FileStorageTest\\:\\:update\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/FileStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\ManagedStorageTest\\:\\:delete\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/ManagedStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\ManagedStorageTest\\:\\:insert\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/ManagedStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\ManagedStorageTest\\:\\:read\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/ManagedStorageTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\ManagedStorageTest\\:\\:update\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/ManagedStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\MemoryStorageTest\\:\\:delete\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/MemoryStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\MemoryStorageTest\\:\\:insert\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/MemoryStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\MemoryStorageTest\\:\\:read\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/MemoryStorageTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\MemoryStorageTest\\:\\:update\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/MemoryStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\StorageReplaceDataWrapperTest\\:\\:delete\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/StorageReplaceDataWrapperTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\StorageReplaceDataWrapperTest\\:\\:insert\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/StorageReplaceDataWrapperTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\StorageReplaceDataWrapperTest\\:\\:read\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/StorageReplaceDataWrapperTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Config\\\\Storage\\\\StorageReplaceDataWrapperTest\\:\\:update\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Config/Storage/StorageReplaceDataWrapperTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Database\\\\DatabaseTestBase\\:\\:ensureSampleDataNull\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Database/DatabaseTestBase.php', @@ -69569,18 +65591,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Datetime\\\\DatelistElementFormTest\\:\\:datelistDateCallback\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Datetime\\\\DatelistElementFormTest\\:\\:datelistDateCallbackTrusted\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Datetime\\\\DatelistElementFormTest\\:\\:submitForm\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php', @@ -69593,30 +65603,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Datetime\\\\DatetimeElementFormTest\\:\\:datetimeDateCallback\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Datetime\\\\DatetimeElementFormTest\\:\\:datetimeDateCallbackTrusted\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Datetime\\\\DatetimeElementFormTest\\:\\:datetimeTimeCallback\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Datetime\\\\DatetimeElementFormTest\\:\\:datetimeTimeCallbackTrusted\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Datetime\\\\DatetimeElementFormTest\\:\\:submitForm\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php', @@ -69653,12 +65639,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\DrupalKernel\\\\DrupalKernelTest\\:\\:bootKernel\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Element\\\\PathElementFormTest\\:\\:submitForm\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Element/PathElementFormTest.php', @@ -70048,12 +66028,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityDecoupledTranslationRevisionsTest\\:\\:doTestInternalProperties\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php', -]; -$ignoreErrors[] = [ // identifier: isset.variable 'message' => '#^Variable \\$previous_untranslatable_field_value in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 2, @@ -70415,48 +66389,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityFieldTest\\:\\:doTestComputedProperties\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityFieldTest\\:\\:doTestDataStructureInterfaces\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityFieldTest\\:\\:doTestIntrospection\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityFieldTest\\:\\:doTestIterator\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityFieldTest\\:\\:doTestReadWrite\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityFieldTest\\:\\:doTestSave\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityFieldTest\\:\\:getContainedStrings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityKernelTestBase\\:\\:drupalGrantPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php', @@ -70529,12 +66461,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityRepositoryTest\\:\\:doTestLanguageFallback\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityRepositoryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityRepositoryTest\\:\\:grantPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityRepositoryTest.php', @@ -70631,12 +66557,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntitySchemaTest\\:\\:refreshServices\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntitySchemaTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntitySchemaTest\\:\\:removeBaseField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntitySchemaTest.php', @@ -70691,12 +66611,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntitySchemaTest\\:\\:updateEntityType\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntitySchemaTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntitySchemaTest\\:\\:updateEntityTypeToNotRevisionable\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntitySchemaTest.php', @@ -70727,48 +66641,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityTranslationTest\\:\\:doTestEntityLanguageMethods\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityTranslationTest\\:\\:doTestEntityTranslationAPI\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityTranslationTest\\:\\:doTestLanguageChange\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityTranslationTest\\:\\:doTestLanguageFallback\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityTranslationTest\\:\\:doTestMultilingualProperties\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityTypedDataDefinitionTest\\:\\:entityDefinitionIsInternalProvider\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityTypedDataDefinitionTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityValidationTest\\:\\:checkValidation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityValidationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\EntityViewBuilderTest\\:\\:createEntityReferenceField\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityViewBuilderTest.php', @@ -70841,12 +66719,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\FieldableEntityDefinitionUpdateTest\\:\\:insertData\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\FieldableEntityDefinitionUpdateTest\\:\\:makeBaseFieldEntityKey\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php', @@ -70973,12 +66845,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\RevisionableContentEntityBaseTest\\:\\:createRevision\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Entity\\\\RouteProviderTest\\:\\:grantPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/RouteProviderTest.php', @@ -71003,12 +66869,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\EventSubscriber\\\\ExceptionLoggingSubscriberTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/EventSubscriber/ExceptionLoggingSubscriberTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Extension\\\\ModuleInstallerTest\\:\\:providerTestInvalidCoreInstall\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Extension/ModuleInstallerTest.php', @@ -71081,30 +66941,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Form\\\\FormDefaultHandlersTest\\:\\:customSubmitForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Form/FormDefaultHandlersTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Form\\\\FormDefaultHandlersTest\\:\\:customValidateForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Form/FormDefaultHandlersTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Form\\\\FormDefaultHandlersTest\\:\\:submitForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Form/FormDefaultHandlersTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Form\\\\FormDefaultHandlersTest\\:\\:validateForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Form/FormDefaultHandlersTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Form\\\\FormValidationMessageOrderTest\\:\\:submitForm\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Form/FormValidationMessageOrderTest.php', @@ -71123,30 +66959,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Form\\\\TriggeringElementProgrammedTest\\:\\:validateForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Form/TriggeringElementProgrammedTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\KeyValueStore\\\\DatabaseStorageExpirableTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageExpirableTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\KeyValueStore\\\\DatabaseStorageTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\KeyValueStore\\\\MemoryStorageTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/KeyValueStore/MemoryStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\KeyValueStore\\\\StorageTestBase\\:\\:createStorage\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/KeyValueStore/StorageTestBase.php', @@ -71159,30 +66971,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Menu\\\\MenuTreeStorageTest\\:\\:addMenuLink\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Menu\\\\MenuTreeStorageTest\\:\\:doTestEmptyStorage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Menu\\\\MenuTreeStorageTest\\:\\:doTestTable\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Menu\\\\MenuTreeStorageTest\\:\\:moveMenuLink\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\ParamConverter\\\\EntityConverterLatestRevisionTest\\:\\:grantPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/ParamConverter/EntityConverterLatestRevisionTest.php', @@ -71219,18 +67007,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Plugin\\\\Condition\\\\ConditionTestDualUserTest\\:\\:doTestDifferentUser\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Plugin/Condition/ConditionTestDualUserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Plugin\\\\Condition\\\\ConditionTestDualUserTest\\:\\:doTestIdenticalUser\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Plugin/Condition/ConditionTestDualUserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Plugin\\\\Condition\\\\ResponseStatusTest\\:\\:providerTestConditions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Plugin/Condition/ResponseStatusTest.php', @@ -71285,12 +67061,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Plugin\\\\Context\\\\TestContextAwarePlugin\\:\\:setContext\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Plugin\\\\Context\\\\TestContextAwarePlugin\\:\\:setContextTrait\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php', @@ -71333,12 +67103,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Queue\\\\QueueSerializationTest\\:\\:submitForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Queue/QueueSerializationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Queue\\\\QueueSerializationTest\\:\\:validateForm\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Queue/QueueSerializationTest.php', @@ -71351,12 +67115,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Queue\\\\QueueTest\\:\\:runQueueTest\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Queue/QueueTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Recipe\\\\EntityCloneConfigActionTest\\:\\:grantPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Recipe/EntityCloneConfigActionTest.php', @@ -71405,12 +67163,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Render\\\\RenderCacheTest\\:\\:doTestUser1WithContexts\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Render\\\\RenderCacheTest\\:\\:grantPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php', @@ -71459,12 +67211,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\ServiceProvider\\\\ServiceProviderTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/ServiceProvider/ServiceProviderTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Session\\\\SuperUserPermissionsTest\\:\\:grantPermissions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Session/SuperUserPermissionsTest.php', @@ -71495,12 +67241,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\StringTranslation\\\\TranslationStringTest\\:\\:rebootAndPrepareSettings\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Test\\\\AssertMailTraitTest\\:\\:assertMailPattern\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Test/AssertMailTraitTest.php', @@ -71513,36 +67253,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Theme\\\\FrontMatterTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Theme/FrontMatterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Theme\\\\Stable9TemplateOverrideTest\\:\\:installAllModules\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Theme/Stable9TemplateOverrideTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Theme\\\\ThemeInstallerTest\\:\\:providerTestInstallThemeWithUnmetModuleDependencies\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Theme\\\\ThemeInstallerTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Theme\\\\TwigEnvironmentTest\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Theme\\\\SafeMarkupTestMarkup\\:\\:create\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php', @@ -71573,12 +67289,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\Core\\\\Validation\\\\UuidValidatorTest\\:\\:testUriHost\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Validation/UuidValidatorTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\KernelTestBase\\:\\:assertNoTitle\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/KernelTestBase.php', @@ -71753,18 +67463,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\KernelTestBaseShutdownTest\\:\\:shutdownFunction\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/KernelTestBaseShutdownTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\KernelTests\\\\KernelTestBaseShutdownTest\\:\\:shutdownFunction2\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/KernelTests/KernelTestBaseShutdownTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\KernelTests\\\\RouteProvider\\:\\:getCandidateOutlines\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/RouteProvider.php', @@ -72270,294 +67968,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationDoesNotThrowExceptionWhenAtSignIsNotFollowedByIdentifier\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationDontAcceptSingleQuotes\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationEnumInvalidLiteralDeclarationException\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationEnumInvalidTypeDeclarationException\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationEnumeratorException\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationEnumeratorLiteralException\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationTarget\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationTargetSyntaxError\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationThrowsExceptionWhenAtSignIsNotFollowedByIdentifierInNestedAnnotation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationWithAttributes\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationWithAttributesError\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationWithAttributesWithVarTypeArrayError\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationWithInvalidTargetDeclarationError\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationWithRequiredAttributes\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationWithRequiredAttributesWithoutContructor\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationWithTargetEmptyError\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationWithVarType\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationWithVarTypeArrayError\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationWithVarTypeError\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationWithoutClassIsIgnoredWithoutWarning\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAnnotationWithoutConstructor\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testArrayWithColon\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testAutoloadAnnotation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testBasicAnnotations\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testCastFloat\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testCastInt\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testCastNegativeFloat\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testCastNegativeInt\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testDefaultAnnotationValueIsNotOverwritten\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testDefaultValueAnnotations\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testEmptyArray\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testIgnorePHPDocThrowTag\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testInvalidContantName\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testInvalidIdentifierInAnnotation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testKeyHasNumber\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testNamespacedAnnotations\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testNestedArraysWithNestedAnnotation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testNotAnAnnotationClassIsIgnoredWithoutWarning\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testRegressionDDC575\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testSetValuesException\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testSupportClassConstants\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testSupportsEscapedQuotedValues\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testSyntaxErrorWithContextDescription\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testSyntaxErrorWithUnknownCharacters\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testTrailingCommaIsAllowed\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testTypicalMethodDocBlock\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testWithoutConstructorWhenHasNoProperties\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\DocParserTest\\:\\:testWithoutConstructorWhenIsNotDefaultValue\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\Fixtures\\\\AnnotationWithAttributes\\:\\:getInteger\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithAttributes.php', @@ -72576,42 +67986,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\StaticReflectionParserTest\\:\\:testAttribute\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/StaticReflectionParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\Ticket\\\\DCOM58Test\\:\\:testIssueGlobalNamespace\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Test.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\Ticket\\\\DCOM58Test\\:\\:testIssueMultipleNamespaces\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Test.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\Ticket\\\\DCOM58Test\\:\\:testIssueNamespaces\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Test.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\Ticket\\\\DCOM58Test\\:\\:testIssueSimpleAnnotationReader\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Test.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\Ticket\\\\DCOM58Test\\:\\:testIssueWithNamespacesOrImports\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Test.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Plugin\\\\Discovery\\\\TestAnnotation\\:\\:get\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Annotation/Plugin/Discovery/AnnotationBridgeDecoratorTest.php', @@ -72683,18 +68057,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\DependencyInjection\\\\MockService\\:\\:setContainer\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\DependencyInjection\\\\MockService\\:\\:setOtherConfigParameter\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php', -]; -$ignoreErrors[] = [ // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Symfony\\\\Component\\\\ExpressionLanguage\\\\Expression has an unused parameter \\$expression\\.$#', 'count' => 1, @@ -72995,12 +68357,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Render\\\\FormattableMarkupTest\\:\\:errorHandler\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Render/FormattableMarkupTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Component\\\\Render\\\\HtmlEscapedTextTest\\:\\:providerToString\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Render/HtmlEscapedTextTest.php', @@ -73247,12 +68603,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Access\\\\AccessManagerTest\\:\\:setupAccessChecker\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Access/AccessManagerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Access\\\\TestAccessCheckInterface\\:\\:access\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Access/AccessManagerTest.php', @@ -73265,12 +68615,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Access\\\\CsrfTokenGeneratorTest\\:\\:setupDefaultExpectations\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Access\\\\TestController\\:\\:accessAllow\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php', @@ -73379,12 +68723,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Asset\\\\TestLibraryDiscoveryParser\\:\\:setFileValidUri\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Authentication\\\\AuthenticationManagerTest\\:\\:providerTestDefaultFilter\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Authentication/AuthenticationManagerTest.php', @@ -73493,30 +68831,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Cache\\\\VariationCacheTest\\:\\:assertCacheBackendItem\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Cache/VariationCacheTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Cache\\\\VariationCacheTest\\:\\:assertVariationCacheItem\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Cache/VariationCacheTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Cache\\\\VariationCacheTest\\:\\:assertVariationCacheMiss\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Cache/VariationCacheTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Cache\\\\VariationCacheTest\\:\\:setVariationCacheItem\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Cache/VariationCacheTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Condition\\\\ConditionAccessResolverTraitTest\\:\\:providerTestResolveConditions\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Condition/ConditionAccessResolverTraitTest.php', @@ -73607,12 +68921,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Config\\\\Entity\\\\TestConfigEntityWithPluginCollections\\:\\:setPluginManager\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Config\\\\Entity\\\\ConfigEntityTypeTest\\:\\:providerGetPropertiesToExport\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php', @@ -73631,30 +68939,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Config\\\\ReadOnlyStorageTest\\:\\:setRandomFixtureConfig\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Config/ReadOnlyStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Config\\\\StorageComparerTest\\:\\:generateRandomData\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Config/StorageComparerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Config\\\\StorageComparerTest\\:\\:getConfigData\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Config/StorageComparerTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Config\\\\StorageCopyTraitTest\\:\\:generateRandomData\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Config/StorageCopyTraitTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Config\\\\StorageCopyTraitTest\\:\\:providerTestReplaceStorageContents\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Config/StorageCopyTraitTest.php', @@ -73667,12 +68957,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Config\\\\TestStorage\\:\\:setValue\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Config/StorageCopyTraitTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Controller\\\\ControllerResolverTest\\:\\:providerTestCreateController\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php', @@ -73745,12 +69029,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\CronTest\\:\\:resetTestingState\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/CronTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Database\\\\ConditionTest\\:\\:providerTestCompileWithSqlInjectionForOperator\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Database/ConditionTest.php', @@ -73907,41 +69185,17 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\DrupalKernel\\\\FakeAutoloader\\:\\:register\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\DrupalKernel\\\\FakeAutoloader\\:\\:unregister\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\DrupalKernel\\\\ValidateHostnameTest\\:\\:providerTestValidateHostname\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/DrupalKernel/ValidateHostnameTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\DrupalTest\\:\\:setMockContainerService\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/DrupalTest.php', -]; -$ignoreErrors[] = [ // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\EntityFieldManagerTest\\:\\:setUpEntityTypeDefinitions\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php', -]; -$ignoreErrors[] = [ // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 1, @@ -74062,24 +69316,12 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\EntityResolverManagerTest\\:\\:setupEntityTypes\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php', -]; -$ignoreErrors[] = [ // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 2, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityStorageBaseTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\EntityTypeBundleInfoTest\\:\\:setUpEntityTypeDefinitions\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php', -]; -$ignoreErrors[] = [ // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 2, @@ -74087,12 +69329,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\EntityTypeManagerTest\\:\\:setUpEntityTypeDefinitions\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\TestEntityForm\\:\\:getBaseFormId\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php', @@ -74128,18 +69364,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\TestEntityTypeManager\\:\\:setDiscovery\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\EntityTypeRepositoryTest\\:\\:setUpEntityTypeDefinitions\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityTypeRepositoryTest.php', -]; -$ignoreErrors[] = [ // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 1, @@ -74170,12 +69394,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\EntityUnitTest\\:\\:setupTestLoad\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php', -]; -$ignoreErrors[] = [ // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 1, @@ -74183,18 +69401,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\EntityUrlTest\\:\\:registerBundleInfo\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\EntityUrlTest\\:\\:registerLinkTemplate\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\FieldDefinitionTest\\:\\:factoryTypeProvider\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/FieldDefinitionTest.php', @@ -74207,12 +69413,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\KeyValueStore\\\\KeyValueEntityStorageTest\\:\\:setUpKeyValueEntityStorage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\KeyValueStore\\\\KeyValueEntityStorageTest\\:\\:testSaveConfigEntity\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php', @@ -74248,18 +69448,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\Sql\\\\SqlContentEntityStorageSchemaTest\\:\\:setUpStorageDefinition\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\Sql\\\\SqlContentEntityStorageSchemaTest\\:\\:setUpStorageSchema\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php', -]; -$ignoreErrors[] = [ // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 3, @@ -74267,18 +69455,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\Sql\\\\SqlContentEntityStorageTest\\:\\:setUpEntityStorage\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\Sql\\\\SqlContentEntityStorageTest\\:\\:setUpModuleHandlerNoImplementations\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\Sql\\\\SqlContentEntityStorageTestEntityInterface\\:\\:postLoad\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php', @@ -74339,30 +69515,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Extension\\\\ExtensionDiscoveryTest\\:\\:addFileToFilesystemStructure\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Extension/ExtensionDiscoveryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Extension\\\\ExtensionListTest\\:\\:providerCheckIncompatibility\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Extension\\\\TestExtension\\:\\:setExtensionDiscovery\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Extension\\\\TestExtension\\:\\:setInstalledExtensions\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Extension\\\\InfoParserUnitTest\\:\\:providerCoreIncompatibility\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php', @@ -74387,30 +69545,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Extension\\\\TestThemeEngineExtensionList\\:\\:setExtensionDiscovery\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Extension/ThemeExtensionListTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Extension\\\\TestThemeExtensionList\\:\\:setExtensionDiscovery\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Extension/ThemeExtensionListTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Extension\\\\StubThemeHandler\\:\\:clearCssCache\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Extension/ThemeHandlerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Extension\\\\StubThemeHandler\\:\\:themeRegistryRebuild\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Extension/ThemeHandlerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Function module_handler_test_hook_include\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/hook_include.inc', @@ -74453,12 +69587,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Field\\\\FieldDefinitionListenerTest\\:\\:setUpEntityTypeManager\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Field/FieldDefinitionListenerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Field\\\\FieldFilteredMarkupTest\\:\\:providerTestCreate\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Field/FieldFilteredMarkupTest.php', @@ -74537,12 +69665,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Form\\\\TestFormWithPredefinedForm\\:\\:setForm\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Form/FormBuilderTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Form\\\\FormElementHelperTest\\:\\:getElementByNameProvider\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Form/FormElementHelperTest.php', @@ -74790,60 +69912,18 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Layout\\\\LayoutPluginManagerTest\\:\\:setUpFilesystem\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Layout/LayoutPluginManagerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Logger\\\\LogMessageParserTest\\:\\:providerTestParseMessagePlaceholders\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Logger/LogMessageParserTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Mail\\\\MailManagerTest\\:\\:setUpMailManager\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Mail/MailManagerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Mail\\\\TestMailManager\\:\\:setDiscovery\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Mail/MailManagerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Menu\\\\ContextualLinkDefaultTest\\:\\:setupContextualLinkDefault\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Menu\\\\DefaultMenuLinkTreeManipulatorsTest\\:\\:mockTree\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Menu\\\\LocalActionDefaultTest\\:\\:setupLocalActionDefault\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Menu/LocalActionDefaultTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Menu\\\\LocalActionManagerTest\\:\\:getActionsForRouteProvider\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Menu/LocalActionManagerTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Menu\\\\LocalTaskDefaultTest\\:\\:setupLocalTaskDefault\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Menu\\\\TestLocalTaskDefault\\:\\:setRouteProvider\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php', @@ -74862,30 +69942,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Menu\\\\LocalTaskManagerTest\\:\\:setupFactory\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Menu\\\\LocalTaskManagerTest\\:\\:setupFactoryAndLocalTaskPlugins\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Menu\\\\LocalTaskManagerTest\\:\\:setupLocalTaskManager\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Menu\\\\LocalTaskManagerTest\\:\\:setupNullCacheabilityMetadataValidation\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Menu\\\\MenuLinkMock\\:\\:create\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php', @@ -74922,12 +69978,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\ParamConverter\\\\EntityConverterTest\\:\\:setUpMocks\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/ParamConverter/EntityConverterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\ParamConverter\\\\EntityRevisionParamConverterTest\\:\\:getTestRoute\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/ParamConverter/EntityRevisionParamConverterTest.php', @@ -74982,12 +70032,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Plugin\\\\CategorizingPluginManager\\:\\:processDefinition\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Plugin\\\\CategorizingPluginManager\\:\\:processDefinitionCategory\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php', @@ -75017,12 +70061,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Plugin\\\\Context\\\\ContextTest\\:\\:setUpDefaultValue\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Plugin\\\\Context\\\\EntityContextDefinitionIsSatisfiedTest\\:\\:providerTestIsSatisfiedBy\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionIsSatisfiedTest.php', @@ -75076,18 +70114,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Plugin\\\\ConfigurablePlugin\\:\\:setConfiguration\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Plugin/DefaultSingleLazyPluginCollectionTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Plugin\\\\DefaultSingleLazyPluginCollectionTest\\:\\:setupPluginCollection\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Plugin/DefaultSingleLazyPluginCollectionTest.php', -]; -$ignoreErrors[] = [ // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Tests\\\\Core\\\\Plugin\\\\Discovery\\\\TestContainerDerivativeDiscovery has an unused parameter \\$example_service\\.$#', 'count' => 1, @@ -75166,18 +70192,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Plugin\\\\TestPluginDependency\\:\\:setModuleHandler\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Plugin/PluginDependencyTraitTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Plugin\\\\TestPluginDependency\\:\\:setThemeHandler\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Plugin/PluginDependencyTraitTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Plugin\\\\TestPluginDependency\\:\\:themeHandler\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Plugin/PluginDependencyTraitTest.php', @@ -75339,12 +70353,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Render\\\\RendererPlaceholdersTest\\:\\:assertPlaceholderRenderCache\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Render\\\\RendererTest\\:\\:providerTestAddCacheableDependency\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Render/RendererTest.php', @@ -75423,12 +70431,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Routing\\\\AccessAwareRouterTest\\:\\:setupRouter\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Routing/AccessAwareRouterTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Routing\\\\MockRouterInterface\\:\\:add\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Routing/AccessAwareRouterTest.php', @@ -75447,24 +70449,12 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Routing\\\\RedirectDestinationTest\\:\\:setupUrlGenerator\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Routing\\\\RequestFormatRouteFilterTest\\:\\:filterProvider\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Routing/RequestFormatRouteFilterTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Routing\\\\TestRouteBuilder\\:\\:setYamlDiscovery\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Routing\\\\TestRouteSubscriber\\:\\:routesFromArray\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php', @@ -75561,12 +70551,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Security\\\\RequestSanitizerTest\\:\\:errorHandler\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Security/RequestSanitizerTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Security\\\\RequestSanitizerTest\\:\\:providerTestAcceptableDestinations\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Security/RequestSanitizerTest.php', @@ -75591,12 +70575,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\StackMiddleware\\\\ReverseProxyMiddlewareTest\\:\\:trustedHeadersAreSet\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\State\\\\StateTest\\:\\:testSetBeforeGet\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/State/StateTest.php', @@ -75627,12 +70605,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\StringTranslation\\\\TranslatableMarkupTest\\:\\:errorHandler\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Template\\\\AttributeTest\\:\\:providerTestAttributeValues\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Template/AttributeTest.php', @@ -75771,12 +70743,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestDiscoveryTest\\:\\:setupVfsWithTestClasses\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method class@anonymous/core/tests/Drupal/Tests/Core/Test/TestSetupTraitTest\\.php\\:39\\:\\:changeDatabasePrefix\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Test/TestSetupTraitTest.php', @@ -75854,12 +70820,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Update\\\\UpdateRegistryTest\\:\\:setupBasicExtensions\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Update/UpdateRegistryTest.php', -]; -$ignoreErrors[] = [ // identifier: includeOnce.fileNotFound 'message' => '#^Path in include_once\\(\\) "vfs\\://drupal/sites/default/modules/module_a/module_a\\.post_update\\.php" is not a file or it does not exist\\.$#', 'count' => 1, @@ -75873,12 +70833,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\TestUrl\\:\\:setAccessManager\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/UrlTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\UrlTest\\:\\:accessProvider\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/UrlTest.php', @@ -75957,23 +70911,11 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Utility\\\\TokenTest\\:\\:setupSiteTokens\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Utility/TokenTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Utility\\\\UnroutedUrlAssemblerTest\\:\\:providerTestAssembleWithExternalUrl\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php', ]; $ignoreErrors[] = [ - // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Utility\\\\UnroutedUrlAssemblerTest\\:\\:setupRequestStack\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php', -]; -$ignoreErrors[] = [ // identifier: method.deprecated 'message' => '#^Call to deprecated method getConfig\\(\\) of interface GuzzleHttp\\\\ClientInterface\\: ClientInterface\\:\\:getConfig will be removed in guzzlehttp/guzzle\\:8\\.0\\.$#', @@ -76000,12 +70942,6 @@ $ignoreErrors[] = [ ]; $ignoreErrors[] = [ // identifier: missingType.return - 'message' => '#^Method Drupal\\\\Tests\\\\PhpCs\\\\SortTest\\:\\:assertSorted\\(\\) has no return type specified\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Drupal/Tests/PhpCs/SortTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\WebAssert\\:\\:assert\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/WebAssert.php', diff --git a/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php b/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php index 0abdab92dc9..d9df470ed7a 100644 --- a/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php +++ b/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php @@ -62,7 +62,7 @@ class BigPipeTest extends BrowserTestBase { * * @see setUp() */ - protected function performMetaRefresh() { + protected function performMetaRefresh(): void { $this->maximumMetaRefreshCount = 1; $this->checkForMetaRefresh(); $this->maximumMetaRefreshCount = 0; @@ -438,7 +438,7 @@ class BigPipeTest extends BrowserTestBase { /** * Ensures CSRF tokens can be generated for the current user's session. */ - protected function setCsrfTokenSeedInTestEnvironment() { + protected function setCsrfTokenSeedInTestEnvironment(): void { // Retrieve the CSRF token from the child site from its serialized session // record in the database. $session_data = $this->container->get('session_handler.write_safe')->read($this->getSession()->getCookie($this->getSessionName())); diff --git a/core/modules/block/tests/src/Functional/BlockTest.php b/core/modules/block/tests/src/Functional/BlockTest.php index 9bf723d5786..5b99aa839bd 100644 --- a/core/modules/block/tests/src/Functional/BlockTest.php +++ b/core/modules/block/tests/src/Functional/BlockTest.php @@ -388,7 +388,7 @@ class BlockTest extends BlockTestBase { * The machine name of the theme region to move the block to, for example * 'header' or 'sidebar_first'. */ - public function moveBlockToRegion(array $block, $region) { + public function moveBlockToRegion(array $block, $region): void { // Set the created block to a specific region. $block += ['theme' => $this->config('system.theme')->get('default')]; $edit = []; diff --git a/core/modules/block/tests/src/Functional/BlockXssTest.php b/core/modules/block/tests/src/Functional/BlockXssTest.php index cb64983565d..1548cc4a85d 100644 --- a/core/modules/block/tests/src/Functional/BlockXssTest.php +++ b/core/modules/block/tests/src/Functional/BlockXssTest.php @@ -101,7 +101,7 @@ class BlockXssTest extends BrowserTestBase { /** * Tests XSS coming from View block labels. */ - protected function doViewTest() { + protected function doViewTest(): void { // Create a View without a custom label for its block Display. The // admin_label of the block then becomes just the View's label. $view = View::create([ @@ -151,7 +151,7 @@ class BlockXssTest extends BrowserTestBase { /** * Tests XSS coming from Menu block labels. */ - protected function doMenuTest() { + protected function doMenuTest(): void { Menu::create([ 'id' => $this->randomMachineName(), 'label' => '<script>alert("menu");</script>', @@ -167,7 +167,7 @@ class BlockXssTest extends BrowserTestBase { /** * Tests XSS coming from Block Content block info. */ - protected function doBlockContentTest() { + protected function doBlockContentTest(): void { BlockContentType::create([ 'id' => 'basic', 'label' => 'basic', diff --git a/core/modules/block/tests/src/Kernel/BlockStorageUnitTest.php b/core/modules/block/tests/src/Kernel/BlockStorageUnitTest.php index 74447fa6eae..20a394f844f 100644 --- a/core/modules/block/tests/src/Kernel/BlockStorageUnitTest.php +++ b/core/modules/block/tests/src/Kernel/BlockStorageUnitTest.php @@ -56,7 +56,7 @@ class BlockStorageUnitTest extends KernelTestBase { /** * Tests the creation of blocks. */ - protected function createTests() { + protected function createTests(): void { // Attempt to create a block without a plugin. try { $entity = $this->controller->create([]); @@ -111,7 +111,7 @@ class BlockStorageUnitTest extends KernelTestBase { /** * Tests the loading of blocks. */ - protected function loadTests() { + protected function loadTests(): void { $entity = $this->controller->load('test_block'); $this->assertInstanceOf(Block::class, $entity); @@ -126,7 +126,7 @@ class BlockStorageUnitTest extends KernelTestBase { /** * Tests the deleting of blocks. */ - protected function deleteTests() { + protected function deleteTests(): void { $entity = $this->controller->load('test_block'); // Ensure that the storage isn't currently empty. diff --git a/core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php b/core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php index 83be3828f74..6866119b0d8 100644 --- a/core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php +++ b/core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php @@ -147,7 +147,7 @@ class BlockViewBuilderTest extends KernelTestBase { * * @see ::testBlockViewBuilderCache() */ - protected function verifyRenderCacheHandling() { + protected function verifyRenderCacheHandling(): void { /** @var \Drupal\Core\Cache\VariationCacheFactoryInterface $variation_cache_factory */ $variation_cache_factory = $this->container->get('variation_cache_factory'); $cache_bin = $variation_cache_factory->get('render'); diff --git a/core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php b/core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php index 802d93ba4c9..a8734928932 100644 --- a/core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php +++ b/core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php @@ -59,7 +59,7 @@ class BlockContentTranslationUITest extends ContentTranslationUITestBase { /** * {@inheritdoc} */ - protected function setupBundle() { + protected function setupBundle(): void { // Create the basic bundle since it is provided by standard. $bundle = BlockContentType::create([ 'id' => $this->bundle, @@ -109,7 +109,7 @@ class BlockContentTranslationUITest extends ContentTranslationUITestBase { /** * {@inheritdoc} */ - protected function doTestBasicTranslation() { + protected function doTestBasicTranslation(): void { parent::doTestBasicTranslation(); // Ensure that a block translation can be created using the same description @@ -137,7 +137,7 @@ class BlockContentTranslationUITest extends ContentTranslationUITestBase { /** * {@inheritdoc} */ - protected function doTestTranslationEdit() { + protected function doTestTranslationEdit(): void { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); diff --git a/core/modules/breakpoint/tests/src/Unit/BreakpointTest.php b/core/modules/breakpoint/tests/src/Unit/BreakpointTest.php index b91e65c5fed..af58e8aa1c8 100644 --- a/core/modules/breakpoint/tests/src/Unit/BreakpointTest.php +++ b/core/modules/breakpoint/tests/src/Unit/BreakpointTest.php @@ -56,7 +56,7 @@ class BreakpointTest extends UnitTestCase { /** * Sets up the breakpoint defaults. */ - protected function setupBreakpoint() { + protected function setupBreakpoint(): void { $this->breakpoint = new Breakpoint([], $this->pluginId, $this->pluginDefinition); $this->breakpoint->setStringTranslation($this->stringTranslation); } diff --git a/core/modules/ckeditor5/tests/src/Functional/ImageUploadTest.php b/core/modules/ckeditor5/tests/src/Functional/ImageUploadTest.php index 29e50adaabf..95bd418fd33 100644 --- a/core/modules/ckeditor5/tests/src/Functional/ImageUploadTest.php +++ b/core/modules/ckeditor5/tests/src/Functional/ImageUploadTest.php @@ -192,7 +192,7 @@ class ImageUploadTest extends BrowserTestBase { * * @throws \Drupal\Core\Entity\EntityStorageException */ - protected function createBasicFormat() { + protected function createBasicFormat(): void { $basic_html_format = FilterFormat::create([ 'format' => 'basic_html', 'name' => 'Basic HTML', diff --git a/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5Test.php b/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5Test.php index 7715a9f84ed..10a32513fb2 100644 --- a/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5Test.php +++ b/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5Test.php @@ -181,7 +181,7 @@ class CKEditor5Test extends CKEditor5TestBase { /** * Helper to configure CKEditor5 with Language plugin. */ - public function languageOfPartsPluginInitialConfigurationHelper($page, $assert_session) { + public function languageOfPartsPluginInitialConfigurationHelper($page, $assert_session): void { $this->createNewTextFormat($page, $assert_session); // Press arrow down key to add the button to the active toolbar. $this->assertNotEmpty($assert_session->waitForElement('css', '.ckeditor5-toolbar-item-textPartLanguage')); @@ -219,7 +219,7 @@ JS; /** * Helper to set language list option for CKEditor. */ - public function languageOfPartsPluginConfigureLanguageListHelper($page, $assert_session, $option) { + public function languageOfPartsPluginConfigureLanguageListHelper($page, $assert_session, $option): void { $this->drupalGet('admin/config/content/formats/manage/ckeditor5'); $this->assertNotEmpty($assert_session->waitForElement('css', 'a[href^="#edit-editor-settings-plugins-ckeditor5-language"]')); @@ -238,7 +238,7 @@ JS; /** * Validate expected languages available in editor. */ - public function languageOfPartsPluginTestHelper($page, $assert_session, $configured_languages) { + public function languageOfPartsPluginTestHelper($page, $assert_session, $configured_languages): void { $this->drupalGet('node/add/page'); $this->assertNotEmpty($assert_session->waitForText('Choose language')); diff --git a/core/modules/ckeditor5/tests/src/Kernel/CKEditor5PluginManagerTest.php b/core/modules/ckeditor5/tests/src/Kernel/CKEditor5PluginManagerTest.php index 7c0dd5adc91..4f7adb49e87 100644 --- a/core/modules/ckeditor5/tests/src/Kernel/CKEditor5PluginManagerTest.php +++ b/core/modules/ckeditor5/tests/src/Kernel/CKEditor5PluginManagerTest.php @@ -93,7 +93,7 @@ class CKEditor5PluginManagerTest extends KernelTestBase { /** * {@inheritdoc} */ - protected function enableModules(array $modules) { + protected function enableModules(array $modules): void { parent::enableModules($modules); // Ensure the CKEditor 5 plugin manager instance on the test reflects the // status after the module is installed. diff --git a/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php b/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php index 62048fd54c1..ebee837f4de 100644 --- a/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php +++ b/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php @@ -233,7 +233,7 @@ class CommentNonNodeTest extends BrowserTestBase { * @param bool $approval * Operation is found on approval page. */ - public function performCommentOperation($comment, $operation, $approval = FALSE) { + public function performCommentOperation($comment, $operation, $approval = FALSE): void { $edit = []; $edit['operation'] = $operation; $edit['comments[' . $comment->id() . ']'] = TRUE; diff --git a/core/modules/comment/tests/src/Functional/CommentTranslationUITest.php b/core/modules/comment/tests/src/Functional/CommentTranslationUITest.php index 531a54127b5..79779f6be3a 100644 --- a/core/modules/comment/tests/src/Functional/CommentTranslationUITest.php +++ b/core/modules/comment/tests/src/Functional/CommentTranslationUITest.php @@ -77,7 +77,7 @@ class CommentTranslationUITest extends ContentTranslationUITestBase { /** * {@inheritdoc} */ - public function setupBundle() { + public function setupBundle(): void { parent::setupBundle(); $this->drupalCreateContentType(['type' => 'article', 'name' => 'article']); // Add a comment field to the article content type. @@ -139,7 +139,7 @@ class CommentTranslationUITest extends ContentTranslationUITestBase { /** * {@inheritdoc} */ - protected function doTestPublishedStatus() { + protected function doTestPublishedStatus(): void { $entity_type_manager = \Drupal::entityTypeManager(); $storage = $entity_type_manager->getStorage($this->entityTypeId); @@ -163,7 +163,7 @@ class CommentTranslationUITest extends ContentTranslationUITestBase { /** * {@inheritdoc} */ - protected function doTestAuthoringInfo() { + protected function doTestAuthoringInfo(): void { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); @@ -219,7 +219,7 @@ class CommentTranslationUITest extends ContentTranslationUITestBase { /** * {@inheritdoc} */ - protected function doTestTranslationEdit() { + protected function doTestTranslationEdit(): void { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); diff --git a/core/modules/comment/tests/src/Kernel/Views/CommentAdminViewTest.php b/core/modules/comment/tests/src/Kernel/Views/CommentAdminViewTest.php index a0e4ae3e38a..177a25335bb 100644 --- a/core/modules/comment/tests/src/Kernel/Views/CommentAdminViewTest.php +++ b/core/modules/comment/tests/src/Kernel/Views/CommentAdminViewTest.php @@ -151,7 +151,7 @@ class CommentAdminViewTest extends ViewsKernelTestBase { * @param string $display_id * The display ID. */ - protected function doTestFilters($display_id) { + protected function doTestFilters($display_id): void { $comment = $this->comments[0]; $comment_anonymous = $this->comments[1]; /** @var \Drupal\Core\Session\AccountSwitcherInterface $account_switcher */ diff --git a/core/modules/config/tests/src/Functional/ConfigImportUITest.php b/core/modules/config/tests/src/Functional/ConfigImportUITest.php index 4a559c29310..4a92ef2414a 100644 --- a/core/modules/config/tests/src/Functional/ConfigImportUITest.php +++ b/core/modules/config/tests/src/Functional/ConfigImportUITest.php @@ -394,7 +394,7 @@ class ConfigImportUITest extends BrowserTestBase { $this->assertSession()->pageTextContains('Can not uninstall the Configuration module as part of a configuration synchronization through the user interface.'); } - public function prepareSiteNameUpdate($new_site_name) { + public function prepareSiteNameUpdate($new_site_name): void { $sync = $this->container->get('config.storage.sync'); // Create updated configuration object. $config_data = $this->config('system.site')->get(); diff --git a/core/modules/config/tests/src/Functional/ConfigInstallProfileUnmetDependenciesTest.php b/core/modules/config/tests/src/Functional/ConfigInstallProfileUnmetDependenciesTest.php index df839d0ff1d..9cf4407470a 100644 --- a/core/modules/config/tests/src/Functional/ConfigInstallProfileUnmetDependenciesTest.php +++ b/core/modules/config/tests/src/Functional/ConfigInstallProfileUnmetDependenciesTest.php @@ -40,7 +40,7 @@ class ConfigInstallProfileUnmetDependenciesTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); $this->copyTestingOverrides(); } @@ -48,7 +48,7 @@ class ConfigInstallProfileUnmetDependenciesTest extends InstallerTestBase { /** * {@inheritdoc} */ - public function setUpSettings() { + public function setUpSettings(): void { // During set up an UnmetDependenciesException should be thrown, which will // be re-thrown by TestHttpClientMiddleware as a standard Exception. try { @@ -62,7 +62,7 @@ class ConfigInstallProfileUnmetDependenciesTest extends InstallerTestBase { /** * {@inheritdoc} */ - public function setUpSite() { + public function setUpSite(): void { // This step can no longer be reached. } @@ -72,7 +72,7 @@ class ConfigInstallProfileUnmetDependenciesTest extends InstallerTestBase { * So we can change the configuration to include a dependency that can not be * met. File API functions are not available yet. */ - protected function copyTestingOverrides() { + protected function copyTestingOverrides(): void { $dest = $this->siteDirectory . '/profiles/testing_config_overrides'; mkdir($dest, 0777, TRUE); $source = DRUPAL_ROOT . '/core/profiles/testing_config_overrides'; diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php index 87bddc258e8..feecfb03190 100644 --- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php +++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php @@ -29,7 +29,7 @@ class ConfigTranslationInstallTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpLanguage() { + protected function setUpLanguage(): void { // Place custom local translations in the translations directory. mkdir(DRUPAL_ROOT . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE); file_put_contents(DRUPAL_ROOT . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.eo.po', $this->getPo('eo')); diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php index 4947c4b504f..563cb554919 100644 --- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php +++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php @@ -101,7 +101,7 @@ class ConfigTranslationListUiTest extends BrowserTestBase { * There are no blocks placed in the testing profile. Add one, then check * for Translate operation. */ - protected function doBlockListTest() { + protected function doBlockListTest(): void { // Add a test block, any block will do. // Set the machine name so the translate link can be built later. $id = $this->randomMachineName(16); @@ -122,7 +122,7 @@ class ConfigTranslationListUiTest extends BrowserTestBase { /** * Tests the menu listing for the translate operation. */ - protected function doMenuListTest() { + protected function doMenuListTest(): void { // Create a test menu to decouple looking for translate operations link so // this does not test more than necessary. $this->drupalGet('admin/structure/menu/add'); @@ -170,7 +170,7 @@ class ConfigTranslationListUiTest extends BrowserTestBase { /** * Tests the vocabulary listing for the translate operation. */ - protected function doVocabularyListTest() { + protected function doVocabularyListTest(): void { // Create a test vocabulary to decouple looking for translate operations // link so this does not test more than necessary. $vocabulary = Vocabulary::create([ @@ -200,7 +200,7 @@ class ConfigTranslationListUiTest extends BrowserTestBase { /** * Tests the content block listing for the translate operation. */ - public function doCustomContentTypeListTest() { + public function doCustomContentTypeListTest(): void { // Create a test block type to decouple looking for translate // operations link so this does not test more than necessary. $block_content_type = BlockContentType::create([ @@ -225,7 +225,7 @@ class ConfigTranslationListUiTest extends BrowserTestBase { /** * Tests the contact forms listing for the translate operation. */ - public function doContactFormsListTest() { + public function doContactFormsListTest(): void { // Create a test contact form to decouple looking for translate operations // link so this does not test more than necessary. $contact_form = ContactForm::create([ @@ -249,7 +249,7 @@ class ConfigTranslationListUiTest extends BrowserTestBase { /** * Tests the content type listing for the translate operation. */ - public function doContentTypeListTest() { + public function doContentTypeListTest(): void { // Create a test content type to decouple looking for translate operations // link so this does not test more than necessary. $content_type = $this->drupalCreateContentType([ @@ -272,7 +272,7 @@ class ConfigTranslationListUiTest extends BrowserTestBase { /** * Tests the formats listing for the translate operation. */ - public function doFormatsListTest() { + public function doFormatsListTest(): void { // Create a test format to decouple looking for translate operations // link so this does not test more than necessary. $filter_format = FilterFormat::create([ @@ -296,7 +296,7 @@ class ConfigTranslationListUiTest extends BrowserTestBase { /** * Tests the shortcut listing for the translate operation. */ - public function doShortcutListTest() { + public function doShortcutListTest(): void { // Create a test shortcut to decouple looking for translate operations // link so this does not test more than necessary. $shortcut = ShortcutSet::create([ @@ -320,7 +320,7 @@ class ConfigTranslationListUiTest extends BrowserTestBase { /** * Tests the role listing for the translate operation. */ - public function doUserRoleListTest() { + public function doUserRoleListTest(): void { // Create a test role to decouple looking for translate operations // link so this does not test more than necessary. $role_id = $this->randomMachineName(16); @@ -341,7 +341,7 @@ class ConfigTranslationListUiTest extends BrowserTestBase { /** * Tests the language listing for the translate operation. */ - public function doLanguageListTest() { + public function doLanguageListTest(): void { // Create a test language to decouple looking for translate operations // link so this does not test more than necessary. ConfigurableLanguage::createFromLangcode('ga')->save(); @@ -361,7 +361,7 @@ class ConfigTranslationListUiTest extends BrowserTestBase { /** * Tests the image style listing for the translate operation. */ - public function doImageStyleListTest() { + public function doImageStyleListTest(): void { // Get the image style listing. $this->drupalGet('admin/config/media/image-styles'); @@ -377,7 +377,7 @@ class ConfigTranslationListUiTest extends BrowserTestBase { /** * Tests the responsive image mapping listing for the translate operation. */ - public function doResponsiveImageListTest() { + public function doResponsiveImageListTest(): void { $edit = []; $edit['label'] = $this->randomMachineName(); $edit['id'] = strtolower($edit['label']); @@ -402,7 +402,7 @@ class ConfigTranslationListUiTest extends BrowserTestBase { /** * Tests the field listing for the translate operation. */ - public function doFieldListTest() { + public function doFieldListTest(): void { // Create a base content type. $content_type = $this->drupalCreateContentType([ 'type' => $this->randomMachineName(16), @@ -458,7 +458,7 @@ class ConfigTranslationListUiTest extends BrowserTestBase { /** * Tests the date format listing for the translate operation. */ - public function doDateFormatListTest() { + public function doDateFormatListTest(): void { // Get the date format listing. $this->drupalGet('admin/config/regional/date-time'); @@ -477,7 +477,7 @@ class ConfigTranslationListUiTest extends BrowserTestBase { * @param string $link * URL of the settings page to test. */ - public function doSettingsPageTest($link) { + public function doSettingsPageTest($link): void { // Get the settings page. $this->drupalGet($link); diff --git a/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php b/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php index 8982dbb808e..5bbe2b9a309 100644 --- a/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php +++ b/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php @@ -679,7 +679,7 @@ class TestConfigNamesMapper extends ConfigNamesMapper { * @param array $config_names * The configuration names. */ - public function setConfigNames(array $config_names) { + public function setConfigNames(array $config_names): void { $this->pluginDefinition['names'] = $config_names; } @@ -689,7 +689,7 @@ class TestConfigNamesMapper extends ConfigNamesMapper { * @var \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The config factory to set. */ - public function setConfigFactory(ConfigFactoryInterface $config_factory) { + public function setConfigFactory(ConfigFactoryInterface $config_factory): void { $this->configFactory = $config_factory; } diff --git a/core/modules/contact/tests/src/Functional/ContactPersonalTest.php b/core/modules/contact/tests/src/Functional/ContactPersonalTest.php index 2eb8a79adf8..c4c7a1db5d3 100644 --- a/core/modules/contact/tests/src/Functional/ContactPersonalTest.php +++ b/core/modules/contact/tests/src/Functional/ContactPersonalTest.php @@ -299,7 +299,7 @@ class ContactPersonalTest extends BrowserTestBase { * @param bool $contact_value * (optional) The value the contact field should be set too. */ - protected function checkContactAccess($response, $contact_value = NULL) { + protected function checkContactAccess($response, $contact_value = NULL): void { $this->drupalLogin($this->adminUser); $this->drupalGet('admin/people/create'); if ($this->config('contact.settings')->get('user_default_enabled', TRUE)) { diff --git a/core/modules/contact/tests/src/Functional/ContactSitewideTest.php b/core/modules/contact/tests/src/Functional/ContactSitewideTest.php index a2d877b3861..b90d0dbade1 100644 --- a/core/modules/contact/tests/src/Functional/ContactSitewideTest.php +++ b/core/modules/contact/tests/src/Functional/ContactSitewideTest.php @@ -521,7 +521,7 @@ class ContactSitewideTest extends BrowserTestBase { * @param array $third_party_settings * Array of third party settings to be added to the posted form data. */ - public function addContactForm($id, $label, $recipients, $reply, $selected, $message = 'Your message has been sent.', $third_party_settings = []) { + public function addContactForm($id, $label, $recipients, $reply, $selected, $message = 'Your message has been sent.', $third_party_settings = []): void { $edit = []; $edit['label'] = $label; $edit['id'] = $id; @@ -558,7 +558,7 @@ class ContactSitewideTest extends BrowserTestBase { * @param string $redirect * The path where user will be redirect after this form has been submitted.. */ - public function updateContactForm($id, $label, $recipients, $reply, $selected, $message = 'Your message has been sent.', $redirect = '/') { + public function updateContactForm($id, $label, $recipients, $reply, $selected, $message = 'Your message has been sent.', $redirect = '/'): void { $edit = []; $edit['label'] = $label; $edit['recipients'] = $recipients; @@ -584,7 +584,7 @@ class ContactSitewideTest extends BrowserTestBase { * @param string $message * The message body. */ - public function submitContact($name, $mail, $subject, $id, $message) { + public function submitContact($name, $mail, $subject, $id, $message): void { $edit = []; $edit['name'] = $name; $edit['mail'] = $mail; @@ -603,7 +603,7 @@ class ContactSitewideTest extends BrowserTestBase { /** * Deletes all forms. */ - public function deleteContactForms() { + public function deleteContactForms(): void { $contact_forms = ContactForm::loadMultiple(); foreach ($contact_forms as $id => $contact_form) { if ($id == 'personal') { diff --git a/core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php b/core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php index fd86154bf8f..e7c0b8f9e8f 100644 --- a/core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php +++ b/core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php @@ -251,7 +251,7 @@ class ViewsModerationStateFilterTest extends ViewTestBase { * An associative array mapping the columns of the result set from the view * (as keys) and the expected result set (as values). */ - protected function executeAndAssertIdenticalResultset(ViewEntityInterface $view_entity, $expected, $column_map) { + protected function executeAndAssertIdenticalResultset(ViewEntityInterface $view_entity, $expected, $column_map): void { $executable = $this->container->get('views.executable')->get($view_entity); $this->executeView($executable); $this->assertIdenticalResultset($executable, $expected, $column_map); diff --git a/core/modules/content_moderation/tests/src/Kernel/EntityOperationsTest.php b/core/modules/content_moderation/tests/src/Kernel/EntityOperationsTest.php index 69c1b93a9c7..f7ab296b5f9 100644 --- a/core/modules/content_moderation/tests/src/Kernel/EntityOperationsTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/EntityOperationsTest.php @@ -46,7 +46,7 @@ class EntityOperationsTest extends KernelTestBase { /** * Creates a page node type to test with, ensuring that it's moderated. */ - protected function createNodeType() { + protected function createNodeType(): void { $node_type = NodeType::create([ 'type' => 'page', 'name' => 'Page', diff --git a/core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php b/core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php index eac3febc212..cfa1b9101e3 100644 --- a/core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php @@ -142,7 +142,7 @@ class EntityTypeInfoTest extends KernelTestBase { /** * Add moderation to an entity type and bundle. */ - protected function enableModeration($entity_type_id, $bundle) { + protected function enableModeration($entity_type_id, $bundle): void { $workflow = $this->createEditorialWorkflow(); $workflow->getTypePlugin()->addEntityTypeAndBundle($entity_type_id, $bundle); $workflow->save(); diff --git a/core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php b/core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php index 80e274146db..844bfc8b688 100644 --- a/core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php @@ -301,7 +301,7 @@ class WorkspacesContentModerationStateTest extends ContentModerationStateTest { /** * {@inheritdoc} */ - protected function addEntityTypeAndBundleToWorkflow(WorkflowInterface $workflow, $entity_type_id, $bundle) { + protected function addEntityTypeAndBundleToWorkflow(WorkflowInterface $workflow, $entity_type_id, $bundle): void { $this->workspaceManager->executeOutsideWorkspace(function () use ($workflow, $entity_type_id, $bundle) { $this->traitAddEntityTypeAndBundleToWorkflow($workflow, $entity_type_id, $bundle); }); diff --git a/core/modules/content_moderation/tests/src/Unit/ContentModerationRouteSubscriberTest.php b/core/modules/content_moderation/tests/src/Unit/ContentModerationRouteSubscriberTest.php index 9d703c71ff0..6180db9cce2 100644 --- a/core/modules/content_moderation/tests/src/Unit/ContentModerationRouteSubscriberTest.php +++ b/core/modules/content_moderation/tests/src/Unit/ContentModerationRouteSubscriberTest.php @@ -42,7 +42,7 @@ class ContentModerationRouteSubscriberTest extends UnitTestCase { /** * Creates the entity type manager mock returning entity type objects. */ - protected function setupEntityTypes() { + protected function setupEntityTypes(): void { $definition = $this->createMock(EntityTypeInterface::class); $definition->expects($this->any()) ->method('getClass') diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationMetadataFieldsTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationMetadataFieldsTest.php index 6b3769d5f76..05e740dbfc0 100644 --- a/core/modules/content_translation/tests/src/Functional/ContentTranslationMetadataFieldsTest.php +++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationMetadataFieldsTest.php @@ -38,7 +38,7 @@ class ContentTranslationMetadataFieldsTest extends ContentTranslationTestBase { /** * {@inheritdoc} */ - protected function setupBundle() { + protected function setupBundle(): void { parent::setupBundle(); $this->createContentType(['type' => $this->bundle]); } diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationRevisionTranslationDeletionTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationRevisionTranslationDeletionTest.php index 3e123a5ca4f..3fefa0e7797 100644 --- a/core/modules/content_translation/tests/src/Functional/ContentTranslationRevisionTranslationDeletionTest.php +++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationRevisionTranslationDeletionTest.php @@ -50,7 +50,7 @@ class ContentTranslationRevisionTranslationDeletionTest extends ContentTranslati * @param int $index * The test run index. */ - public function doTestOverview($index) { + public function doTestOverview($index): void { $this->drupalLogin($this->currentAccount); // Create a test node. diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationSyncImageTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationSyncImageTest.php index e457f58f80b..006f28987c2 100644 --- a/core/modules/content_translation/tests/src/Functional/ContentTranslationSyncImageTest.php +++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationSyncImageTest.php @@ -64,7 +64,7 @@ class ContentTranslationSyncImageTest extends ContentTranslationTestBase { /** * Creates the test image field. */ - protected function setupTestFields() { + protected function setupTestFields(): void { $this->fieldName = 'field_test_et_ui_image'; $this->cardinality = 3; diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationUntranslatableFieldsTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationUntranslatableFieldsTest.php index 02945baf525..9cadbe9aa2b 100644 --- a/core/modules/content_translation/tests/src/Functional/ContentTranslationUntranslatableFieldsTest.php +++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationUntranslatableFieldsTest.php @@ -50,7 +50,7 @@ class ContentTranslationUntranslatableFieldsTest extends ContentTranslationPendi /** * {@inheritdoc} */ - protected function setupTestFields() { + protected function setupTestFields(): void { parent::setupTestFields(); $field_storage = FieldStorageConfig::create([ diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php index 089813cd973..63e67b7f351 100644 --- a/core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php +++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php @@ -115,7 +115,7 @@ class ContentTranslationWorkflowsTest extends ContentTranslationTestBase { /** * {@inheritdoc} */ - protected function setupUsers() { + protected function setupUsers(): void { $this->entityOwner = $this->drupalCreateUser($this->getEntityOwnerPermissions(), 'entity_owner'); $this->notEntityOwner = $this->drupalCreateUser(); $this->notEntityOwner->set('roles', $this->entityOwner->getRoles(TRUE)); @@ -155,7 +155,7 @@ class ContentTranslationWorkflowsTest extends ContentTranslationTestBase { * @param \Drupal\User\UserInterface|null $user * (optional) The entity owner. */ - protected function setupEntity(?UserInterface $user = NULL) { + protected function setupEntity(?UserInterface $user = NULL): void { $default_langcode = $this->langcodes[0]; // Create a test entity. @@ -307,7 +307,7 @@ class ContentTranslationWorkflowsTest extends ContentTranslationTestBase { * The an associative array with the operation name as key and the expected * status as value. */ - protected function doTestWorkflows(UserInterface $user, $expected_status) { + protected function doTestWorkflows(UserInterface $user, $expected_status): void { $default_langcode = $this->langcodes[0]; $languages = $this->container->get('language_manager')->getLanguages(); $options = ['language' => $languages[$default_langcode], 'absolute' => TRUE]; diff --git a/core/modules/content_translation/tests/src/Kernel/ContentTranslationFieldSyncRevisionTest.php b/core/modules/content_translation/tests/src/Kernel/ContentTranslationFieldSyncRevisionTest.php index 4d06bb0219e..0be086e36bf 100644 --- a/core/modules/content_translation/tests/src/Kernel/ContentTranslationFieldSyncRevisionTest.php +++ b/core/modules/content_translation/tests/src/Kernel/ContentTranslationFieldSyncRevisionTest.php @@ -469,7 +469,7 @@ class ContentTranslationFieldSyncRevisionTest extends EntityKernelTestBase { * @param bool $display * Whether untranslatable field widgets should be displayed. */ - protected function setUntranslatableFieldWidgetsDisplay($display) { + protected function setUntranslatableFieldWidgetsDisplay($display): void { $entity_type_id = $this->storage->getEntityTypeId(); $settings = ['untranslatable_fields_hide' => !$display]; $this->contentTranslationManager->setBundleTranslationSettings($entity_type_id, $entity_type_id, $settings); diff --git a/core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php b/core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php index ce88a5dbd0e..1f0b91153da 100644 --- a/core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php +++ b/core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php @@ -119,7 +119,7 @@ class EditModeTest extends WebDriverTestBase { /** * Presses the toolbar edit mode. */ - protected function pressToolbarEditButton() { + protected function pressToolbarEditButton(): void { $edit_button = $this->getSession()->getPage()->find('css', '#toolbar-bar div.contextual-toolbar-tab button'); $edit_button->press(); } diff --git a/core/modules/datetime/tests/src/Kernel/DateTimeFormInjectionTest.php b/core/modules/datetime/tests/src/Kernel/DateTimeFormInjectionTest.php index 5f1a904791f..7b867a356bf 100644 --- a/core/modules/datetime/tests/src/Kernel/DateTimeFormInjectionTest.php +++ b/core/modules/datetime/tests/src/Kernel/DateTimeFormInjectionTest.php @@ -83,7 +83,7 @@ class DateTimeFormInjectionTest extends KernelTestBase implements FormInterface /** * {@inheritdoc} */ - public function submitForm(array &$form, FormStateInterface $form_state) { + public function submitForm(array &$form, FormStateInterface $form_state): void { $this->assertTrue(TRUE); $form_state->setRebuild(); } diff --git a/core/modules/datetime/tests/src/Kernel/Views/FilterDateTest.php b/core/modules/datetime/tests/src/Kernel/Views/FilterDateTest.php index 4d4997b2b37..4ea41381862 100644 --- a/core/modules/datetime/tests/src/Kernel/Views/FilterDateTest.php +++ b/core/modules/datetime/tests/src/Kernel/Views/FilterDateTest.php @@ -222,7 +222,7 @@ class FilterDateTest extends DateTimeHandlerTestBase { * @param array $dates * An array of DATETIME_DATE_STORAGE_FORMAT date values. */ - protected function updateNodesDateFieldsValues(array $dates) { + protected function updateNodesDateFieldsValues(array $dates): void { foreach ($dates as $index => $date) { $this->nodes[$index]->{static::$fieldName}->value = $date; $this->nodes[$index]->save(); diff --git a/core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php b/core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php index 5861acf8c7f..677d216bab6 100644 --- a/core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php +++ b/core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php @@ -82,7 +82,7 @@ class FilterDateTimeTest extends DateTimeHandlerTestBase { /** * Tests offset operations. */ - protected function _testOffset() { + protected function _testOffset(): void { $view = Views::getView('test_filter_datetime'); $field = static::$fieldName . '_value'; @@ -117,7 +117,7 @@ class FilterDateTimeTest extends DateTimeHandlerTestBase { /** * Tests between operations. */ - protected function _testBetween() { + protected function _testBetween(): void { $view = Views::getView('test_filter_datetime'); $field = static::$fieldName . '_value'; @@ -180,7 +180,7 @@ class FilterDateTimeTest extends DateTimeHandlerTestBase { /** * Tests exact date matching. */ - protected function _testExact() { + protected function _testExact(): void { $view = Views::getView('test_filter_datetime'); $field = static::$fieldName . '_value'; diff --git a/core/modules/dblog/tests/src/Functional/DbLogResourceTest.php b/core/modules/dblog/tests/src/Functional/DbLogResourceTest.php index b93c5e1b22a..50ce42003f8 100644 --- a/core/modules/dblog/tests/src/Functional/DbLogResourceTest.php +++ b/core/modules/dblog/tests/src/Functional/DbLogResourceTest.php @@ -123,7 +123,7 @@ class DbLogResourceTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { switch ($method) { case 'GET': $this->grantPermissionsToTestedRole(['restful get dblog']); diff --git a/core/modules/dblog/tests/src/Functional/DbLogTest.php b/core/modules/dblog/tests/src/Functional/DbLogTest.php index 7265819cf37..95c46392443 100644 --- a/core/modules/dblog/tests/src/Functional/DbLogTest.php +++ b/core/modules/dblog/tests/src/Functional/DbLogTest.php @@ -305,7 +305,7 @@ class DbLogTest extends BrowserTestBase { * @param int $row_limit * The row limit. */ - private function verifyRowLimit($row_limit) { + private function verifyRowLimit($row_limit): void { // Change the database log row limit. $edit = []; $edit['dblog_row_limit'] = $row_limit; @@ -322,7 +322,7 @@ class DbLogTest extends BrowserTestBase { /** * Clear the entry logs by clicking on 'Clear log messages' button. */ - protected function clearLogsEntries() { + protected function clearLogsEntries(): void { $this->drupalGet(Url::fromRoute('dblog.confirm')); } @@ -334,7 +334,7 @@ class DbLogTest extends BrowserTestBase { * @param string $severity * (optional) The log entry severity. */ - protected function filterLogsEntries($type = NULL, $severity = NULL) { + protected function filterLogsEntries($type = NULL, $severity = NULL): void { $edit = []; if (isset($type)) { $edit['type[]'] = $type; @@ -351,7 +351,7 @@ class DbLogTest extends BrowserTestBase { * @param int $response * (optional) HTTP response code. Defaults to 200. */ - private function verifyReports($response = 200) { + private function verifyReports($response = 200): void { // View the database log help page. $this->drupalGet('admin/help/dblog'); $this->assertSession()->statusCodeEquals($response); @@ -400,7 +400,7 @@ class DbLogTest extends BrowserTestBase { /** * Generates and then verifies breadcrumbs. */ - private function verifyBreadcrumbs() { + private function verifyBreadcrumbs(): void { // View the database log event page. $query = Database::getConnection()->select('watchdog'); $query->addExpression('MIN([wid])'); @@ -417,7 +417,7 @@ class DbLogTest extends BrowserTestBase { /** * Generates and then verifies various types of events. */ - private function verifyEvents() { + private function verifyEvents(): void { // Invoke events. $this->doUser(); $this->drupalCreateContentType(['type' => 'article', 'name' => 'Article']); @@ -438,7 +438,7 @@ class DbLogTest extends BrowserTestBase { * @param string $order * The order by which the table should be sorted. */ - protected function verifySort($sort = 'asc', $order = 'Date') { + public function verifySort($sort = 'asc', $order = 'Date'): void { $this->drupalGet('admin/reports/dblog', ['query' => ['sort' => $sort, 'order' => $order]]); $this->assertSession()->statusCodeEquals(200); $this->assertSession()->pageTextContains('Recent log messages'); @@ -447,7 +447,7 @@ class DbLogTest extends BrowserTestBase { /** * Tests link escaping in the operation row of a database log detail page. */ - private function verifyLinkEscaping() { + private function verifyLinkEscaping(): void { $link = Link::fromTextAndUrl('View', Url::fromRoute('entity.node.canonical', ['node' => 1]))->toString(); $message = 'Log entry added to do the verifyLinkEscaping test.'; $this->generateLogEntries(1, [ @@ -465,7 +465,7 @@ class DbLogTest extends BrowserTestBase { /** * Generates and then verifies some user events. */ - private function doUser() { + private function doUser(): void { // Set user variables. $name = $this->randomMachineName(); $pass = \Drupal::service('password_generator')->generate(); @@ -551,7 +551,7 @@ class DbLogTest extends BrowserTestBase { * @param string $type * A node type (e.g., 'article' or 'page'). */ - private function doNode($type) { + private function doNode($type): void { // Create user. $perm = ['create ' . $type . ' content', 'edit own ' . $type . ' content', 'delete own ' . $type . ' content']; $user = $this->drupalCreateUser($perm); diff --git a/core/modules/dblog/tests/src/Functional/DbLogViewsTest.php b/core/modules/dblog/tests/src/Functional/DbLogViewsTest.php index 284803fb296..7a0ef545c57 100644 --- a/core/modules/dblog/tests/src/Functional/DbLogViewsTest.php +++ b/core/modules/dblog/tests/src/Functional/DbLogViewsTest.php @@ -41,7 +41,7 @@ class DbLogViewsTest extends DbLogTest { /** * {@inheritdoc} */ - protected function filterLogsEntries($type = NULL, $severity = NULL) { + protected function filterLogsEntries($type = NULL, $severity = NULL): void { $query = []; if (isset($type)) { $query['type[]'] = $type; diff --git a/core/modules/dblog/tests/src/Kernel/DbLogFormInjectionTest.php b/core/modules/dblog/tests/src/Kernel/DbLogFormInjectionTest.php index bb5251b730f..8ff735320fc 100644 --- a/core/modules/dblog/tests/src/Kernel/DbLogFormInjectionTest.php +++ b/core/modules/dblog/tests/src/Kernel/DbLogFormInjectionTest.php @@ -68,7 +68,7 @@ class DbLogFormInjectionTest extends KernelTestBase implements FormInterface { /** * {@inheritdoc} */ - public function submitForm(array &$form, FormStateInterface $form_state) { + public function submitForm(array &$form, FormStateInterface $form_state): void { $form_state->setRebuild(); } diff --git a/core/modules/editor/tests/src/Functional/EditorAdminTest.php b/core/modules/editor/tests/src/Functional/EditorAdminTest.php index 319093856d7..90c259516c6 100644 --- a/core/modules/editor/tests/src/Functional/EditorAdminTest.php +++ b/core/modules/editor/tests/src/Functional/EditorAdminTest.php @@ -181,7 +181,7 @@ class EditorAdminTest extends BrowserTestBase { * @param string $format_name * The format name. */ - protected function addEditorToNewFormat($format_id, $format_name) { + protected function addEditorToNewFormat($format_id, $format_name): void { $this->enableUnicornEditor(); $this->drupalLogin($this->adminUser); $this->drupalGet('admin/config/content/formats/add'); @@ -197,7 +197,7 @@ class EditorAdminTest extends BrowserTestBase { /** * Enables the unicorn editor. */ - protected function enableUnicornEditor() { + protected function enableUnicornEditor(): void { if (!$this->container->get('module_handler')->moduleExists('editor_test')) { $this->container->get('module_installer')->install(['editor_test']); } @@ -239,7 +239,7 @@ class EditorAdminTest extends BrowserTestBase { * @param bool $ponies_too * The expected value of the ponies_too setting. */ - protected function verifyUnicornEditorConfiguration($format_id, $ponies_too = TRUE) { + protected function verifyUnicornEditorConfiguration($format_id, $ponies_too = TRUE): void { $editor = editor_load($format_id); $settings = $editor->getSettings(); $this->assertSame('unicorn', $editor->getEditor(), 'The text editor is configured correctly.'); diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php index 7f0feca6ada..49b347c6a65 100644 --- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php +++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php @@ -217,14 +217,14 @@ class EntityReferenceFieldTranslatedReferenceViewTest extends BrowserTestBase { /** * Adds additional languages. */ - protected function setUpLanguages() { + protected function setUpLanguages(): void { static::createLanguageFromLangcode($this->translateToLangcode); } /** * Creates a test subject contents, with translation. */ - protected function createContent() { + protected function createContent(): void { $this->referencedEntityWithTranslation = $this->createReferencedEntityWithTranslation(); $this->referencedEntityWithoutTranslation = $this->createNotTranslatedReferencedEntity(); } @@ -232,7 +232,7 @@ class EntityReferenceFieldTranslatedReferenceViewTest extends BrowserTestBase { /** * Enables translations where it needed. */ - protected function enableTranslation() { + protected function enableTranslation(): void { // Enable translation for the entity types. $this->enableContentTranslation($this->testEntityTypeName, $this->referrerType->id()); $this->enableContentTranslation($this->testEntityTypeName, $this->referencedType->id()); @@ -241,7 +241,7 @@ class EntityReferenceFieldTranslatedReferenceViewTest extends BrowserTestBase { /** * Adds term reference field for the article content type. */ - protected function setUpEntityReferenceField() { + protected function setUpEntityReferenceField(): void { FieldStorageConfig::create([ 'field_name' => $this->referenceFieldName, 'entity_type' => $this->testEntityTypeName, @@ -282,7 +282,7 @@ class EntityReferenceFieldTranslatedReferenceViewTest extends BrowserTestBase { /** * Create content types. */ - protected function setUpContentTypes() { + protected function setUpContentTypes(): void { $this->referrerType = $this->drupalCreateContentType([ 'type' => 'referrer', 'name' => 'Referrer', diff --git a/core/modules/field/tests/src/Functional/FunctionalString/StringFieldTest.php b/core/modules/field/tests/src/Functional/FunctionalString/StringFieldTest.php index 3566bf94575..de14164bd80 100644 --- a/core/modules/field/tests/src/Functional/FunctionalString/StringFieldTest.php +++ b/core/modules/field/tests/src/Functional/FunctionalString/StringFieldTest.php @@ -61,7 +61,7 @@ class StringFieldTest extends BrowserTestBase { /** * Helper function for testTextfieldWidgets(). */ - public function _testTextfieldWidgets($field_type, $widget_type) { + public function _testTextfieldWidgets($field_type, $widget_type): void { // Create a field. $field_name = $this->randomMachineName(); $field_storage = FieldStorageConfig::create([ diff --git a/core/modules/field/tests/src/Functional/TranslationWebTest.php b/core/modules/field/tests/src/Functional/TranslationWebTest.php index 886ac85be73..7733054d828 100644 --- a/core/modules/field/tests/src/Functional/TranslationWebTest.php +++ b/core/modules/field/tests/src/Functional/TranslationWebTest.php @@ -136,7 +136,7 @@ class TranslationWebTest extends FieldTestBase { * Check if the field translation attached to the entity revision identified * by the passed arguments were correctly stored. */ - private function checkTranslationRevisions($id, $revision_id, $available_langcodes) { + private function checkTranslationRevisions($id, $revision_id, $available_langcodes): void { $field_name = $this->fieldStorage->getName(); /** @var \Drupal\Core\Entity\RevisionableStorageInterface $storage */ $storage = $this->container->get('entity_type.manager') diff --git a/core/modules/field/tests/src/Kernel/BulkDeleteTest.php b/core/modules/field/tests/src/Kernel/BulkDeleteTest.php index 2653dc4a2e5..599ad85290d 100644 --- a/core/modules/field/tests/src/Kernel/BulkDeleteTest.php +++ b/core/modules/field/tests/src/Kernel/BulkDeleteTest.php @@ -61,7 +61,7 @@ class BulkDeleteTest extends FieldKernelTestBase { * @param $actual_hooks * The array of actual hook invocations recorded by field_test_memorize(). */ - public function checkHooksInvocations($expected_hooks, $actual_hooks) { + public function checkHooksInvocations($expected_hooks, $actual_hooks): void { foreach ($expected_hooks as $hook => $invocations) { $actual_invocations = $actual_hooks[$hook]; diff --git a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php index b52bb98957d..c169811a71b 100644 --- a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php +++ b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php @@ -184,7 +184,7 @@ class EntityReferenceSettingsTest extends KernelTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); $container ->register($this->testLogServiceName, BufferingLogger::class) diff --git a/core/modules/field/tests/src/Kernel/FieldCrudTest.php b/core/modules/field/tests/src/Kernel/FieldCrudTest.php index c22812ceb6b..6ad21b723f2 100644 --- a/core/modules/field/tests/src/Kernel/FieldCrudTest.php +++ b/core/modules/field/tests/src/Kernel/FieldCrudTest.php @@ -168,7 +168,7 @@ class FieldCrudTest extends FieldKernelTestBase { * * @see field_test_entity_bundle_field_info_alter() */ - protected function doFieldPropertyConstraintsTests() { + protected function doFieldPropertyConstraintsTests(): void { $field_name = $this->fieldStorage->getName(); // Check that a valid value (not -2 and between 0 and 32) doesn't trigger diff --git a/core/modules/field/tests/src/Kernel/FieldDefinitionIntegrityTest.php b/core/modules/field/tests/src/Kernel/FieldDefinitionIntegrityTest.php index 1273fc2cbc4..51bdefd1a4f 100644 --- a/core/modules/field/tests/src/Kernel/FieldDefinitionIntegrityTest.php +++ b/core/modules/field/tests/src/Kernel/FieldDefinitionIntegrityTest.php @@ -143,7 +143,7 @@ class FieldDefinitionIntegrityTest extends KernelTestBase { * @param string $display_context * Defines which display options should be loaded. */ - protected function checkDisplayOption($entity_type_id, $field_id, BaseFieldDefinition $field_definition, DiscoveryInterface $plugin_manager, $display_context) { + protected function checkDisplayOption($entity_type_id, $field_id, BaseFieldDefinition $field_definition, DiscoveryInterface $plugin_manager, $display_context): void { $display_options = $field_definition->getDisplayOptions($display_context); if (!empty($display_options['type'])) { $plugin = $plugin_manager->getDefinition($display_options['type'], FALSE); diff --git a/core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php b/core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php index fec0c06148d..f4fb821a410 100644 --- a/core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php +++ b/core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php @@ -127,7 +127,7 @@ class FieldTypePluginManagerTest extends FieldKernelTestBase { /** * Enable all core modules. */ - protected function enableAllCoreModules() { + protected function enableAllCoreModules(): void { $listing = new ExtensionDiscovery($this->root); $module_list = $listing->scan('module', FALSE); /** @var \Drupal\Core\Extension\ModuleHandlerInterface $module_handler */ diff --git a/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldInstanceLabelDescriptionTest.php b/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldInstanceLabelDescriptionTest.php index 62114c591f7..ca81ab17602 100644 --- a/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldInstanceLabelDescriptionTest.php +++ b/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldInstanceLabelDescriptionTest.php @@ -45,7 +45,7 @@ class MigrateFieldInstanceLabelDescriptionTest extends MigrateDrupal6TestBase im /** * {@inheritdoc} */ - public static function migrateDumpAlter(KernelTestBase $test) { + public static function migrateDumpAlter(KernelTestBase $test): void { $db = Database::getConnection('default', 'migrate'); // Alter the database to test the migration is successful when a translated // field is deleted but the translation data for that field remains in both diff --git a/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceLabelDescriptionTest.php b/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceLabelDescriptionTest.php index 191ee44a869..50886555287 100644 --- a/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceLabelDescriptionTest.php +++ b/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceLabelDescriptionTest.php @@ -64,7 +64,7 @@ class MigrateFieldInstanceLabelDescriptionTest extends MigrateDrupal7TestBase im /** * {@inheritdoc} */ - public static function migrateDumpAlter(KernelTestBase $test) { + public static function migrateDumpAlter(KernelTestBase $test): void { $db = Database::getConnection('default', 'migrate'); // Alter the database to test the migration is successful when a translated // field is deleted but the translation data for that field remains in both diff --git a/core/modules/field/tests/src/Kernel/Migrate/d7/RollbackFieldInstanceTest.php b/core/modules/field/tests/src/Kernel/Migrate/d7/RollbackFieldInstanceTest.php index 650db8a2945..3234e8c4358 100644 --- a/core/modules/field/tests/src/Kernel/Migrate/d7/RollbackFieldInstanceTest.php +++ b/core/modules/field/tests/src/Kernel/Migrate/d7/RollbackFieldInstanceTest.php @@ -69,7 +69,7 @@ class RollbackFieldInstanceTest extends MigrateFieldInstanceTest { * @param string|\Drupal\migrate\Plugin\MigrationInterface $migration * The migration to rollback, or its ID. */ - protected function executeRollback($migration) { + protected function executeRollback($migration): void { if (is_string($migration)) { $this->migration = $this->getMigration($migration); } diff --git a/core/modules/field/tests/src/Kernel/Migrate/d7/RollbackFieldTest.php b/core/modules/field/tests/src/Kernel/Migrate/d7/RollbackFieldTest.php index 3e0d22d966d..c1f4a788d65 100644 --- a/core/modules/field/tests/src/Kernel/Migrate/d7/RollbackFieldTest.php +++ b/core/modules/field/tests/src/Kernel/Migrate/d7/RollbackFieldTest.php @@ -66,7 +66,7 @@ class RollbackFieldTest extends MigrateFieldTest { * @param string|\Drupal\migrate\Plugin\MigrationInterface $migration * The migration to rollback, or its ID. */ - protected function executeRollback($migration) { + protected function executeRollback($migration): void { if (is_string($migration)) { $this->migration = $this->getMigration($migration); } diff --git a/core/modules/field/tests/src/Kernel/Migrate/d7/RollbackViewModesTest.php b/core/modules/field/tests/src/Kernel/Migrate/d7/RollbackViewModesTest.php index 7099294a78e..0f20144b846 100644 --- a/core/modules/field/tests/src/Kernel/Migrate/d7/RollbackViewModesTest.php +++ b/core/modules/field/tests/src/Kernel/Migrate/d7/RollbackViewModesTest.php @@ -46,7 +46,7 @@ class RollbackViewModesTest extends MigrateViewModesTest { * @param string|\Drupal\migrate\Plugin\MigrationInterface $migration * The migration to rollback, or its ID. */ - protected function executeRollback($migration) { + protected function executeRollback($migration): void { if (is_string($migration)) { $this->migration = $this->getMigration($migration); } diff --git a/core/modules/field/tests/src/Kernel/Views/HandlerFieldFieldTest.php b/core/modules/field/tests/src/Kernel/Views/HandlerFieldFieldTest.php index def2a913fcd..3b91b5cc916 100644 --- a/core/modules/field/tests/src/Kernel/Views/HandlerFieldFieldTest.php +++ b/core/modules/field/tests/src/Kernel/Views/HandlerFieldFieldTest.php @@ -109,7 +109,7 @@ class HandlerFieldFieldTest extends KernelTestBase { /** * Tests simple field rendering. */ - public function doTestSimpleFieldRender() { + public function doTestSimpleFieldRender(): void { $view = Views::getView('test_view_fieldapi'); $this->prepareView($view); $view->preview(); @@ -128,7 +128,7 @@ class HandlerFieldFieldTest extends KernelTestBase { /** * Tests inaccessible field rendering. */ - public function doTestInaccessibleFieldRender() { + public function doTestInaccessibleFieldRender(): void { $view = Views::getView('test_view_fieldapi'); $this->prepareView($view); $view->preview(); @@ -150,7 +150,7 @@ class HandlerFieldFieldTest extends KernelTestBase { /** * Tests that fields with formatters runs as expected. */ - public function doTestFormatterSimpleFieldRender() { + public function doTestFormatterSimpleFieldRender(): void { $view = Views::getView('test_view_fieldapi'); $this->prepareView($view); $view->displayHandlers->get('default')->options['fields'][$this->fieldStorages[5]->getName()]['type'] = 'text_trimmed'; @@ -172,7 +172,7 @@ class HandlerFieldFieldTest extends KernelTestBase { /** * Tests multi-value field rendering. */ - public function doTestMultipleFieldRender() { + public function doTestMultipleFieldRender(): void { $view = Views::getView('test_view_fieldapi'); $field_name = $this->fieldStorages[3]->getName(); @@ -313,7 +313,7 @@ class HandlerFieldFieldTest extends KernelTestBase { * @param \Drupal\views\ViewExecutable $view * The view to add field data to. */ - protected function prepareView(ViewExecutable $view) { + protected function prepareView(ViewExecutable $view): void { $view->storage->invalidateCaches(); $view->initDisplay(); foreach ($this->fieldStorages as $field_storage) { @@ -327,7 +327,7 @@ class HandlerFieldFieldTest extends KernelTestBase { /** * Creates the testing fields. */ - protected function createFields() { + protected function createFields(): void { $fields_data = [ [ 'field_name' => 'field_name_0', diff --git a/core/modules/field_ui/tests/src/Functional/ManageFieldsLifecycleTest.php b/core/modules/field_ui/tests/src/Functional/ManageFieldsLifecycleTest.php index 58ba84240b8..97f3784c380 100644 --- a/core/modules/field_ui/tests/src/Functional/ManageFieldsLifecycleTest.php +++ b/core/modules/field_ui/tests/src/Functional/ManageFieldsLifecycleTest.php @@ -38,7 +38,7 @@ class ManageFieldsLifecycleTest extends ManageFieldsFunctionalTestBase { * @param string $type * (optional) The name of a content type. */ - protected function manageFieldsPage($type = '') { + protected function manageFieldsPage($type = ''): void { $type = empty($type) ? $this->contentType : $type; $this->drupalGet('admin/structure/types/manage/' . $type . '/fields'); // Check all table columns. @@ -80,7 +80,7 @@ class ManageFieldsLifecycleTest extends ManageFieldsFunctionalTestBase { * @todo Assert properties can be set in the form and read back in * $field_storage and $fields. */ - protected function createField() { + protected function createField(): void { // Create a test field. $this->fieldUIAddNewField('admin/structure/types/manage/' . $this->contentType, $this->fieldNameInput, $this->fieldLabel); } @@ -88,7 +88,7 @@ class ManageFieldsLifecycleTest extends ManageFieldsFunctionalTestBase { /** * Tests editing an existing field. */ - protected function updateField() { + protected function updateField(): void { $field_id = 'node.' . $this->contentType . '.' . $this->fieldName; // Go to the field edit page. $this->drupalGet('admin/structure/types/manage/' . $this->contentType . '/fields/' . $field_id); @@ -113,7 +113,7 @@ class ManageFieldsLifecycleTest extends ManageFieldsFunctionalTestBase { /** * Tests adding an existing field in another content type. */ - protected function addExistingField() { + protected function addExistingField(): void { // Check "Re-use existing field" appears. $this->drupalGet('admin/structure/types/manage/page/fields'); $this->assertSession()->pageTextContains('Re-use an existing field'); @@ -134,7 +134,7 @@ class ManageFieldsLifecycleTest extends ManageFieldsFunctionalTestBase { * We do not test if the number can be submitted with anything else than a * numeric value. That is tested already in FormTest::testNumber(). */ - protected function cardinalitySettings() { + protected function cardinalitySettings(): void { $field_edit_path = 'admin/structure/types/manage/article/fields/node.article.body'; // Assert the cardinality other field cannot be empty when cardinality is @@ -264,7 +264,7 @@ class ManageFieldsLifecycleTest extends ManageFieldsFunctionalTestBase { /** * Tests deleting a field from the field edit form. */ - protected function deleteField() { + protected function deleteField(): void { // Delete the field. $field_id = 'node.' . $this->contentType . '.' . $this->fieldName; $this->drupalGet('admin/structure/types/manage/' . $this->contentType . '/fields/' . $field_id); @@ -275,7 +275,7 @@ class ManageFieldsLifecycleTest extends ManageFieldsFunctionalTestBase { /** * Tests that persistent field storage appears in the field UI. */ - protected function addPersistentFieldStorage() { + protected function addPersistentFieldStorage(): void { $field_storage = FieldStorageConfig::loadByName('node', $this->fieldName); // Persist the field storage even if there are no fields. $field_storage->set('persist_with_no_fields', TRUE)->save(); @@ -323,7 +323,7 @@ class ManageFieldsLifecycleTest extends ManageFieldsFunctionalTestBase { /** * Tests that the field list administration page operates correctly. */ - protected function fieldListAdminPage() { + protected function fieldListAdminPage(): void { $this->drupalGet('admin/reports/fields'); $this->assertSession()->pageTextContains($this->fieldName); $this->assertSession()->linkByHrefExists('admin/structure/types/manage/' . $this->contentType . '/fields'); diff --git a/core/modules/file/tests/src/Functional/DownloadTest.php b/core/modules/file/tests/src/Functional/DownloadTest.php index 1a86c184b74..8a34dc47178 100644 --- a/core/modules/file/tests/src/Functional/DownloadTest.php +++ b/core/modules/file/tests/src/Functional/DownloadTest.php @@ -79,7 +79,7 @@ class DownloadTest extends FileManagedTestBase { /** * Tests the private file transfer system. */ - protected function doPrivateFileTransferTest() { + protected function doPrivateFileTransferTest(): void { // Set file downloads to private so handler functions get called. // Create a file. @@ -196,7 +196,7 @@ class DownloadTest extends FileManagedTestBase { * @param string $expected_url * The expected URL. */ - private function checkUrl($scheme, $directory, $filename, $expected_url) { + private function checkUrl($scheme, $directory, $filename, $expected_url): void { // Convert $filename to a valid filename, i.e. strip characters not // supported by the filesystem, and create the file in the specified // directory. diff --git a/core/modules/file/tests/src/Functional/FileFieldAnonymousSubmissionTest.php b/core/modules/file/tests/src/Functional/FileFieldAnonymousSubmissionTest.php index d1c2455d204..6abbd4541a1 100644 --- a/core/modules/file/tests/src/Functional/FileFieldAnonymousSubmissionTest.php +++ b/core/modules/file/tests/src/Functional/FileFieldAnonymousSubmissionTest.php @@ -121,7 +121,7 @@ class FileFieldAnonymousSubmissionTest extends FileFieldTestBase { /** * Helper method to test file submissions with missing node titles. */ - protected function doTestNodeWithFileWithoutTitle() { + protected function doTestNodeWithFileWithoutTitle(): void { $type = 'Article'; $title = 'Test page'; $this->createFileField('field_image', 'node', 'article', [], ['file_extensions' => 'txt png']); diff --git a/core/modules/file/tests/src/Functional/FileFieldWidgetTest.php b/core/modules/file/tests/src/Functional/FileFieldWidgetTest.php index 523f9fb1bdb..4a637b80b79 100644 --- a/core/modules/file/tests/src/Functional/FileFieldWidgetTest.php +++ b/core/modules/file/tests/src/Functional/FileFieldWidgetTest.php @@ -559,7 +559,7 @@ class FileFieldWidgetTest extends FileFieldTestBase { * @param \Drupal\user\UserInterface $attacker_user * The attacker user. */ - protected function doTestTemporaryFileRemovalExploit(UserInterface $victim_user, UserInterface $attacker_user) { + protected function doTestTemporaryFileRemovalExploit(UserInterface $victim_user, UserInterface $attacker_user): void { $type_name = 'article'; $field_name = 'test_file_field'; $this->createFileField($field_name, 'node', $type_name); diff --git a/core/modules/file/tests/src/Kernel/Migrate/d7/MigratePrivateFileTest.php b/core/modules/file/tests/src/Kernel/Migrate/d7/MigratePrivateFileTest.php index e148eb5c63c..59152d62d9a 100644 --- a/core/modules/file/tests/src/Kernel/Migrate/d7/MigratePrivateFileTest.php +++ b/core/modules/file/tests/src/Kernel/Migrate/d7/MigratePrivateFileTest.php @@ -45,7 +45,7 @@ class MigratePrivateFileTest extends MigrateDrupal7TestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); $container->register('stream_wrapper.private', 'Drupal\Core\StreamWrapper\PrivateStream') ->addTag('stream_wrapper', ['scheme' => 'private']); diff --git a/core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php b/core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php index c62e8179cda..df21b88fef6 100644 --- a/core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php +++ b/core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php @@ -82,7 +82,7 @@ class FilterDefaultFormatTest extends BrowserTestBase { /** * Rebuilds text format and permission caches in the thread running the tests. */ - protected function resetFilterCaches() { + protected function resetFilterCaches(): void { filter_formats_reset(); } diff --git a/core/modules/filter/tests/src/Functional/FilterFormTest.php b/core/modules/filter/tests/src/Functional/FilterFormTest.php index 145cf64d158..a846ff529e3 100644 --- a/core/modules/filter/tests/src/Functional/FilterFormTest.php +++ b/core/modules/filter/tests/src/Functional/FilterFormTest.php @@ -80,7 +80,7 @@ class FilterFormTest extends BrowserTestBase { /** * Tests the behavior of the 'text_format' element as an administrator. */ - protected function doFilterFormTestAsAdmin() { + protected function doFilterFormTestAsAdmin(): void { $this->drupalLogin($this->adminUser); $this->drupalGet('filter-test/text-format'); @@ -128,7 +128,7 @@ class FilterFormTest extends BrowserTestBase { /** * Tests the behavior of the 'text_format' element as a normal user. */ - protected function doFilterFormTestAsNonAdmin() { + protected function doFilterFormTestAsNonAdmin(): void { $this->drupalLogin($this->webUser); $this->drupalGet('filter-test/text-format'); diff --git a/core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php b/core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php index 1d13ec4bb1e..74bc26e30de 100644 --- a/core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php +++ b/core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php @@ -335,7 +335,7 @@ class FilterFormatAccessTest extends BrowserTestBase { /** * Rebuilds text format and permission caches in the thread running the tests. */ - protected function resetFilterCaches() { + protected function resetFilterCaches(): void { filter_formats_reset(); } diff --git a/core/modules/filter/tests/src/Kernel/FilterCaptionTwigDebugTest.php b/core/modules/filter/tests/src/Kernel/FilterCaptionTwigDebugTest.php index 4bdce6be762..236c39646d7 100644 --- a/core/modules/filter/tests/src/Kernel/FilterCaptionTwigDebugTest.php +++ b/core/modules/filter/tests/src/Kernel/FilterCaptionTwigDebugTest.php @@ -24,7 +24,7 @@ class FilterCaptionTwigDebugTest extends KernelTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); // Enable Twig debugging. $parameters = $container->getParameter('twig.config'); diff --git a/core/modules/filter/tests/src/Kernel/FilterCrudTest.php b/core/modules/filter/tests/src/Kernel/FilterCrudTest.php index 13cb97d0248..dfc05d5a35a 100644 --- a/core/modules/filter/tests/src/Kernel/FilterCrudTest.php +++ b/core/modules/filter/tests/src/Kernel/FilterCrudTest.php @@ -88,7 +88,7 @@ class FilterCrudTest extends KernelTestBase { /** * Verifies that a text format is properly stored. */ - public function verifyTextFormat($format) { + public function verifyTextFormat($format): void { $default_langcode = \Drupal::languageManager()->getDefaultLanguage()->getId(); // Verify the loaded filter has all properties. diff --git a/core/modules/filter/tests/src/Kernel/Migrate/d7/MigrateFilterFormatTest.php b/core/modules/filter/tests/src/Kernel/Migrate/d7/MigrateFilterFormatTest.php index 40a17534982..15e1a77339a 100644 --- a/core/modules/filter/tests/src/Kernel/Migrate/d7/MigrateFilterFormatTest.php +++ b/core/modules/filter/tests/src/Kernel/Migrate/d7/MigrateFilterFormatTest.php @@ -35,7 +35,7 @@ class MigrateFilterFormatTest extends MigrateDrupal7TestBase implements MigrateD /** * {@inheritdoc} */ - public static function migrateDumpAlter(KernelTestBase $test) { + public static function migrateDumpAlter(KernelTestBase $test): void { $db = Database::getConnection('default', 'migrate'); $fields = [ 'format' => 'image_resize_filter', diff --git a/core/modules/help/tests/src/Functional/HelpTest.php b/core/modules/help/tests/src/Functional/HelpTest.php index 7ba9a681dc5..3a954ac0ead 100644 --- a/core/modules/help/tests/src/Functional/HelpTest.php +++ b/core/modules/help/tests/src/Functional/HelpTest.php @@ -130,7 +130,7 @@ class HelpTest extends BrowserTestBase { * @param int $response * (optional) An HTTP response code. Defaults to 200. */ - protected function verifyHelp($response = 200) { + protected function verifyHelp($response = 200): void { $this->drupalGet('admin/index'); $this->assertSession()->statusCodeEquals($response); if ($response == 200) { diff --git a/core/modules/help/tests/src/Functional/HelpTopicTest.php b/core/modules/help/tests/src/Functional/HelpTopicTest.php index 9c666db61b0..7675d765ce5 100644 --- a/core/modules/help/tests/src/Functional/HelpTopicTest.php +++ b/core/modules/help/tests/src/Functional/HelpTopicTest.php @@ -161,7 +161,7 @@ class HelpTopicTest extends BrowserTestBase { * the test verifies the user sees the help; if it's not, it verifies they * are denied access. */ - protected function verifyHelp($response = 200) { + protected function verifyHelp($response = 200): void { // Verify access to help topic pages. foreach ($this->getTopicList() as $topic => $info) { // View help topic page. @@ -272,7 +272,7 @@ class HelpTopicTest extends BrowserTestBase { /** * Tests breadcrumb on a help topic page. */ - public function verifyBreadCrumb() { + public function verifyBreadCrumb(): void { // Verify Help Topics administration breadcrumbs. $trail = [ '' => 'Home', diff --git a/core/modules/help/tests/src/Functional/HelpTopicsSyntaxTest.php b/core/modules/help/tests/src/Functional/HelpTopicsSyntaxTest.php index 1ae1fab8c63..f51550bd49e 100644 --- a/core/modules/help/tests/src/Functional/HelpTopicsSyntaxTest.php +++ b/core/modules/help/tests/src/Functional/HelpTopicsSyntaxTest.php @@ -98,7 +98,7 @@ class HelpTopicsSyntaxTest extends BrowserTestBase { * @param int $response * Expected response from visiting the page for the topic. */ - protected function verifyTopic($id, $definitions, $response = 200) { + protected function verifyTopic($id, $definitions, $response = 200): void { $definition = $definitions[$id]; HelpTestTwigNodeVisitor::setStateValue('manner', 0); @@ -191,7 +191,7 @@ class HelpTopicsSyntaxTest extends BrowserTestBase { * @param string $id * ID of help topic (for error messages). */ - protected function validateHtml(string $body, string $id) { + protected function validateHtml(string $body, string $id): void { $doc = new \DOMDocument(); $doc->strictErrorChecking = TRUE; $doc->validateOnParse = FALSE; @@ -232,7 +232,7 @@ class HelpTopicsSyntaxTest extends BrowserTestBase { * @param array $definitions * Array of all topic definitions, keyed by ID. */ - protected function verifyBadTopic($id, $definitions) { + protected function verifyBadTopic($id, $definitions): void { $bad_topic_type = substr($id, 16); // Topics should fail verifyTopic() in specific ways. $found_error = FALSE; diff --git a/core/modules/help/tests/src/Kernel/HelpEmptyPageTest.php b/core/modules/help/tests/src/Kernel/HelpEmptyPageTest.php index ea469b3f574..21d95c2ccc2 100644 --- a/core/modules/help/tests/src/Kernel/HelpEmptyPageTest.php +++ b/core/modules/help/tests/src/Kernel/HelpEmptyPageTest.php @@ -24,7 +24,7 @@ class HelpEmptyPageTest extends KernelTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); $container->set('url_generator', new SupernovaGenerator()); diff --git a/core/modules/help/tests/src/Unit/HelpTopicTwigLoaderTest.php b/core/modules/help/tests/src/Unit/HelpTopicTwigLoaderTest.php index a271daf6056..23c628615a6 100644 --- a/core/modules/help/tests/src/Unit/HelpTopicTwigLoaderTest.php +++ b/core/modules/help/tests/src/Unit/HelpTopicTwigLoaderTest.php @@ -88,7 +88,7 @@ class HelpTopicTwigLoaderTest extends UnitTestCase { /** * Sets up the virtual file system. */ - protected function setUpVfs() { + protected function setUpVfs(): void { $content = <<<EOF --- label: Test diff --git a/core/modules/image/tests/src/Functional/ImageFieldDisplayTest.php b/core/modules/image/tests/src/Functional/ImageFieldDisplayTest.php index 350e37eecb9..d65f7932913 100644 --- a/core/modules/image/tests/src/Functional/ImageFieldDisplayTest.php +++ b/core/modules/image/tests/src/Functional/ImageFieldDisplayTest.php @@ -55,7 +55,7 @@ class ImageFieldDisplayTest extends ImageFieldTestBase { /** * Tests image formatters on node display. */ - public function _testImageFieldFormatters($scheme) { + public function _testImageFieldFormatters($scheme): void { /** @var \Drupal\Core\Render\RendererInterface $renderer */ $renderer = $this->container->get('renderer'); $node_storage = $this->container->get('entity_type.manager')->getStorage('node'); diff --git a/core/modules/image/tests/src/Functional/ImageStylesPathAndUrlTest.php b/core/modules/image/tests/src/Functional/ImageStylesPathAndUrlTest.php index 25e753b9ed8..63b2a23a491 100644 --- a/core/modules/image/tests/src/Functional/ImageStylesPathAndUrlTest.php +++ b/core/modules/image/tests/src/Functional/ImageStylesPathAndUrlTest.php @@ -149,7 +149,7 @@ class ImageStylesPathAndUrlTest extends BrowserTestBase { /** * Tests building an image style URL. */ - public function doImageStyleUrlAndPathTests($scheme, $clean_url = TRUE, $extra_slash = FALSE, $langcode = FALSE) { + public function doImageStyleUrlAndPathTests($scheme, $clean_url = TRUE, $extra_slash = FALSE, $langcode = FALSE): void { $this->prepareRequestForGenerator($clean_url); // Make the default scheme neither "public" nor "private" to verify the diff --git a/core/modules/image/tests/src/Kernel/ImageStyleCustomStreamWrappersTest.php b/core/modules/image/tests/src/Kernel/ImageStyleCustomStreamWrappersTest.php index 86fd64734b6..3cd993c66ae 100644 --- a/core/modules/image/tests/src/Kernel/ImageStyleCustomStreamWrappersTest.php +++ b/core/modules/image/tests/src/Kernel/ImageStyleCustomStreamWrappersTest.php @@ -57,7 +57,7 @@ class ImageStyleCustomStreamWrappersTest extends KernelTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); foreach ($this->providerTestCustomStreamWrappers() as $stream_wrapper) { $scheme = $stream_wrapper[0]; diff --git a/core/modules/jsonapi/tests/src/Functional/ActionTest.php b/core/modules/jsonapi/tests/src/Functional/ActionTest.php index 78f60e65faf..f2f293ad6c3 100644 --- a/core/modules/jsonapi/tests/src/Functional/ActionTest.php +++ b/core/modules/jsonapi/tests/src/Functional/ActionTest.php @@ -45,7 +45,7 @@ class ActionTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer actions']); } diff --git a/core/modules/jsonapi/tests/src/Functional/BaseFieldOverrideTest.php b/core/modules/jsonapi/tests/src/Functional/BaseFieldOverrideTest.php index 17f9191c2d2..c26bb17a3f1 100644 --- a/core/modules/jsonapi/tests/src/Functional/BaseFieldOverrideTest.php +++ b/core/modules/jsonapi/tests/src/Functional/BaseFieldOverrideTest.php @@ -45,7 +45,7 @@ class BaseFieldOverrideTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer node fields']); } diff --git a/core/modules/jsonapi/tests/src/Functional/BlockContentTest.php b/core/modules/jsonapi/tests/src/Functional/BlockContentTest.php index 6c0adf820f0..3678644af47 100644 --- a/core/modules/jsonapi/tests/src/Functional/BlockContentTest.php +++ b/core/modules/jsonapi/tests/src/Functional/BlockContentTest.php @@ -66,7 +66,7 @@ class BlockContentTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { switch ($method) { case 'GET': $this->grantPermissionsToTestedRole([ @@ -94,7 +94,7 @@ class BlockContentTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpRevisionAuthorization($method) { + protected function setUpRevisionAuthorization($method): void { parent::setUpRevisionAuthorization($method); $this->grantPermissionsToTestedRole(['view any basic block content history']); } diff --git a/core/modules/jsonapi/tests/src/Functional/BlockContentTypeTest.php b/core/modules/jsonapi/tests/src/Functional/BlockContentTypeTest.php index efa1281ac40..4fb58c343f4 100644 --- a/core/modules/jsonapi/tests/src/Functional/BlockContentTypeTest.php +++ b/core/modules/jsonapi/tests/src/Functional/BlockContentTypeTest.php @@ -44,7 +44,7 @@ class BlockContentTypeTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer block types']); } diff --git a/core/modules/jsonapi/tests/src/Functional/BlockTest.php b/core/modules/jsonapi/tests/src/Functional/BlockTest.php index db01d8b0b39..1543feb48ed 100644 --- a/core/modules/jsonapi/tests/src/Functional/BlockTest.php +++ b/core/modules/jsonapi/tests/src/Functional/BlockTest.php @@ -45,7 +45,7 @@ class BlockTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { switch ($method) { case 'GET': $this->entity->setVisibilityConfig('user_role', [])->save(); diff --git a/core/modules/jsonapi/tests/src/Functional/CommentTest.php b/core/modules/jsonapi/tests/src/Functional/CommentTest.php index 53edfec7e4b..9f3a691fd66 100644 --- a/core/modules/jsonapi/tests/src/Functional/CommentTest.php +++ b/core/modules/jsonapi/tests/src/Functional/CommentTest.php @@ -81,7 +81,7 @@ class CommentTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { switch ($method) { case 'GET': $this->grantPermissionsToTestedRole(['access comments', 'view test entity']); diff --git a/core/modules/jsonapi/tests/src/Functional/CommentTypeTest.php b/core/modules/jsonapi/tests/src/Functional/CommentTypeTest.php index 1d7ef368679..4c63521082e 100644 --- a/core/modules/jsonapi/tests/src/Functional/CommentTypeTest.php +++ b/core/modules/jsonapi/tests/src/Functional/CommentTypeTest.php @@ -44,7 +44,7 @@ class CommentTypeTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer comment types']); } diff --git a/core/modules/jsonapi/tests/src/Functional/ConfigTestTest.php b/core/modules/jsonapi/tests/src/Functional/ConfigTestTest.php index 089da6cad04..e6fcf2230c1 100644 --- a/core/modules/jsonapi/tests/src/Functional/ConfigTestTest.php +++ b/core/modules/jsonapi/tests/src/Functional/ConfigTestTest.php @@ -44,7 +44,7 @@ class ConfigTestTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['view config_test']); } diff --git a/core/modules/jsonapi/tests/src/Functional/ConfigurableLanguageTest.php b/core/modules/jsonapi/tests/src/Functional/ConfigurableLanguageTest.php index 3df7fc488d8..ca11e4dfdfe 100644 --- a/core/modules/jsonapi/tests/src/Functional/ConfigurableLanguageTest.php +++ b/core/modules/jsonapi/tests/src/Functional/ConfigurableLanguageTest.php @@ -47,7 +47,7 @@ class ConfigurableLanguageTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer languages']); } diff --git a/core/modules/jsonapi/tests/src/Functional/ContactFormTest.php b/core/modules/jsonapi/tests/src/Functional/ContactFormTest.php index b25f664d014..6601401603f 100644 --- a/core/modules/jsonapi/tests/src/Functional/ContactFormTest.php +++ b/core/modules/jsonapi/tests/src/Functional/ContactFormTest.php @@ -44,7 +44,7 @@ class ContactFormTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['access site-wide contact form']); } diff --git a/core/modules/jsonapi/tests/src/Functional/ContentLanguageSettingsTest.php b/core/modules/jsonapi/tests/src/Functional/ContentLanguageSettingsTest.php index decdbf8175e..a3446d7257d 100644 --- a/core/modules/jsonapi/tests/src/Functional/ContentLanguageSettingsTest.php +++ b/core/modules/jsonapi/tests/src/Functional/ContentLanguageSettingsTest.php @@ -47,7 +47,7 @@ class ContentLanguageSettingsTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer languages']); } diff --git a/core/modules/jsonapi/tests/src/Functional/DateFormatTest.php b/core/modules/jsonapi/tests/src/Functional/DateFormatTest.php index 60db6fb82cd..52575b69150 100644 --- a/core/modules/jsonapi/tests/src/Functional/DateFormatTest.php +++ b/core/modules/jsonapi/tests/src/Functional/DateFormatTest.php @@ -49,7 +49,7 @@ class DateFormatTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer site configuration']); } diff --git a/core/modules/jsonapi/tests/src/Functional/EditorTest.php b/core/modules/jsonapi/tests/src/Functional/EditorTest.php index d4c8b679db8..0cdd52931f7 100644 --- a/core/modules/jsonapi/tests/src/Functional/EditorTest.php +++ b/core/modules/jsonapi/tests/src/Functional/EditorTest.php @@ -48,7 +48,7 @@ class EditorTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer filters']); } diff --git a/core/modules/jsonapi/tests/src/Functional/EntityFormDisplayTest.php b/core/modules/jsonapi/tests/src/Functional/EntityFormDisplayTest.php index 1a42162bcf1..45127dba653 100644 --- a/core/modules/jsonapi/tests/src/Functional/EntityFormDisplayTest.php +++ b/core/modules/jsonapi/tests/src/Functional/EntityFormDisplayTest.php @@ -45,7 +45,7 @@ class EntityFormDisplayTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer node form display']); } diff --git a/core/modules/jsonapi/tests/src/Functional/EntityFormModeTest.php b/core/modules/jsonapi/tests/src/Functional/EntityFormModeTest.php index c611d686aed..46df804ba6f 100644 --- a/core/modules/jsonapi/tests/src/Functional/EntityFormModeTest.php +++ b/core/modules/jsonapi/tests/src/Functional/EntityFormModeTest.php @@ -46,7 +46,7 @@ class EntityFormModeTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer display modes']); } diff --git a/core/modules/jsonapi/tests/src/Functional/EntityTestComputedFieldTest.php b/core/modules/jsonapi/tests/src/Functional/EntityTestComputedFieldTest.php index b5edf510c2a..2163c58d365 100644 --- a/core/modules/jsonapi/tests/src/Functional/EntityTestComputedFieldTest.php +++ b/core/modules/jsonapi/tests/src/Functional/EntityTestComputedFieldTest.php @@ -51,7 +51,7 @@ class EntityTestComputedFieldTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer entity_test content']); switch ($method) { diff --git a/core/modules/jsonapi/tests/src/Functional/EntityTestMapFieldTest.php b/core/modules/jsonapi/tests/src/Functional/EntityTestMapFieldTest.php index d40df7a61fe..c710fb0c3fb 100644 --- a/core/modules/jsonapi/tests/src/Functional/EntityTestMapFieldTest.php +++ b/core/modules/jsonapi/tests/src/Functional/EntityTestMapFieldTest.php @@ -66,7 +66,7 @@ class EntityTestMapFieldTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer entity_test content']); } diff --git a/core/modules/jsonapi/tests/src/Functional/EntityTestTest.php b/core/modules/jsonapi/tests/src/Functional/EntityTestTest.php index bccb6ee5bb3..c468322f44a 100644 --- a/core/modules/jsonapi/tests/src/Functional/EntityTestTest.php +++ b/core/modules/jsonapi/tests/src/Functional/EntityTestTest.php @@ -52,7 +52,7 @@ class EntityTestTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { switch ($method) { case 'GET': $this->grantPermissionsToTestedRole(['view test entity']); diff --git a/core/modules/jsonapi/tests/src/Functional/EntityViewDisplayTest.php b/core/modules/jsonapi/tests/src/Functional/EntityViewDisplayTest.php index ef94743f646..628232d7d59 100644 --- a/core/modules/jsonapi/tests/src/Functional/EntityViewDisplayTest.php +++ b/core/modules/jsonapi/tests/src/Functional/EntityViewDisplayTest.php @@ -45,7 +45,7 @@ class EntityViewDisplayTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer node display']); } diff --git a/core/modules/jsonapi/tests/src/Functional/EntityViewModeTest.php b/core/modules/jsonapi/tests/src/Functional/EntityViewModeTest.php index 034c473cd32..c85c4f55888 100644 --- a/core/modules/jsonapi/tests/src/Functional/EntityViewModeTest.php +++ b/core/modules/jsonapi/tests/src/Functional/EntityViewModeTest.php @@ -46,7 +46,7 @@ class EntityViewModeTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer display modes']); } diff --git a/core/modules/jsonapi/tests/src/Functional/FieldConfigTest.php b/core/modules/jsonapi/tests/src/Functional/FieldConfigTest.php index 57a4d2ffda4..d1bdc3d98b0 100644 --- a/core/modules/jsonapi/tests/src/Functional/FieldConfigTest.php +++ b/core/modules/jsonapi/tests/src/Functional/FieldConfigTest.php @@ -48,7 +48,7 @@ class FieldConfigTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer node fields']); } diff --git a/core/modules/jsonapi/tests/src/Functional/FieldStorageConfigTest.php b/core/modules/jsonapi/tests/src/Functional/FieldStorageConfigTest.php index 6ec01159a92..dfe693e5aa2 100644 --- a/core/modules/jsonapi/tests/src/Functional/FieldStorageConfigTest.php +++ b/core/modules/jsonapi/tests/src/Functional/FieldStorageConfigTest.php @@ -44,7 +44,7 @@ class FieldStorageConfigTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer node fields']); } diff --git a/core/modules/jsonapi/tests/src/Functional/FileTest.php b/core/modules/jsonapi/tests/src/Functional/FileTest.php index 63f384382c1..1c89a7bcffc 100644 --- a/core/modules/jsonapi/tests/src/Functional/FileTest.php +++ b/core/modules/jsonapi/tests/src/Functional/FileTest.php @@ -69,7 +69,7 @@ class FileTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { switch ($method) { case 'GET': $this->grantPermissionsToTestedRole(['access content']); @@ -92,7 +92,7 @@ class FileTest extends ResourceTestBase { /** * Makes the current user the file owner. */ - protected function makeCurrentUserFileOwner() { + protected function makeCurrentUserFileOwner(): void { $account = User::load(2); $this->entity->setOwnerId($account->id()); $this->entity->setOwner($account); diff --git a/core/modules/jsonapi/tests/src/Functional/FileUploadTest.php b/core/modules/jsonapi/tests/src/Functional/FileUploadTest.php index a667ea6653b..81b1ce1b42c 100644 --- a/core/modules/jsonapi/tests/src/Functional/FileUploadTest.php +++ b/core/modules/jsonapi/tests/src/Functional/FileUploadTest.php @@ -363,7 +363,7 @@ class FileUploadTest extends ResourceTestBase { /** * Tests using the file upload POST route with invalid headers. */ - protected function testPostFileUploadInvalidHeaders() { + protected function testPostFileUploadInvalidHeaders(): void { $uri = Url::fromUri('base:' . static::$postUri); // The wrong content type header should return a 415 code. @@ -541,7 +541,7 @@ class FileUploadTest extends ResourceTestBase { /** * Tests using the file upload route with an invalid file type. */ - protected function testFileUploadInvalidFileType() { + protected function testFileUploadInvalidFileType(): void { $uri = Url::fromUri('base:' . static::$postUri); // Test with a JSON file. @@ -556,7 +556,7 @@ class FileUploadTest extends ResourceTestBase { /** * Tests using the file upload route with a file size larger than allowed. */ - protected function testFileUploadLargerFileSize() { + protected function testFileUploadLargerFileSize(): void { // Set a limit of 50 bytes. $this->field->setSetting('max_filesize', 50) ->save(); @@ -575,7 +575,7 @@ class FileUploadTest extends ResourceTestBase { /** * Tests using the file upload POST route with malicious extensions. */ - protected function testFileUploadMaliciousExtension() { + protected function testFileUploadMaliciousExtension(): void { // Allow all file uploads but system.file::allow_insecure_uploads is set to // FALSE. $this->field->setSetting('file_extensions', '')->save(); @@ -846,7 +846,7 @@ class FileUploadTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { switch ($method) { case 'GET': $this->grantPermissionsToTestedRole(['view test entity']); diff --git a/core/modules/jsonapi/tests/src/Functional/FilterFormatTest.php b/core/modules/jsonapi/tests/src/Functional/FilterFormatTest.php index 503724b1b59..174a1bb4b20 100644 --- a/core/modules/jsonapi/tests/src/Functional/FilterFormatTest.php +++ b/core/modules/jsonapi/tests/src/Functional/FilterFormatTest.php @@ -44,7 +44,7 @@ class FilterFormatTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer filters']); } diff --git a/core/modules/jsonapi/tests/src/Functional/ImageStyleTest.php b/core/modules/jsonapi/tests/src/Functional/ImageStyleTest.php index 04606c3c174..23629ffa40b 100644 --- a/core/modules/jsonapi/tests/src/Functional/ImageStyleTest.php +++ b/core/modules/jsonapi/tests/src/Functional/ImageStyleTest.php @@ -51,7 +51,7 @@ class ImageStyleTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer image styles']); } diff --git a/core/modules/jsonapi/tests/src/Functional/MediaTest.php b/core/modules/jsonapi/tests/src/Functional/MediaTest.php index a5a097aa22d..d1ce6a61a90 100644 --- a/core/modules/jsonapi/tests/src/Functional/MediaTest.php +++ b/core/modules/jsonapi/tests/src/Functional/MediaTest.php @@ -63,7 +63,7 @@ class MediaTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { switch ($method) { case 'GET': $this->grantPermissionsToTestedRole(['view media', 'view any camelids media revisions']); @@ -88,7 +88,7 @@ class MediaTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpRevisionAuthorization($method) { + protected function setUpRevisionAuthorization($method): void { parent::setUpRevisionAuthorization($method); $this->grantPermissionsToTestedRole(['view all media revisions']); } @@ -397,7 +397,7 @@ class MediaTest extends ResourceTestBase { * * @todo Remove this in https://www.drupal.org/node/2824851. */ - protected function doTestRelationshipMutation(array $request_options) { + protected function doTestRelationshipMutation(array $request_options): void { $this->grantPermissionsToTestedRole(['access content']); parent::doTestRelationshipMutation($request_options); } diff --git a/core/modules/jsonapi/tests/src/Functional/MediaTypeTest.php b/core/modules/jsonapi/tests/src/Functional/MediaTypeTest.php index 673df1c94d4..6cfbc20edec 100644 --- a/core/modules/jsonapi/tests/src/Functional/MediaTypeTest.php +++ b/core/modules/jsonapi/tests/src/Functional/MediaTypeTest.php @@ -44,7 +44,7 @@ class MediaTypeTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer media types']); } diff --git a/core/modules/jsonapi/tests/src/Functional/MenuLinkContentTest.php b/core/modules/jsonapi/tests/src/Functional/MenuLinkContentTest.php index 293741411a5..ed41e22b6c9 100644 --- a/core/modules/jsonapi/tests/src/Functional/MenuLinkContentTest.php +++ b/core/modules/jsonapi/tests/src/Functional/MenuLinkContentTest.php @@ -62,7 +62,7 @@ class MenuLinkContentTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer menu']); } diff --git a/core/modules/jsonapi/tests/src/Functional/MenuTest.php b/core/modules/jsonapi/tests/src/Functional/MenuTest.php index 3e5406b9c04..ad0836bcb68 100644 --- a/core/modules/jsonapi/tests/src/Functional/MenuTest.php +++ b/core/modules/jsonapi/tests/src/Functional/MenuTest.php @@ -49,7 +49,7 @@ class MenuTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer menu']); } diff --git a/core/modules/jsonapi/tests/src/Functional/MessageTest.php b/core/modules/jsonapi/tests/src/Functional/MessageTest.php index 9683712d946..896a5590039 100644 --- a/core/modules/jsonapi/tests/src/Functional/MessageTest.php +++ b/core/modules/jsonapi/tests/src/Functional/MessageTest.php @@ -53,7 +53,7 @@ class MessageTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['access site-wide contact form']); } diff --git a/core/modules/jsonapi/tests/src/Functional/NodeTest.php b/core/modules/jsonapi/tests/src/Functional/NodeTest.php index f0d49097652..c40b95ae585 100644 --- a/core/modules/jsonapi/tests/src/Functional/NodeTest.php +++ b/core/modules/jsonapi/tests/src/Functional/NodeTest.php @@ -81,7 +81,7 @@ class NodeTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { switch ($method) { case 'GET': $this->grantPermissionsToTestedRole(['access content']); @@ -108,7 +108,7 @@ class NodeTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpRevisionAuthorization($method) { + protected function setUpRevisionAuthorization($method): void { parent::setUpRevisionAuthorization($method); $this->grantPermissionsToTestedRole(['view all revisions']); } diff --git a/core/modules/jsonapi/tests/src/Functional/NodeTypeTest.php b/core/modules/jsonapi/tests/src/Functional/NodeTypeTest.php index 3f657ac8ea3..da15111ab95 100644 --- a/core/modules/jsonapi/tests/src/Functional/NodeTypeTest.php +++ b/core/modules/jsonapi/tests/src/Functional/NodeTypeTest.php @@ -44,7 +44,7 @@ class NodeTypeTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer content types', 'access content']); } diff --git a/core/modules/jsonapi/tests/src/Functional/PathAliasTest.php b/core/modules/jsonapi/tests/src/Functional/PathAliasTest.php index 4db19844a22..6618515e3e5 100644 --- a/core/modules/jsonapi/tests/src/Functional/PathAliasTest.php +++ b/core/modules/jsonapi/tests/src/Functional/PathAliasTest.php @@ -55,7 +55,7 @@ class PathAliasTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer url aliases']); } diff --git a/core/modules/jsonapi/tests/src/Functional/ResponsiveImageStyleTest.php b/core/modules/jsonapi/tests/src/Functional/ResponsiveImageStyleTest.php index 49f411c2428..db68b40dd81 100644 --- a/core/modules/jsonapi/tests/src/Functional/ResponsiveImageStyleTest.php +++ b/core/modules/jsonapi/tests/src/Functional/ResponsiveImageStyleTest.php @@ -44,7 +44,7 @@ class ResponsiveImageStyleTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer responsive images']); } diff --git a/core/modules/jsonapi/tests/src/Functional/RestResourceConfigTest.php b/core/modules/jsonapi/tests/src/Functional/RestResourceConfigTest.php index aa9a578a83d..0a2e60201f4 100644 --- a/core/modules/jsonapi/tests/src/Functional/RestResourceConfigTest.php +++ b/core/modules/jsonapi/tests/src/Functional/RestResourceConfigTest.php @@ -44,7 +44,7 @@ class RestResourceConfigTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer rest resources']); } diff --git a/core/modules/jsonapi/tests/src/Functional/RoleTest.php b/core/modules/jsonapi/tests/src/Functional/RoleTest.php index 10d5ea0a711..f43a2486e75 100644 --- a/core/modules/jsonapi/tests/src/Functional/RoleTest.php +++ b/core/modules/jsonapi/tests/src/Functional/RoleTest.php @@ -44,7 +44,7 @@ class RoleTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer permissions']); } diff --git a/core/modules/jsonapi/tests/src/Functional/SearchPageTest.php b/core/modules/jsonapi/tests/src/Functional/SearchPageTest.php index e320c68aecc..a6975401864 100644 --- a/core/modules/jsonapi/tests/src/Functional/SearchPageTest.php +++ b/core/modules/jsonapi/tests/src/Functional/SearchPageTest.php @@ -46,7 +46,7 @@ class SearchPageTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { switch ($method) { case 'GET': $this->grantPermissionsToTestedRole(['access content']); diff --git a/core/modules/jsonapi/tests/src/Functional/ShortcutSetTest.php b/core/modules/jsonapi/tests/src/Functional/ShortcutSetTest.php index 12b6a1ac5df..7172b8ce65e 100644 --- a/core/modules/jsonapi/tests/src/Functional/ShortcutSetTest.php +++ b/core/modules/jsonapi/tests/src/Functional/ShortcutSetTest.php @@ -44,7 +44,7 @@ class ShortcutSetTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { switch ($method) { case 'GET': $this->grantPermissionsToTestedRole(['access shortcuts']); diff --git a/core/modules/jsonapi/tests/src/Functional/ShortcutTest.php b/core/modules/jsonapi/tests/src/Functional/ShortcutTest.php index 3cd019877d4..d7b11104318 100644 --- a/core/modules/jsonapi/tests/src/Functional/ShortcutTest.php +++ b/core/modules/jsonapi/tests/src/Functional/ShortcutTest.php @@ -56,7 +56,7 @@ class ShortcutTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['access shortcuts', 'customize shortcut links']); } diff --git a/core/modules/jsonapi/tests/src/Functional/TermTest.php b/core/modules/jsonapi/tests/src/Functional/TermTest.php index 35c2ce33366..c76de970eb0 100644 --- a/core/modules/jsonapi/tests/src/Functional/TermTest.php +++ b/core/modules/jsonapi/tests/src/Functional/TermTest.php @@ -65,7 +65,7 @@ class TermTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { switch ($method) { case 'GET': $this->grantPermissionsToTestedRole(['access content', 'view vocabulary labels']); @@ -92,7 +92,7 @@ class TermTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpRevisionAuthorization($method) { + protected function setUpRevisionAuthorization($method): void { parent::setUpRevisionAuthorization($method); $this->grantPermissionsToTestedRole(['administer taxonomy']); } diff --git a/core/modules/jsonapi/tests/src/Functional/UserTest.php b/core/modules/jsonapi/tests/src/Functional/UserTest.php index 775728c3b20..ccdcf31e19e 100644 --- a/core/modules/jsonapi/tests/src/Functional/UserTest.php +++ b/core/modules/jsonapi/tests/src/Functional/UserTest.php @@ -81,7 +81,7 @@ class UserTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { // @todo Remove this in $this->grantPermissionsToTestedRole(['access content']); @@ -826,7 +826,7 @@ class UserTest extends ResourceTestBase { * @param string $cancel_method * The cancel method. */ - private function sendDeleteRequestForUser(UserInterface $account, string $cancel_method) { + private function sendDeleteRequestForUser(UserInterface $account, string $cancel_method): void { $url = Url::fromRoute(sprintf('jsonapi.%s.individual', static::$resourceTypeName), ['entity' => $account->uuid()]); $request_options = []; $request_options[RequestOptions::HEADERS]['Accept'] = 'application/vnd.api+json'; diff --git a/core/modules/jsonapi/tests/src/Functional/ViewTest.php b/core/modules/jsonapi/tests/src/Functional/ViewTest.php index a3280be5024..828ce5da3df 100644 --- a/core/modules/jsonapi/tests/src/Functional/ViewTest.php +++ b/core/modules/jsonapi/tests/src/Functional/ViewTest.php @@ -44,7 +44,7 @@ class ViewTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer views']); } diff --git a/core/modules/jsonapi/tests/src/Functional/VocabularyTest.php b/core/modules/jsonapi/tests/src/Functional/VocabularyTest.php index dcaba9edbfc..73e516f0830 100644 --- a/core/modules/jsonapi/tests/src/Functional/VocabularyTest.php +++ b/core/modules/jsonapi/tests/src/Functional/VocabularyTest.php @@ -44,7 +44,7 @@ class VocabularyTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer taxonomy']); } diff --git a/core/modules/jsonapi/tests/src/Functional/WorkflowTest.php b/core/modules/jsonapi/tests/src/Functional/WorkflowTest.php index 42421e5d07f..dc3051a67f3 100644 --- a/core/modules/jsonapi/tests/src/Functional/WorkflowTest.php +++ b/core/modules/jsonapi/tests/src/Functional/WorkflowTest.php @@ -44,7 +44,7 @@ class WorkflowTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { $this->grantPermissionsToTestedRole(['administer workflows']); } diff --git a/core/modules/jsonapi/tests/src/Kernel/Context/FieldResolverTest.php b/core/modules/jsonapi/tests/src/Kernel/Context/FieldResolverTest.php index de7aed89105..5118736120c 100644 --- a/core/modules/jsonapi/tests/src/Kernel/Context/FieldResolverTest.php +++ b/core/modules/jsonapi/tests/src/Kernel/Context/FieldResolverTest.php @@ -354,7 +354,7 @@ class FieldResolverTest extends JsonapiKernelTestBase { * @param string $name * The name of the bundle to create. */ - protected function makeBundle($name) { + protected function makeBundle($name): void { EntityTestBundle::create([ 'id' => $name, ])->save(); @@ -376,7 +376,7 @@ class FieldResolverTest extends JsonapiKernelTestBase { * @param array $config_settings * Custom configuration settings for the field. */ - protected function makeField($type, $name, $entity_type, array $bundles, array $storage_settings = [], array $config_settings = []) { + protected function makeField($type, $name, $entity_type, array $bundles, array $storage_settings = [], array $config_settings = []): void { $storage_config = [ 'field_name' => $name, 'type' => $type, diff --git a/core/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php b/core/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php index c392432bf21..c053782bbf5 100644 --- a/core/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php +++ b/core/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php @@ -268,7 +268,7 @@ class FilterTest extends JsonapiKernelTestBase { /** * Sets up the schemas. */ - protected function setUpSchemas() { + protected function setUpSchemas(): void { $this->installSchema('node', ['node_access']); $this->installSchema('user', ['users_data']); @@ -281,7 +281,7 @@ class FilterTest extends JsonapiKernelTestBase { /** * Creates a painting node type. */ - protected function savePaintingType() { + protected function savePaintingType(): void { NodeType::create([ 'type' => 'painting', 'name' => 'Painting', @@ -302,7 +302,7 @@ class FilterTest extends JsonapiKernelTestBase { /** * Creates painting nodes. */ - protected function savePaintings($paintings) { + protected function savePaintings($paintings): void { foreach ($paintings as $painting) { Node::create(array_merge([ 'type' => 'painting', diff --git a/core/modules/jsonapi/tests/src/Unit/JsonApiResource/LinkTest.php b/core/modules/jsonapi/tests/src/Unit/JsonApiResource/LinkTest.php index 16154b64c63..fe62942a774 100644 --- a/core/modules/jsonapi/tests/src/Unit/JsonApiResource/LinkTest.php +++ b/core/modules/jsonapi/tests/src/Unit/JsonApiResource/LinkTest.php @@ -131,7 +131,7 @@ class LinkTest extends UnitTestCase { /** * Mocks the unrouted URL assembler. */ - protected function mockUrlAssembler() { + protected function mockUrlAssembler(): void { $url_assembler = $this->getMockBuilder(UnroutedUrlAssemblerInterface::class) ->disableOriginalConstructor() ->getMock(); diff --git a/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php b/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php index b99b0b29a69..33555d13dd1 100644 --- a/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php +++ b/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php @@ -199,7 +199,7 @@ class LanguageConfigurationTest extends BrowserTestBase { * description of the state of the check, for example: 'after re-ordering'. * Defaults to 'by default'. */ - protected function checkConfigurableLanguageWeight($state = 'by default') { + protected function checkConfigurableLanguageWeight($state = 'by default'): void { // Reset language list. \Drupal::languageManager()->reset(); $max_configurable_language_weight = $this->getHighestConfigurableLanguageWeight(); diff --git a/core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php b/core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php index 94b963358c3..3db65f083fd 100644 --- a/core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php +++ b/core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php @@ -167,7 +167,7 @@ class LanguageNegotiationContentEntityTest extends BrowserTestBase { /** * Creates a translated entity. */ - protected function createTranslatableEntity() { + protected function createTranslatableEntity(): void { $this->entity = EntityTest::create(); $this->entity->addTranslation('es', ['name' => 'name spanish']); $this->entity->addTranslation('fr', ['name' => 'name french']); @@ -183,7 +183,7 @@ class LanguageNegotiationContentEntityTest extends BrowserTestBase { * The route name for which the route object for the request should be * created. */ - protected function setCurrentRequestForRoute($path, $route_name) { + protected function setCurrentRequestForRoute($path, $route_name): void { $request = Request::create($path); $request->attributes->set(RouteObjectInterface::ROUTE_NAME, $route_name); $request->attributes->set(RouteObjectInterface::ROUTE_OBJECT, new Route($path)); diff --git a/core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php b/core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php index 7066786f6ed..2b4596e282c 100644 --- a/core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php +++ b/core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php @@ -59,7 +59,7 @@ class LanguageNegotiationInfoTest extends BrowserTestBase { * @param array $values * The key/value pairs to set in state. */ - protected function stateSet(array $values) { + protected function stateSet(array $values): void { // Set the new state values. $this->container->get('state')->setMultiple($values); // Refresh in-memory static state/config caches and static variables. @@ -168,7 +168,7 @@ class LanguageNegotiationInfoTest extends BrowserTestBase { /** * Check that language negotiation for fixed types matches the stored one. */ - protected function checkFixedLanguageTypes() { + protected function checkFixedLanguageTypes(): void { $configurable = $this->languageManager()->getLanguageTypes(); foreach ($this->languageManager()->getDefinedLanguageTypesInfo() as $type => $info) { if (!in_array($type, $configurable) && isset($info['fixed'])) { diff --git a/core/modules/language/tests/src/Functional/LanguageSwitchingTest.php b/core/modules/language/tests/src/Functional/LanguageSwitchingTest.php index 9469ce393dd..1691c5d4013 100644 --- a/core/modules/language/tests/src/Functional/LanguageSwitchingTest.php +++ b/core/modules/language/tests/src/Functional/LanguageSwitchingTest.php @@ -108,7 +108,7 @@ class LanguageSwitchingTest extends BrowserTestBase { * * @see self::testLanguageBlock() */ - protected function doTestHomePageLinks($block_label) { + protected function doTestHomePageLinks($block_label): void { // Create a node and set as home page. $this->createHomePage(); // Go to home page. @@ -170,7 +170,7 @@ class LanguageSwitchingTest extends BrowserTestBase { * * @see self::testLanguageBlock() */ - protected function doTestLanguageBlockAuthenticated($block_label) { + protected function doTestLanguageBlockAuthenticated($block_label): void { // Assert that the language switching block is displayed on the frontpage. $this->drupalGet(''); $this->assertSession()->pageTextContains($block_label); @@ -219,7 +219,7 @@ class LanguageSwitchingTest extends BrowserTestBase { * * @see self::testLanguageBlock() */ - protected function doTestLanguageBlockAnonymous($block_label) { + protected function doTestLanguageBlockAnonymous($block_label): void { $this->drupalLogout(); // Assert that the language switching block is displayed on the frontpage @@ -272,7 +272,7 @@ class LanguageSwitchingTest extends BrowserTestBase { * * @see self::testLanguageBlock() */ - protected function doTestLanguageBlock404(string $block_label, string $system_path) { + protected function doTestLanguageBlock404(string $block_label, string $system_path): void { $this->drupalGet('does-not-exist-' . $this->randomMachineName()); $this->assertSession()->pageTextContains($block_label); @@ -428,7 +428,7 @@ class LanguageSwitchingTest extends BrowserTestBase { * * @see self::testLanguageLinkActiveClass() */ - protected function doTestLanguageLinkActiveClassAuthenticated() { + protected function doTestLanguageLinkActiveClassAuthenticated(): void { $function_name = '#type link'; $path = 'language_test/type-link-active-class'; @@ -480,7 +480,7 @@ class LanguageSwitchingTest extends BrowserTestBase { * * @see self::testLanguageLinkActiveClass() */ - protected function doTestLanguageLinkActiveClassAnonymous() { + protected function doTestLanguageLinkActiveClassAnonymous(): void { $function_name = '#type link'; $this->drupalLogout(); @@ -693,7 +693,7 @@ class LanguageSwitchingTest extends BrowserTestBase { * @param string $label * The native name of the language. */ - protected function saveNativeLanguageName($langcode, $label) { + protected function saveNativeLanguageName($langcode, $label): void { \Drupal::service('language.config_factory_override') ->getOverride($langcode, 'language.entity.' . $langcode)->set('label', $label)->save(); } @@ -701,7 +701,7 @@ class LanguageSwitchingTest extends BrowserTestBase { /** * Create a node and set it as the home pages. */ - protected function createHomePage() { + protected function createHomePage(): void { $entity_type_manager = \Drupal::entityTypeManager(); // Create a node type and make it translatable. diff --git a/core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php b/core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php index 1e87247ec86..6365f34b01f 100644 --- a/core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php +++ b/core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php @@ -414,7 +414,7 @@ class LanguageUILanguageNegotiationTest extends BrowserTestBase { } } - protected function doRunTest($test) { + protected function doRunTest($test): void { $test += ['path_options' => []]; if (!empty($test['language_negotiation'])) { $method_weights = array_flip($test['language_negotiation']); diff --git a/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php b/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php index 7595480eea8..87fef39a73e 100644 --- a/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php +++ b/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php @@ -89,7 +89,7 @@ class LanguageUrlRewritingTest extends BrowserTestBase { * @param string $message * Message to display in assertion that language prefixes are not added. */ - private function checkUrl(LanguageInterface $language, $message) { + private function checkUrl(LanguageInterface $language, $message): void { $options = ['language' => $language, 'script' => '']; $base_path = trim(base_path(), '/'); $rewritten_path = trim(str_replace($base_path, '', Url::fromRoute('<front>', [], $options)->toString()), '/'); diff --git a/core/modules/language/tests/src/Kernel/EntityDefaultLanguageTest.php b/core/modules/language/tests/src/Kernel/EntityDefaultLanguageTest.php index f8404af2836..36877cfbd53 100644 --- a/core/modules/language/tests/src/Kernel/EntityDefaultLanguageTest.php +++ b/core/modules/language/tests/src/Kernel/EntityDefaultLanguageTest.php @@ -108,7 +108,7 @@ class EntityDefaultLanguageTest extends KernelTestBase { * @param string $langcode * Default language code of the nodes of this type. */ - protected function createContentType($name, $langcode) { + protected function createContentType($name, $langcode): void { $content_type = $this->container->get('entity_type.manager')->getStorage('node_type')->create([ 'name' => 'Test ' . $name, 'title_label' => 'Title', diff --git a/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php b/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php index 8237f920682..c904407d979 100644 --- a/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php +++ b/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php @@ -114,7 +114,7 @@ class EntityUrlLanguageTest extends LanguageTestBase { /** * Creates a translated entity. */ - protected function createTranslatableEntity() { + protected function createTranslatableEntity(): void { $this->entity = EntityTest::create(); $this->entity->addTranslation('es', ['name' => 'name spanish']); $this->entity->addTranslation('fr', ['name' => 'name french']); @@ -130,7 +130,7 @@ class EntityUrlLanguageTest extends LanguageTestBase { * The route name for which the route object for the request should be * created. */ - protected function setCurrentRequestForRoute($path, $route_name) { + protected function setCurrentRequestForRoute($path, $route_name): void { $request = Request::create($path); $request->attributes->set(RouteObjectInterface::ROUTE_NAME, $route_name); $request->attributes->set(RouteObjectInterface::ROUTE_OBJECT, new Route($path)); diff --git a/core/modules/language/tests/src/Kernel/Migrate/d6/MigrateDefaultLanguageTest.php b/core/modules/language/tests/src/Kernel/Migrate/d6/MigrateDefaultLanguageTest.php index ce5167947ff..f0f9e2b6f1b 100644 --- a/core/modules/language/tests/src/Kernel/Migrate/d6/MigrateDefaultLanguageTest.php +++ b/core/modules/language/tests/src/Kernel/Migrate/d6/MigrateDefaultLanguageTest.php @@ -77,7 +77,7 @@ class MigrateDefaultLanguageTest extends MigrateDrupal6TestBase { * @param string $langcode * The langcode of the default language. */ - protected function setDefaultLanguage($langcode) { + protected function setDefaultLanguage($langcode): void { // The default language of the test fixture is English. Change it to // something else before migrating, to be sure that the source site // default language is migrated. diff --git a/core/modules/language/tests/src/Kernel/Migrate/d7/MigrateDefaultLanguageTest.php b/core/modules/language/tests/src/Kernel/Migrate/d7/MigrateDefaultLanguageTest.php index cbcb91b390b..73d6d1ecf50 100644 --- a/core/modules/language/tests/src/Kernel/Migrate/d7/MigrateDefaultLanguageTest.php +++ b/core/modules/language/tests/src/Kernel/Migrate/d7/MigrateDefaultLanguageTest.php @@ -77,7 +77,7 @@ class MigrateDefaultLanguageTest extends MigrateDrupal7TestBase { * @param string $langcode * The langcode of the default language. */ - protected function setDefaultLanguage($langcode) { + protected function setDefaultLanguage($langcode): void { // The default language of the test fixture is English. Change it to // something else before migrating, to be sure that the source site // default language is migrated. diff --git a/core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentCommentSettingsNoEntityTranslationTest.php b/core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentCommentSettingsNoEntityTranslationTest.php index 9cf007a8593..11821c6c65a 100644 --- a/core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentCommentSettingsNoEntityTranslationTest.php +++ b/core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentCommentSettingsNoEntityTranslationTest.php @@ -44,7 +44,7 @@ class MigrateLanguageContentCommentSettingsNoEntityTranslationTest extends Migra /** * {@inheritdoc} */ - public static function migrateDumpAlter(KernelTestBase $test) { + public static function migrateDumpAlter(KernelTestBase $test): void { // Disable comment entity translation. $db = Database::getConnection('default', 'migrate'); diff --git a/core/modules/layout_builder/tests/src/Functional/LayoutBuilderDefaultValuesTest.php b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderDefaultValuesTest.php index 9d099dfe9c3..a1a1694a5d1 100644 --- a/core/modules/layout_builder/tests/src/Functional/LayoutBuilderDefaultValuesTest.php +++ b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderDefaultValuesTest.php @@ -117,7 +117,7 @@ class LayoutBuilderDefaultValuesTest extends BrowserTestBase { /** * Test for expected text on node 1. */ - protected function assertNodeWithValues() { + protected function assertNodeWithValues(): void { $this->drupalGet('node/1'); $assert_session = $this->assertSession(); // String field with no default should render a value. @@ -165,7 +165,7 @@ class LayoutBuilderDefaultValuesTest extends BrowserTestBase { /** * Test for expected text on node 2. */ - protected function assertNodeWithDefaultValues() { + protected function assertNodeWithDefaultValues(): void { // Switch theme to starterkit_theme so that layout builder components will // have block classes. /** @var \Drupal\Core\Extension\ThemeInstallerInterface $theme_installer */ @@ -208,7 +208,7 @@ class LayoutBuilderDefaultValuesTest extends BrowserTestBase { /** * Helper function to add string fields. */ - protected function addTextFields() { + protected function addTextFields(): void { // String field with no default. $field_storage = FieldStorageConfig::create([ 'field_name' => 'field_string_no_default', @@ -284,7 +284,7 @@ class LayoutBuilderDefaultValuesTest extends BrowserTestBase { /** * Helper function to add image fields. */ - protected function addImageFields() { + protected function addImageFields(): void { // Create files to use as the default images. $files = $this->drupalGetTestFiles('image'); $images = []; diff --git a/core/modules/layout_builder/tests/src/Functional/LayoutBuilderFieldBlockEntityReferenceCacheTagsTest.php b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderFieldBlockEntityReferenceCacheTagsTest.php index 0599f0f1d55..4d0c1f89443 100644 --- a/core/modules/layout_builder/tests/src/Functional/LayoutBuilderFieldBlockEntityReferenceCacheTagsTest.php +++ b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderFieldBlockEntityReferenceCacheTagsTest.php @@ -127,7 +127,7 @@ class LayoutBuilderFieldBlockEntityReferenceCacheTagsTest extends BrowserTestBas * This tests whether all expected tags are in the page cache tags, not that * expected tags and page cache tags are identical. */ - protected function verifyPageCacheContainsTags(Url $url, $hit_or_miss, $tags = FALSE) { + protected function verifyPageCacheContainsTags(Url $url, $hit_or_miss, $tags = FALSE): void { $this->drupalGet($url); $this->assertSession()->responseHeaderEquals('X-Drupal-Cache', $hit_or_miss); diff --git a/core/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php index a64dd16ac5b..58b569db196 100644 --- a/core/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php +++ b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php @@ -139,7 +139,7 @@ class LayoutBuilderTranslationTest extends ContentTranslationTestBase { /** * Setup translated entity with layouts. */ - protected function setUpEntities() { + protected function setUpEntities(): void { $this->drupalLogin($this->administrator); // @todo The Layout Builder UI relies on local tasks; fix in @@ -160,7 +160,7 @@ class LayoutBuilderTranslationTest extends ContentTranslationTestBase { /** * Set up the View Display. */ - protected function setUpViewDisplay() { + protected function setUpViewDisplay(): void { EntityViewDisplay::create([ 'targetEntityType' => $this->entityTypeId, 'bundle' => $this->bundle, @@ -176,7 +176,7 @@ class LayoutBuilderTranslationTest extends ContentTranslationTestBase { /** * Adds an entity translation. */ - protected function addEntityTranslation() { + protected function addEntityTranslation(): void { $user = $this->loggedInUser; $this->drupalLogin($this->translator); $add_translation_url = Url::fromRoute("entity.$this->entityTypeId.content_translation_add", [ @@ -192,7 +192,7 @@ class LayoutBuilderTranslationTest extends ContentTranslationTestBase { /** * Adds a layout override. */ - protected function addLayoutOverride() { + protected function addLayoutOverride(): void { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); $entity_url = $this->entity->toUrl()->toString(); diff --git a/core/modules/layout_builder/tests/src/FunctionalJavascript/ContextualLinksTest.php b/core/modules/layout_builder/tests/src/FunctionalJavascript/ContextualLinksTest.php index 6003c0c11d1..efa1b1ba979 100644 --- a/core/modules/layout_builder/tests/src/FunctionalJavascript/ContextualLinksTest.php +++ b/core/modules/layout_builder/tests/src/FunctionalJavascript/ContextualLinksTest.php @@ -131,7 +131,7 @@ class ContextualLinksTest extends WebDriverTestBase { * @param string $block_name * The block name as it appears in the Add block form. */ - protected function addBlock($block_name) { + protected function addBlock($block_name): void { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); @@ -189,7 +189,7 @@ class ContextualLinksTest extends WebDriverTestBase { * * @internal */ - protected function assertCorrectContextualLinks() { + protected function assertCorrectContextualLinks(): void { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); $this->assertNotEmpty($assert_session->waitForElementVisible('css', '.block-views-blocktest-block-view-block-2')); diff --git a/core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php b/core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php index 570bdee7a13..97808e73b69 100644 --- a/core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php +++ b/core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php @@ -169,7 +169,7 @@ class InlineBlockPrivateFilesTest extends InlineBlockTestBase { * @param \Drupal\file\FileInterface $file * The file entity. */ - protected function replaceFileInBlock(FileInterface $file) { + protected function replaceFileInBlock(FileInterface $file): void { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); $this->clickContextualLink(static::INLINE_BLOCK_LOCATOR, 'Configure'); @@ -189,7 +189,7 @@ class InlineBlockPrivateFilesTest extends InlineBlockTestBase { * @param \Drupal\file\Entity\File $file * The file entity. */ - protected function addInlineFileBlockToLayout($title, File $file) { + protected function addInlineFileBlockToLayout($title, File $file): void { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); $page->clickLink('Add block'); @@ -268,7 +268,7 @@ class InlineBlockPrivateFilesTest extends InlineBlockTestBase { * @param \Drupal\file\FileInterface $file * The file to be attached. */ - protected function attachFileToBlockForm(FileInterface $file) { + protected function attachFileToBlockForm(FileInterface $file): void { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); $this->assertSession()->waitForElementVisible('named', ['field', 'files[settings_block_form_field_file_0]']); @@ -283,7 +283,7 @@ class InlineBlockPrivateFilesTest extends InlineBlockTestBase { * @param int $node_id * The node id. */ - protected function createNewNodeRevision($node_id) { + protected function createNewNodeRevision($node_id): void { $node = Node::load($node_id); $node->setTitle('Update node'); $node->setNewRevision(); diff --git a/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php b/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php index 014bbbf600d..bee629bf691 100644 --- a/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php +++ b/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php @@ -156,7 +156,7 @@ class LayoutBuilderDisableInteractionsTest extends WebDriverTestBase { * @param string $rendered_locator * The CSS locator to confirm the block was rendered. */ - protected function addBlock($block_link_text, $rendered_locator) { + protected function addBlock($block_link_text, $rendered_locator): void { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); @@ -331,7 +331,7 @@ class LayoutBuilderDisableInteractionsTest extends WebDriverTestBase { * * @see https://www.drupal.org/node/3460567 */ - protected function movePointerTo($selector) { + protected function movePointerTo($selector): void { @trigger_error(__METHOD__ . '() is deprecated in drupal:11.1.0 and is removed from drupal:12.0.0. Use $this->getSession()->getDriver()->mouseOver() instead. See https://www.drupal.org/node/3460567', E_USER_DEPRECATED); $driver_session = $this->getSession()->getDriver()->getWebDriverSession(); $element = $driver_session->element('css selector', $selector); diff --git a/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderNestedFormUiTest.php b/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderNestedFormUiTest.php index 4c402fa013a..6cb5b136b87 100644 --- a/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderNestedFormUiTest.php +++ b/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderNestedFormUiTest.php @@ -134,7 +134,7 @@ class LayoutBuilderNestedFormUiTest extends WebDriverTestBase { * @param string $expected_save_message * The message that should be displayed after successful layout save. */ - protected function addFormBlock($label, $path, $expected_save_message) { + protected function addFormBlock($label, $path, $expected_save_message): void { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); diff --git a/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderTest.php b/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderTest.php index e5b81f7ddbd..fb237f03a22 100644 --- a/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderTest.php +++ b/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderTest.php @@ -407,7 +407,7 @@ class LayoutBuilderTest extends WebDriverTestBase { * * @todo Remove this in https://www.drupal.org/project/drupal/issues/2918718. */ - protected function clickContextualLink($selector, $link_locator, $force_visible = TRUE) { + protected function clickContextualLink($selector, $link_locator, $force_visible = TRUE): void { /** @var \Drupal\FunctionalJavascriptTests\JSWebAssert $assert_session */ $assert_session = $this->assertSession(); /** @var \Behat\Mink\Element\DocumentElement $page */ @@ -450,7 +450,7 @@ class LayoutBuilderTest extends WebDriverTestBase { * @param bool $allow_custom * Whether to allow custom layouts. */ - private function enableLayoutsForBundle($path, $allow_custom = FALSE) { + private function enableLayoutsForBundle($path, $allow_custom = FALSE): void { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); $this->drupalGet($path); @@ -470,7 +470,7 @@ class LayoutBuilderTest extends WebDriverTestBase { * @param string $block_title * The block title which will be the link text. */ - private function openAddBlockForm($block_title) { + private function openAddBlockForm($block_title): void { $assert_session = $this->assertSession(); $assert_session->linkExists('Add block'); $this->clickLink('Add block'); @@ -503,7 +503,7 @@ class LayoutBuilderTest extends WebDriverTestBase { * * @todo Remove in https://www.drupal.org/project/drupal/issues/2909782. */ - private function markCurrentPage() { + private function markCurrentPage(): void { $this->pageReloadMarker = $this->randomMachineName(); $this->getSession()->executeScript('document.body.appendChild(document.createTextNode("' . $this->pageReloadMarker . '"));'); } diff --git a/core/modules/layout_builder/tests/src/FunctionalJavascript/MoveBlockFormTest.php b/core/modules/layout_builder/tests/src/FunctionalJavascript/MoveBlockFormTest.php index 8fae6ae1c28..2c0923d7a88 100644 --- a/core/modules/layout_builder/tests/src/FunctionalJavascript/MoveBlockFormTest.php +++ b/core/modules/layout_builder/tests/src/FunctionalJavascript/MoveBlockFormTest.php @@ -212,7 +212,7 @@ class MoveBlockFormTest extends WebDriverTestBase { * @param array $updated_blocks * The updated blocks order. */ - protected function moveBlockWithKeyboard($direction, $block_label, array $updated_blocks) { + protected function moveBlockWithKeyboard($direction, $block_label, array $updated_blocks): void { $keys = [ 'up' => 38, 'down' => 40, @@ -285,7 +285,7 @@ class MoveBlockFormTest extends WebDriverTestBase { * @param array $initial_blocks * The initial blocks that should be shown in the draggable table. */ - protected function openBodyMoveForm($delta, $region, array $initial_blocks) { + protected function openBodyMoveForm($delta, $region, array $initial_blocks): void { $assert_session = $this->assertSession(); $body_field_locator = "[data-layout-delta=\"$delta\"] [data-region=\"$region\"] .block-field-blocknodebundle-with-section-fieldbody"; diff --git a/core/modules/link/tests/src/Functional/LinkFieldTest.php b/core/modules/link/tests/src/Functional/LinkFieldTest.php index 23df828984a..8e28ab4a593 100644 --- a/core/modules/link/tests/src/Functional/LinkFieldTest.php +++ b/core/modules/link/tests/src/Functional/LinkFieldTest.php @@ -86,7 +86,7 @@ class LinkFieldTest extends BrowserTestBase { /** * Tests link field URL validation. */ - protected function doTestURLValidation() { + protected function doTestURLValidation(): void { $field_name = $this->randomMachineName(); // Create a field with settings to validate. $this->fieldStorage = FieldStorageConfig::create([ @@ -273,7 +273,7 @@ class LinkFieldTest extends BrowserTestBase { /** * Tests the link title settings of a link field. */ - protected function doTestLinkTitle() { + protected function doTestLinkTitle(): void { $field_name = $this->randomMachineName(); // Create a field with settings to validate. $this->fieldStorage = FieldStorageConfig::create([ @@ -398,7 +398,7 @@ class LinkFieldTest extends BrowserTestBase { /** * Tests the default 'link' formatter. */ - protected function doTestLinkFormatter() { + protected function doTestLinkFormatter(): void { $field_name = $this->randomMachineName(); // Create a field with settings to validate. $this->fieldStorage = FieldStorageConfig::create([ @@ -734,7 +734,7 @@ class LinkFieldTest extends BrowserTestBase { * This test is mostly the same as testLinkFormatter(), but they cannot be * merged, since they involve different configuration and output. */ - protected function doTestLinkSeparateFormatter() { + protected function doTestLinkSeparateFormatter(): void { $field_name = $this->randomMachineName(); // Create a field with settings to validate. $this->fieldStorage = FieldStorageConfig::create([ @@ -861,7 +861,7 @@ class LinkFieldTest extends BrowserTestBase { * a link and also which LinkItemInterface::LINK_* is (EXTERNAL, GENERIC, * INTERNAL). */ - protected function doTestLinkTypeOnLinkWidget() { + protected function doTestLinkTypeOnLinkWidget(): void { $link_type = LinkItemInterface::LINK_EXTERNAL; $field_name = $this->randomMachineName(); @@ -899,7 +899,7 @@ class LinkFieldTest extends BrowserTestBase { /** * Tests editing a link to a non-node entity. */ - protected function doTestEditNonNodeEntityLink() { + protected function doTestEditNonNodeEntityLink(): void { $entity_type_manager = \Drupal::entityTypeManager(); $entity_test_storage = $entity_type_manager->getStorage('entity_test'); diff --git a/core/modules/link/tests/src/Functional/LinkFieldUITest.php b/core/modules/link/tests/src/Functional/LinkFieldUITest.php index 6f6d8d79b06..56367d8b9ac 100644 --- a/core/modules/link/tests/src/Functional/LinkFieldUITest.php +++ b/core/modules/link/tests/src/Functional/LinkFieldUITest.php @@ -149,7 +149,7 @@ class LinkFieldUITest extends BrowserTestBase { * @param string $default_uri * The default URI value. */ - public function runFieldUIItem($cardinality, $link_type, $title, $label, $field_name, $default_uri) { + public function runFieldUIItem($cardinality, $link_type, $title, $label, $field_name, $default_uri): void { $this->drupalLogin($this->adminUser); $type_path = 'admin/structure/types/manage/' . $this->contentType->id(); diff --git a/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php b/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php index db50cef0671..5bbca4227c6 100644 --- a/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php +++ b/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php @@ -408,7 +408,7 @@ class LocaleImportFunctionalTest extends BrowserTestBase { * @param array $encodings * (optional) The encoding of the file. */ - public function importPoFile($contents, array $options = [], array $encodings = []) { + public function importPoFile($contents, array $options = [], array $encodings = []): void { $file_system = \Drupal::service('file_system'); $name = $file_system->tempnam('temporary://', "po_") . '.po'; foreach ($encodings as $encoding) { diff --git a/core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php b/core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php index 7ba90c9bc77..1bb919413b0 100644 --- a/core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php +++ b/core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php @@ -385,7 +385,7 @@ class LocalePluralFormatTest extends BrowserTestBase { * @param array $options * Additional options to pass to the translation import form. */ - public function importPoFile($contents, array $options = []) { + public function importPoFile($contents, array $options = []): void { $file_system = \Drupal::service('file_system'); $name = $file_system->tempnam('temporary://', "po_") . '.po'; file_put_contents($name, $contents); diff --git a/core/modules/locale/tests/src/Functional/LocalesLocationAddIndexUpdateTest.php b/core/modules/locale/tests/src/Functional/LocalesLocationAddIndexUpdateTest.php index 8c471ffd1bb..9861453b601 100644 --- a/core/modules/locale/tests/src/Functional/LocalesLocationAddIndexUpdateTest.php +++ b/core/modules/locale/tests/src/Functional/LocalesLocationAddIndexUpdateTest.php @@ -21,7 +21,7 @@ class LocalesLocationAddIndexUpdateTest extends UpdatePathTestBase { /** * {@inheritdoc} */ - protected function setDatabaseDumpFiles() { + protected function setDatabaseDumpFiles(): void { $this->databaseDumpFiles[] = $this->root . '/core/modules/system/tests/fixtures/update/drupal-10.3.0.filled.standard.php.gz'; } diff --git a/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php b/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php index 8648ca59f70..578c68b4bb7 100644 --- a/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php +++ b/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php @@ -18,7 +18,7 @@ class LocaleConfigSubscriberForeignTest extends LocaleConfigSubscriberTest { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); $language = Language::$defaultValues; @@ -30,7 +30,7 @@ class LocaleConfigSubscriberForeignTest extends LocaleConfigSubscriberTest { /** * {@inheritdoc} */ - protected function setUpLanguages() { + protected function setUpLanguages(): void { parent::setUpLanguages(); ConfigurableLanguage::createFromLangcode('hu')->save(); } @@ -38,7 +38,7 @@ class LocaleConfigSubscriberForeignTest extends LocaleConfigSubscriberTest { /** * {@inheritdoc} */ - protected function setUpLocale() { + protected function setUpLocale(): void { parent::setUpLocale(); $this->setUpTranslation('locale_test.translation', 'test', 'English test', 'Hungarian test', 'hu', TRUE); } @@ -158,7 +158,7 @@ class LocaleConfigSubscriberForeignTest extends LocaleConfigSubscriberTest { * @param string $langcode * The language code. */ - protected function saveLanguageActive($config_name, $key, $value, $langcode) { + protected function saveLanguageActive($config_name, $key, $value, $langcode): void { $this ->configFactory ->getEditable($config_name) diff --git a/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php b/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php index e0dd50c9396..bcf2b773881 100644 --- a/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php +++ b/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php @@ -83,21 +83,21 @@ class LocaleConfigSubscriberTest extends KernelTestBase { /** * Sets up default language for this test. */ - protected function setUpDefaultLanguage() { + protected function setUpDefaultLanguage(): void { // Keep the default English. } /** * Sets up languages needed for this test. */ - protected function setUpLanguages() { + protected function setUpLanguages(): void { ConfigurableLanguage::createFromLangcode('de')->save(); } /** * Sets up the locale storage strings to be in line with configuration. */ - protected function setUpLocale() { + protected function setUpLocale(): void { // Set up the locale database the same way we have in the config samples. $this->setUpNoTranslation('locale_test.no_translation', 'test', 'Test', 'de'); $this->setUpTranslation('locale_test.translation', 'test', 'English test', 'German test', 'de'); @@ -201,7 +201,7 @@ class LocaleConfigSubscriberTest extends KernelTestBase { * @param string $langcode * The language code. */ - protected function setUpNoTranslation($config_name, $key, $source, $langcode) { + protected function setUpNoTranslation($config_name, $key, $source, $langcode): void { $this->localeConfigManager->updateConfigTranslations([$config_name], [$langcode]); $this->assertNoConfigOverride($config_name, $key); $this->assertNoTranslation($config_name, $langcode); @@ -228,7 +228,7 @@ class LocaleConfigSubscriberTest extends KernelTestBase { * @param bool $is_active * Whether the update will affect the active configuration. */ - protected function setUpTranslation($config_name, $key, $source, $translation, $langcode, $is_active = FALSE) { + protected function setUpTranslation($config_name, $key, $source, $translation, $langcode, $is_active = FALSE): void { // Create source and translation strings for the configuration value and add // the configuration name as a location. This would be performed by // locale_translate_batch_import() invoking @@ -270,7 +270,7 @@ class LocaleConfigSubscriberTest extends KernelTestBase { * @param string $langcode * The language code. */ - protected function saveLanguageOverride($config_name, $key, $value, $langcode) { + protected function saveLanguageOverride($config_name, $key, $value, $langcode): void { $translation_override = $this->languageManager ->getLanguageConfigOverride($langcode, $config_name); $translation_override @@ -303,7 +303,7 @@ class LocaleConfigSubscriberTest extends KernelTestBase { * @param bool $is_active * Whether the update will affect the active configuration. */ - protected function saveLocaleTranslationData($config_name, $key, $source, $translation, $langcode, $is_active = FALSE) { + protected function saveLocaleTranslationData($config_name, $key, $source, $translation, $langcode, $is_active = FALSE): void { $this->localeConfigManager->reset(); $this->localeConfigManager ->getStringTranslation($config_name, $langcode, $source, '') @@ -340,7 +340,7 @@ class LocaleConfigSubscriberTest extends KernelTestBase { * @param string $langcode * The language code. */ - protected function deleteLanguageOverride($config_name, $key, $source_value, $langcode) { + protected function deleteLanguageOverride($config_name, $key, $source_value, $langcode): void { $translation_override = $this->languageManager ->getLanguageConfigOverride($langcode, $config_name); $translation_override @@ -370,7 +370,7 @@ class LocaleConfigSubscriberTest extends KernelTestBase { * @param string $langcode * The language code. */ - protected function deleteLocaleTranslationData($config_name, $key, $source_value, $langcode) { + protected function deleteLocaleTranslationData($config_name, $key, $source_value, $langcode): void { $this->localeConfigManager ->getStringTranslation($config_name, $langcode, $source_value, '') ->delete(); diff --git a/core/modules/media/tests/src/Functional/MediaTranslationUITest.php b/core/modules/media/tests/src/Functional/MediaTranslationUITest.php index 6606db11737..6802d7ec60c 100644 --- a/core/modules/media/tests/src/Functional/MediaTranslationUITest.php +++ b/core/modules/media/tests/src/Functional/MediaTranslationUITest.php @@ -57,7 +57,7 @@ class MediaTranslationUITest extends ContentTranslationUITestBase { /** * {@inheritdoc} */ - public function setupBundle() { + public function setupBundle(): void { $this->createMediaType('test', [ 'id' => $this->bundle, 'queue_thumbnail_downloads' => FALSE, diff --git a/core/modules/media/tests/src/FunctionalJavascript/MediaSourceOEmbedVideoTest.php b/core/modules/media/tests/src/FunctionalJavascript/MediaSourceOEmbedVideoTest.php index 2397324680c..1413b629af1 100644 --- a/core/modules/media/tests/src/FunctionalJavascript/MediaSourceOEmbedVideoTest.php +++ b/core/modules/media/tests/src/FunctionalJavascript/MediaSourceOEmbedVideoTest.php @@ -46,7 +46,7 @@ class MediaSourceOEmbedVideoTest extends MediaSourceTestBase { /** * {@inheritdoc} */ - protected function initConfig(ContainerInterface $container) { + protected function initConfig(ContainerInterface $container): void { parent::initConfig($container); // Enable twig debugging to make testing template usage easy. diff --git a/core/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php b/core/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php index e85c357bc4e..72fa18190b7 100644 --- a/core/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php +++ b/core/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php @@ -102,7 +102,7 @@ class MediaStandardProfileTest extends MediaJavascriptTestBase { /** * Tests the standard profile configuration for media type 'audio'. */ - protected function audioTest() { + protected function audioTest(): void { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); $source_field_id = 'field_media_audio_file'; @@ -196,7 +196,7 @@ class MediaStandardProfileTest extends MediaJavascriptTestBase { /** * Tests the standard profile configuration for media type 'image'. */ - protected function imageTest() { + protected function imageTest(): void { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); $source_field_id = 'field_media_image'; @@ -293,7 +293,7 @@ class MediaStandardProfileTest extends MediaJavascriptTestBase { /** * Tests the standard profile configuration for media type 'document'. */ - protected function documentTest() { + protected function documentTest(): void { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); $source_field_id = 'field_media_document'; @@ -383,7 +383,7 @@ class MediaStandardProfileTest extends MediaJavascriptTestBase { /** * Tests the standard profile configuration for media type 'remote_video'. */ - protected function remoteVideoTest() { + protected function remoteVideoTest(): void { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); $source_field_id = 'field_media_oembed_video'; @@ -478,7 +478,7 @@ class MediaStandardProfileTest extends MediaJavascriptTestBase { /** * Tests the standard profile configuration for media type 'video'. */ - protected function videoTest() { + protected function videoTest(): void { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); $source_field_id = 'field_media_video_file'; diff --git a/core/modules/media/tests/src/Kernel/MediaSourceTest.php b/core/modules/media/tests/src/Kernel/MediaSourceTest.php index 19e77ebfacd..012a49d0b22 100644 --- a/core/modules/media/tests/src/Kernel/MediaSourceTest.php +++ b/core/modules/media/tests/src/Kernel/MediaSourceTest.php @@ -616,7 +616,7 @@ class MediaSourceTest extends MediaKernelTestBase { * @param string $field_name * Source field name. */ - protected function createMediaTypeViaForm($source_plugin_id, $field_name) { + protected function createMediaTypeViaForm($source_plugin_id, $field_name): void { /** @var \Drupal\media\MediaTypeInterface $type */ $type = MediaType::create(['source' => $source_plugin_id]); diff --git a/core/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php b/core/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php index 7dbc6f886d8..99d206253bb 100644 --- a/core/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php +++ b/core/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php @@ -578,7 +578,7 @@ class EntityReferenceWidgetTest extends MediaLibraryTestBase { /** * {@inheritdoc} */ - protected function sortableUpdate($item, $from, $to = NULL) { + protected function sortableUpdate($item, $from, $to = NULL): void { // See core/modules/media_library/js/media_library.widget.js. $script = <<<JS (function ($) { diff --git a/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentTranslationUITest.php b/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentTranslationUITest.php index a1ee4b21f4a..cfe708e875b 100644 --- a/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentTranslationUITest.php +++ b/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentTranslationUITest.php @@ -110,7 +110,7 @@ class MenuLinkContentTranslationUITest extends ContentTranslationUITestBase { /** * {@inheritdoc} */ - protected function doTestTranslationEdit() { + protected function doTestTranslationEdit(): void { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); diff --git a/core/modules/menu_ui/tests/src/Functional/MenuUiTest.php b/core/modules/menu_ui/tests/src/Functional/MenuUiTest.php index 32ba6df9a38..f7f811c5e51 100644 --- a/core/modules/menu_ui/tests/src/Functional/MenuUiTest.php +++ b/core/modules/menu_ui/tests/src/Functional/MenuUiTest.php @@ -234,7 +234,7 @@ class MenuUiTest extends BrowserTestBase { /** * Adds a custom menu using CRUD functions. */ - public function addCustomMenuCRUD() { + public function addCustomMenuCRUD(): void { // Add a new custom menu. $menu_name = $this->randomMachineName(MenuStorage::MAX_ID_LENGTH); $label = $this->randomMachineName(16); @@ -322,7 +322,7 @@ class MenuUiTest extends BrowserTestBase { * This deletes the custom menu that is stored in $this->menu and performs * tests on the menu delete user interface. */ - public function deleteCustomMenu() { + public function deleteCustomMenu(): void { $menu_name = $this->menu->id(); $label = $this->menu->label(); @@ -350,7 +350,7 @@ class MenuUiTest extends BrowserTestBase { /** * Tests menu functionality. */ - public function doMenuTests() { + public function doMenuTests(): void { // Add a link to the tools menu first, to test cacheability metadata of the // destination query string. $this->drupalGet('admin/structure/menu/manage/tools'); @@ -634,7 +634,7 @@ class MenuUiTest extends BrowserTestBase { /** * Ensures that the proper default values are set when adding a menu link. */ - protected function doMenuLinkFormDefaultsTest() { + protected function doMenuLinkFormDefaultsTest(): void { $this->drupalGet("admin/structure/menu/manage/tools/add"); $this->assertSession()->statusCodeEquals(200); @@ -789,7 +789,7 @@ class MenuUiTest extends BrowserTestBase { /** * Attempts to add menu link with invalid path or no access permission. */ - public function addInvalidMenuLink() { + public function addInvalidMenuLink(): void { foreach (['access' => '/admin/people/permissions'] as $type => $link_path) { $edit = [ 'link[0][uri]' => $link_path, @@ -804,7 +804,7 @@ class MenuUiTest extends BrowserTestBase { /** * Tests that parent options are limited by depth when adding menu links. */ - public function checkInvalidParentMenuLinks() { + public function checkInvalidParentMenuLinks(): void { $last_link = NULL; $plugin_ids = []; @@ -866,7 +866,7 @@ class MenuUiTest extends BrowserTestBase { * @param object $parent_node * Parent menu link content node. */ - public function verifyMenuLink(MenuLinkContent $item, $item_node, ?MenuLinkContent $parent = NULL, $parent_node = NULL) { + public function verifyMenuLink(MenuLinkContent $item, $item_node, ?MenuLinkContent $parent = NULL, $parent_node = NULL): void { // View home page. $this->drupalGet(''); $this->assertSession()->statusCodeEquals(200); @@ -903,7 +903,7 @@ class MenuUiTest extends BrowserTestBase { * @param string $menu_name * The menu the menu link will be moved to. */ - public function moveMenuLink(MenuLinkContent $item, $parent, $menu_name) { + public function moveMenuLink(MenuLinkContent $item, $parent, $menu_name): void { $menu_link_id = $item->id(); $edit = [ @@ -920,7 +920,7 @@ class MenuUiTest extends BrowserTestBase { * @param \Drupal\menu_link_content\Entity\MenuLinkContent $item * Menu link entity. */ - public function modifyMenuLink(MenuLinkContent $item) { + public function modifyMenuLink(MenuLinkContent $item): void { $item->title->value = $this->randomMachineName(16); $menu_link_id = $item->id(); @@ -965,7 +965,7 @@ class MenuUiTest extends BrowserTestBase { * @param int $old_weight * Original title for menu link. */ - public function resetMenuLink(MenuLinkInterface $menu_link, $old_weight) { + public function resetMenuLink(MenuLinkInterface $menu_link, $old_weight): void { // Reset menu link. $this->drupalGet("admin/structure/menu/link/{$menu_link->getPluginId()}/reset"); $this->submitForm([], 'Reset'); @@ -983,7 +983,7 @@ class MenuUiTest extends BrowserTestBase { * @param \Drupal\menu_link_content\Entity\MenuLinkContent $item * Menu link. */ - public function deleteMenuLink(MenuLinkContent $item) { + public function deleteMenuLink(MenuLinkContent $item): void { $menu_link_id = $item->id(); $title = $item->getTitle(); @@ -1004,7 +1004,7 @@ class MenuUiTest extends BrowserTestBase { * @param \Drupal\menu_link_content\Entity\MenuLinkContent $item * Menu link. */ - public function toggleMenuLink(MenuLinkContent $item) { + public function toggleMenuLink(MenuLinkContent $item): void { $this->disableMenuLink($item); // Verify menu link is absent. @@ -1023,7 +1023,7 @@ class MenuUiTest extends BrowserTestBase { * @param \Drupal\menu_link_content\Entity\MenuLinkContent $item * Menu link. */ - public function disableMenuLink(MenuLinkContent $item) { + public function disableMenuLink(MenuLinkContent $item): void { $menu_link_id = $item->id(); $edit['enabled[value]'] = FALSE; $this->drupalGet("admin/structure/menu/item/{$menu_link_id}/edit"); @@ -1040,7 +1040,7 @@ class MenuUiTest extends BrowserTestBase { * @param \Drupal\menu_link_content\Entity\MenuLinkContent $item * Menu link. */ - public function enableMenuLink(MenuLinkContent $item) { + public function enableMenuLink(MenuLinkContent $item): void { $menu_link_id = $item->id(); $edit['enabled[value]'] = TRUE; $this->drupalGet("admin/structure/menu/item/{$menu_link_id}/edit"); @@ -1130,7 +1130,7 @@ class MenuUiTest extends BrowserTestBase { * @param int $response * (optional) The expected HTTP response code. Defaults to 200. */ - private function verifyAccess($response = 200) { + private function verifyAccess($response = 200): void { // View menu help page. $this->drupalGet('admin/help/menu'); $this->assertSession()->statusCodeEquals($response); @@ -1171,7 +1171,7 @@ class MenuUiTest extends BrowserTestBase { /** * Tests menu block settings. */ - protected function doTestMenuBlock() { + protected function doTestMenuBlock(): void { $menu_id = $this->menu->id(); $block_id = $this->blockPlacements[$menu_id]; $this->drupalGet('admin/structure/block/manage/' . $block_id); diff --git a/core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php b/core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php index 2c27c9a5697..a21bca9c868 100644 --- a/core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php +++ b/core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php @@ -90,7 +90,7 @@ class MigrateEntityContentBaseTest extends KernelTestBase { * @param array $configuration * The plugin configuration. */ - protected function createDestination(array $configuration) { + protected function createDestination(array $configuration): void { $this->destination = new EntityContentBase( $configuration, 'fake_plugin_id', diff --git a/core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php b/core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php index 719f9bf8d1d..bd2db2b8a20 100644 --- a/core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php +++ b/core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php @@ -253,7 +253,7 @@ class MigrateEntityContentValidationTest extends KernelTestBase { * @param \Drupal\migrate\Event\MigrateIdMapMessageEvent $event * The migration event. */ - public function mapMessageRecorder(MigrateIdMapMessageEvent $event) { + public function mapMessageRecorder(MigrateIdMapMessageEvent $event): void { $this->messages[] = implode(',', $event->getSourceIdValues()) . ': ' . $event->getMessage(); } @@ -266,7 +266,7 @@ class MigrateEntityContentValidationTest extends KernelTestBase { * @throws \Exception * @throws \Drupal\migrate\MigrateException */ - protected function runImport(array $definition) { + protected function runImport(array $definition): void { // Reset the list of messages from a previous migration. $this->messages = []; diff --git a/core/modules/migrate/tests/src/Kernel/MigrateEventsTest.php b/core/modules/migrate/tests/src/Kernel/MigrateEventsTest.php index 973fb51b470..754c27dc728 100644 --- a/core/modules/migrate/tests/src/Kernel/MigrateEventsTest.php +++ b/core/modules/migrate/tests/src/Kernel/MigrateEventsTest.php @@ -127,7 +127,7 @@ class MigrateEventsTest extends KernelTestBase { * @param string $name * The event name. */ - public function mapSaveEventRecorder(MigrateMapSaveEvent $event, $name) { + public function mapSaveEventRecorder(MigrateMapSaveEvent $event, $name): void { $this->state->set('migrate_events_test.map_save_event', [ 'event_name' => $name, 'map' => $event->getMap(), @@ -143,7 +143,7 @@ class MigrateEventsTest extends KernelTestBase { * @param string $name * The event name. */ - public function mapDeleteEventRecorder(MigrateMapDeleteEvent $event, $name) { + public function mapDeleteEventRecorder(MigrateMapDeleteEvent $event, $name): void { $this->state->set('migrate_events_test.map_delete_event', [ 'event_name' => $name, 'map' => $event->getMap(), @@ -159,7 +159,7 @@ class MigrateEventsTest extends KernelTestBase { * @param string $name * The event name. */ - public function preImportEventRecorder(MigrateImportEvent $event, $name) { + public function preImportEventRecorder(MigrateImportEvent $event, $name): void { $this->state->set('migrate_events_test.pre_import_event', [ 'event_name' => $name, 'migration' => $event->getMigration(), @@ -174,7 +174,7 @@ class MigrateEventsTest extends KernelTestBase { * @param string $name * The event name. */ - public function postImportEventRecorder(MigrateImportEvent $event, $name) { + public function postImportEventRecorder(MigrateImportEvent $event, $name): void { $this->state->set('migrate_events_test.post_import_event', [ 'event_name' => $name, 'migration' => $event->getMigration(), @@ -189,7 +189,7 @@ class MigrateEventsTest extends KernelTestBase { * @param string $name * The event name. */ - public function preRowSaveEventRecorder(MigratePreRowSaveEvent $event, $name) { + public function preRowSaveEventRecorder(MigratePreRowSaveEvent $event, $name): void { $this->state->set('migrate_events_test.pre_row_save_event', [ 'event_name' => $name, 'migration' => $event->getMigration(), @@ -205,7 +205,7 @@ class MigrateEventsTest extends KernelTestBase { * @param string $name * The event name. */ - public function postRowSaveEventRecorder(MigratePostRowSaveEvent $event, $name) { + public function postRowSaveEventRecorder(MigratePostRowSaveEvent $event, $name): void { $this->state->set('migrate_events_test.post_row_save_event', [ 'event_name' => $name, 'migration' => $event->getMigration(), diff --git a/core/modules/migrate/tests/src/Kernel/MigrateInterruptionTest.php b/core/modules/migrate/tests/src/Kernel/MigrateInterruptionTest.php index 46900d12a17..91eee48c891 100644 --- a/core/modules/migrate/tests/src/Kernel/MigrateInterruptionTest.php +++ b/core/modules/migrate/tests/src/Kernel/MigrateInterruptionTest.php @@ -74,7 +74,7 @@ class MigrateInterruptionTest extends KernelTestBase { * @param string $name * The event name. */ - public function postRowSaveEventRecorder(MigratePostRowSaveEvent $event, $name) { + public function postRowSaveEventRecorder(MigratePostRowSaveEvent $event, $name): void { $event->getMigration()->interruptMigration(MigrationInterface::RESULT_INCOMPLETE); } diff --git a/core/modules/migrate/tests/src/Kernel/MigrateMessageTest.php b/core/modules/migrate/tests/src/Kernel/MigrateMessageTest.php index 71abac1327a..48e6f06a917 100644 --- a/core/modules/migrate/tests/src/Kernel/MigrateMessageTest.php +++ b/core/modules/migrate/tests/src/Kernel/MigrateMessageTest.php @@ -132,7 +132,7 @@ class MigrateMessageTest extends KernelTestBase implements MigrateMessageInterfa * @param string $name * The event name. */ - public function mapMessageRecorder(MigrateIdMapMessageEvent $event, $name) { + public function mapMessageRecorder(MigrateIdMapMessageEvent $event, $name): void { if ($event->getLevel() == MigrationInterface::MESSAGE_NOTICE || $event->getLevel() == MigrationInterface::MESSAGE_INFORMATIONAL) { $type = 'status'; @@ -147,7 +147,7 @@ class MigrateMessageTest extends KernelTestBase implements MigrateMessageInterfa /** * {@inheritdoc} */ - public function display($message, $type = 'status') { + public function display($message, $type = 'status'): void { $this->messages[] = $message; } diff --git a/core/modules/migrate/tests/src/Kernel/MigrateProcessErrorMessagesTest.php b/core/modules/migrate/tests/src/Kernel/MigrateProcessErrorMessagesTest.php index 53717f98be2..a9049f59ec9 100644 --- a/core/modules/migrate/tests/src/Kernel/MigrateProcessErrorMessagesTest.php +++ b/core/modules/migrate/tests/src/Kernel/MigrateProcessErrorMessagesTest.php @@ -148,7 +148,7 @@ class MigrateProcessErrorMessagesTest extends MigrateTestBase { /** * Prepares and sets the prophesized plugin managers. */ - protected function setPluginManagers() { + protected function setPluginManagers(): void { $error_plugin_prophecy = $this->prophesize(MigrateProcessInterface::class); $error_plugin_prophecy->getPluginDefinition()->willReturn(['plugin_id' => 'test_error']); $error_plugin_prophecy->getPluginId()->willReturn('test_error'); diff --git a/core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php b/core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php index 151931e8f3e..0f38812cccf 100644 --- a/core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php +++ b/core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php @@ -49,7 +49,7 @@ class MigrationProvidersExistTest extends MigrateDrupalTestBase { /** * Enable all available modules. */ - protected function enableAllModules() { + protected function enableAllModules(): void { // Install all available modules. $module_handler = $this->container->get('module_handler'); $modules = $this->coreModuleListDataProvider(); diff --git a/core/modules/migrate/tests/src/Kernel/SqlBaseTest.php b/core/modules/migrate/tests/src/Kernel/SqlBaseTest.php index 24cf0e760f3..ad1b0f0eeb9 100644 --- a/core/modules/migrate/tests/src/Kernel/SqlBaseTest.php +++ b/core/modules/migrate/tests/src/Kernel/SqlBaseTest.php @@ -240,7 +240,7 @@ class TestSqlBase extends SqlBase { * @param array $config * The config array. */ - public function setConfiguration($config) { + public function setConfiguration($config): void { $this->configuration = $config; } @@ -271,7 +271,7 @@ class TestSqlBase extends SqlBase { * @param \Drupal\Core\Database\Query\SelectInterface $query * The query to execute. */ - public function setQuery(SelectInterface $query) { + public function setQuery(SelectInterface $query): void { $this->query = $query; } diff --git a/core/modules/migrate/tests/src/Unit/MigrateExecutableMemoryExceededTest.php b/core/modules/migrate/tests/src/Unit/MigrateExecutableMemoryExceededTest.php index 57e1622fadb..d3aaaaf3e1c 100644 --- a/core/modules/migrate/tests/src/Unit/MigrateExecutableMemoryExceededTest.php +++ b/core/modules/migrate/tests/src/Unit/MigrateExecutableMemoryExceededTest.php @@ -77,7 +77,7 @@ class MigrateExecutableMemoryExceededTest extends MigrateTestCase { * @param int|null $memory_limit * (optional) The memory limit. Defaults to NULL. */ - protected function runMemoryExceededTest($message, $memory_exceeded, $memory_usage_first = NULL, $memory_usage_second = NULL, $memory_limit = NULL) { + protected function runMemoryExceededTest($message, $memory_exceeded, $memory_usage_first = NULL, $memory_usage_second = NULL, $memory_limit = NULL): void { $this->executable->setMemoryLimit($memory_limit ?: $this->memoryLimit); $this->executable->setMemoryUsage($memory_usage_first ?: $this->memoryLimit, $memory_usage_second ?: $this->memoryLimit); $this->executable->setMemoryThreshold(0.85); diff --git a/core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php b/core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php index ded0535364e..c41fd6f7bb4 100644 --- a/core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php +++ b/core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php @@ -166,7 +166,7 @@ class MigrateSqlIdMapEnsureTablesTest extends MigrateTestCase { * ensureTables() which in turn calls this object and the expectations on * it are the actual test and there are no additional asserts added. */ - protected function runEnsureTablesTest($schema) { + protected function runEnsureTablesTest($schema): void { $database = $this->getMockBuilder('Drupal\Core\Database\Connection') ->disableOriginalConstructor() ->getMock(); diff --git a/core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php b/core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php index 7b326fe9125..e8fc47637ea 100644 --- a/core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php +++ b/core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php @@ -70,7 +70,7 @@ class MigrateSqlIdMapTest extends MigrateTestCase { * @param array $map * The row to save. */ - protected function saveMap(array $map) { + protected function saveMap(array $map): void { $table = 'migrate_map_sql_idmap_test'; $schema = $this->database->schema(); diff --git a/core/modules/migrate/tests/src/Unit/MigrationPluginManagerTest.php b/core/modules/migrate/tests/src/Unit/MigrationPluginManagerTest.php index fae8849d8c7..d9ec7dd0e5e 100644 --- a/core/modules/migrate/tests/src/Unit/MigrationPluginManagerTest.php +++ b/core/modules/migrate/tests/src/Unit/MigrationPluginManagerTest.php @@ -236,7 +236,7 @@ class TestMigrationMock extends Migration { /** * {@inheritdoc} */ - public function set($prop, $value) { + public function set($prop, $value): void { $this->set[] = func_get_args(); } diff --git a/core/modules/migrate/tests/src/Unit/MigrationTest.php b/core/modules/migrate/tests/src/Unit/MigrationTest.php index 1aeb6ce4550..f99f85afa05 100644 --- a/core/modules/migrate/tests/src/Unit/MigrationTest.php +++ b/core/modules/migrate/tests/src/Unit/MigrationTest.php @@ -269,7 +269,7 @@ class TestMigration extends Migration { * @param string $plugin_id * The plugin ID of the plugin instance. */ - public function setPluginId($plugin_id) { + public function setPluginId($plugin_id): void { $this->pluginId = $plugin_id; } @@ -279,7 +279,7 @@ class TestMigration extends Migration { * @param array $requirements * The array of requirement values. */ - public function setRequirements(array $requirements) { + public function setRequirements(array $requirements): void { $this->requirements = $requirements; } @@ -289,7 +289,7 @@ class TestMigration extends Migration { * @param \Drupal\migrate\Plugin\MigrateSourceInterface $source_plugin * The source Plugin. */ - public function setSourcePlugin(MigrateSourceInterface $source_plugin) { + public function setSourcePlugin(MigrateSourceInterface $source_plugin): void { $this->sourcePlugin = $source_plugin; } @@ -299,7 +299,7 @@ class TestMigration extends Migration { * @param \Drupal\migrate\Plugin\MigrateDestinationInterface $destination_plugin * The destination Plugin. */ - public function setDestinationPlugin(MigrateDestinationInterface $destination_plugin) { + public function setDestinationPlugin(MigrateDestinationInterface $destination_plugin): void { $this->destinationPlugin = $destination_plugin; } @@ -309,7 +309,7 @@ class TestMigration extends Migration { * @param \Drupal\migrate\Plugin\MigrationPluginManagerInterface $plugin_manager * The plugin manager service. */ - public function setMigrationPluginManager(MigrationPluginManagerInterface $plugin_manager) { + public function setMigrationPluginManager(MigrationPluginManagerInterface $plugin_manager): void { $this->migrationPluginManager = $plugin_manager; } diff --git a/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php b/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php index 8d98c309b68..bb1368a1344 100644 --- a/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php +++ b/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php @@ -113,7 +113,7 @@ class EntityTestDestination extends EntityContentBase { private $entity = NULL; - public function setEntity($entity) { + public function setEntity($entity): void { $this->entity = $entity; } diff --git a/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityRevisionTest.php b/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityRevisionTest.php index 3b721eb6f67..7216dd895fd 100644 --- a/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityRevisionTest.php +++ b/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityRevisionTest.php @@ -102,7 +102,7 @@ class EntityRevisionTestDestination extends EntityRevision { private $entity = NULL; - public function setEntity($entity) { + public function setEntity($entity): void { $this->entity = $entity; } diff --git a/core/modules/migrate/tests/src/Unit/SqlBaseTest.php b/core/modules/migrate/tests/src/Unit/SqlBaseTest.php index 814566e9854..22f9e63efeb 100644 --- a/core/modules/migrate/tests/src/Unit/SqlBaseTest.php +++ b/core/modules/migrate/tests/src/Unit/SqlBaseTest.php @@ -169,7 +169,7 @@ class TestSqlBase extends SqlBase { * @param mixed $database * The database mock object. */ - public function setDatabase($database) { + public function setDatabase($database): void { $this->database = $database; } @@ -186,7 +186,7 @@ class TestSqlBase extends SqlBase { * @param mixed $migration * The migration mock. */ - public function setMigration($migration) { + public function setMigration($migration): void { $this->migration = $migration; } @@ -210,7 +210,7 @@ class TestSqlBase extends SqlBase { * @param array $ids * An array of identifiers. */ - public function setIds($ids) { + public function setIds($ids): void { $this->ids = $ids; } diff --git a/core/modules/migrate/tests/src/Unit/process/ConcatTest.php b/core/modules/migrate/tests/src/Unit/process/ConcatTest.php index b4afe33f9e1..d32d4391f9b 100644 --- a/core/modules/migrate/tests/src/Unit/process/ConcatTest.php +++ b/core/modules/migrate/tests/src/Unit/process/ConcatTest.php @@ -60,7 +60,7 @@ class TestConcat extends Concat { * @param string $delimiter * The new delimiter. */ - public function setDelimiter($delimiter) { + public function setDelimiter($delimiter): void { $this->configuration['delimiter'] = $delimiter; } diff --git a/core/modules/migrate/tests/src/Unit/process/MakeUniqueEntityFieldTest.php b/core/modules/migrate/tests/src/Unit/process/MakeUniqueEntityFieldTest.php index 831e5474eef..314a1bd6603 100644 --- a/core/modules/migrate/tests/src/Unit/process/MakeUniqueEntityFieldTest.php +++ b/core/modules/migrate/tests/src/Unit/process/MakeUniqueEntityFieldTest.php @@ -161,7 +161,7 @@ class MakeUniqueEntityFieldTest extends MigrateProcessTestCase { * @param int $count * The number of unique values to be set up. */ - protected function entityQueryExpects($count) { + protected function entityQueryExpects($count): void { $this->entityQuery->expects($this->exactly($count + 1)) ->method('condition') ->willReturn($this->entityQuery); diff --git a/core/modules/migrate_drupal/tests/src/Kernel/NodeMigrationTypePluginAlterTest.php b/core/modules/migrate_drupal/tests/src/Kernel/NodeMigrationTypePluginAlterTest.php index ceba413d05b..ebdbbb06db5 100644 --- a/core/modules/migrate_drupal/tests/src/Kernel/NodeMigrationTypePluginAlterTest.php +++ b/core/modules/migrate_drupal/tests/src/Kernel/NodeMigrationTypePluginAlterTest.php @@ -123,7 +123,7 @@ class NodeMigrationTypePluginAlterTest extends MigrateTestBase { /** * Creates data in the source database. */ - protected function setupDb() { + protected function setupDb(): void { $this->sourceDatabase->schema()->createTable('system', [ 'fields' => [ 'name' => [ diff --git a/core/modules/migrate_drupal/tests/src/Unit/source/DrupalSqlBaseTest.php b/core/modules/migrate_drupal/tests/src/Unit/source/DrupalSqlBaseTest.php index 7415ed3b601..ac2c7df9a57 100644 --- a/core/modules/migrate_drupal/tests/src/Unit/source/DrupalSqlBaseTest.php +++ b/core/modules/migrate_drupal/tests/src/Unit/source/DrupalSqlBaseTest.php @@ -202,7 +202,7 @@ class TestDrupalSqlBase extends DrupalSqlBase { * * @see \Drupal\Tests\migrate\Unit\MigrateSourceSqlTestCase */ - public function setDatabase(Connection $database) { + public function setDatabase(Connection $database): void { $this->database = $database; } diff --git a/core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php b/core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php index c2d15033102..7c5407721fa 100644 --- a/core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php +++ b/core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php @@ -180,7 +180,7 @@ class TestDrupal6SqlBase extends DrupalSqlBase { * * @see \Drupal\Tests\migrate\Unit\MigrateSqlTestCase */ - public function setDatabase(Connection $database) { + public function setDatabase(Connection $database): void { $this->database = $database; } @@ -192,7 +192,7 @@ class TestDrupal6SqlBase extends DrupalSqlBase { * * @see \Drupal\Tests\migrate\Unit\MigrateSqlTestCase */ - public function setModuleHandler(ModuleHandlerInterface $module_handler) { + public function setModuleHandler(ModuleHandlerInterface $module_handler): void { $this->moduleHandler = $module_handler; } diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php b/core/modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php index 0ddc3c46d91..7c221bfad92 100644 --- a/core/modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php +++ b/core/modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php @@ -222,7 +222,7 @@ class FilePathTest extends MigrateUpgradeTestBase { * * The resulting directory is /bar/sites/default/files/foo.txt. */ - protected function makeFiles() { + protected function makeFiles(): void { // Get file information from the source database. foreach ($this->getManagedFiles() as $file) { $this->assertSame(1, preg_match('/^(private|public|temporary):/', $file['uri'], $matches)); diff --git a/core/modules/mysql/tests/src/Functional/InstallerIsolationLevelExistingSettingsTest.php b/core/modules/mysql/tests/src/Functional/InstallerIsolationLevelExistingSettingsTest.php index c69477688ce..579fc1f345d 100644 --- a/core/modules/mysql/tests/src/Functional/InstallerIsolationLevelExistingSettingsTest.php +++ b/core/modules/mysql/tests/src/Functional/InstallerIsolationLevelExistingSettingsTest.php @@ -17,7 +17,7 @@ class InstallerIsolationLevelExistingSettingsTest extends InstallerExistingSetti /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); $connection_info = Database::getConnectionInfo(); diff --git a/core/modules/mysql/tests/src/Functional/InstallerIsolationLevelNoDatabaseSettingsTest.php b/core/modules/mysql/tests/src/Functional/InstallerIsolationLevelNoDatabaseSettingsTest.php index 274833e3970..7927862adad 100644 --- a/core/modules/mysql/tests/src/Functional/InstallerIsolationLevelNoDatabaseSettingsTest.php +++ b/core/modules/mysql/tests/src/Functional/InstallerIsolationLevelNoDatabaseSettingsTest.php @@ -22,7 +22,7 @@ class InstallerIsolationLevelNoDatabaseSettingsTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); // The isolation_level option is only available for MySQL. diff --git a/core/modules/mysql/tests/src/Functional/RequirementsTest.php b/core/modules/mysql/tests/src/Functional/RequirementsTest.php index 00cb54351cb..5d054334b69 100644 --- a/core/modules/mysql/tests/src/Functional/RequirementsTest.php +++ b/core/modules/mysql/tests/src/Functional/RequirementsTest.php @@ -112,7 +112,7 @@ class RequirementsTest extends BrowserTestBase { * @param string $isolation_level * The isolation level. */ - private function writeIsolationLevelSettings(string $isolation_level) { + private function writeIsolationLevelSettings(string $isolation_level): void { $settings['databases']['default']['default']['init_commands'] = (object) [ 'value' => [ 'isolation_level' => "SET SESSION TRANSACTION ISOLATION LEVEL {$isolation_level}", diff --git a/core/modules/mysql/tests/src/Kernel/mysql/DbDumpTest.php b/core/modules/mysql/tests/src/Kernel/mysql/DbDumpTest.php index 73e200b8952..f5b3a0b267b 100644 --- a/core/modules/mysql/tests/src/Kernel/mysql/DbDumpTest.php +++ b/core/modules/mysql/tests/src/Kernel/mysql/DbDumpTest.php @@ -74,7 +74,7 @@ class DbDumpTest extends DriverSpecificKernelTestBase { * * Register a database cache backend rather than memory-based. */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); $container->register('cache_factory', 'Drupal\Core\Cache\DatabaseBackendFactory') ->addArgument(new Reference('database')) diff --git a/core/modules/navigation/tests/src/FunctionalJavascript/NavigationBlockUiTest.php b/core/modules/navigation/tests/src/FunctionalJavascript/NavigationBlockUiTest.php index 7058d8d687c..97628a0bd60 100644 --- a/core/modules/navigation/tests/src/FunctionalJavascript/NavigationBlockUiTest.php +++ b/core/modules/navigation/tests/src/FunctionalJavascript/NavigationBlockUiTest.php @@ -165,7 +165,7 @@ class NavigationBlockUiTest extends WebDriverTestBase { * @todo move this from into a trait from * \Drupal\Tests\layout_builder\FunctionalJavascript\LayoutBuilderTest */ - private function openAddBlockForm($block_title) { + private function openAddBlockForm($block_title): void { $this->assertSession()->linkExists('Add block'); $this->clickLink('Add block'); $this->assertSession()->assertWaitOnAjaxRequest(); diff --git a/core/modules/node/tests/src/Functional/NodeAccessLanguageFallbackTest.php b/core/modules/node/tests/src/Functional/NodeAccessLanguageFallbackTest.php index 4266eb94139..db6977df8df 100644 --- a/core/modules/node/tests/src/Functional/NodeAccessLanguageFallbackTest.php +++ b/core/modules/node/tests/src/Functional/NodeAccessLanguageFallbackTest.php @@ -123,7 +123,7 @@ class NodeAccessLanguageFallbackTest extends NodeTestBase { * @param $langcode * The expected language code set as the fallback property. */ - public function checkRecords($count, $langcode = 'hu') { + public function checkRecords($count, $langcode = 'hu'): void { $select = \Drupal::database() ->select('node_access', 'na') ->fields('na', ['nid', 'fallback', 'langcode', 'grant_view']) diff --git a/core/modules/node/tests/src/Functional/NodeEditFormTest.php b/core/modules/node/tests/src/Functional/NodeEditFormTest.php index 89be2bcf070..e43e0adf05a 100644 --- a/core/modules/node/tests/src/Functional/NodeEditFormTest.php +++ b/core/modules/node/tests/src/Functional/NodeEditFormTest.php @@ -266,7 +266,7 @@ class NodeEditFormTest extends NodeTestBase { * @param string $form_element_name * The name of the form element to populate. */ - protected function checkVariousAuthoredByValues(NodeInterface $node, $form_element_name) { + protected function checkVariousAuthoredByValues(NodeInterface $node, $form_element_name): void { // Try to change the 'authored by' field to an invalid user name. $edit = [ $form_element_name => 'invalid-name', diff --git a/core/modules/node/tests/src/Functional/NodeRevisionsTest.php b/core/modules/node/tests/src/Functional/NodeRevisionsTest.php index dcd52e7ff0c..6ed7ffda85e 100644 --- a/core/modules/node/tests/src/Functional/NodeRevisionsTest.php +++ b/core/modules/node/tests/src/Functional/NodeRevisionsTest.php @@ -470,7 +470,7 @@ class NodeRevisionsTest extends NodeTestBase { * @param $count * The number of revisions to be created. */ - protected function createRevisions(NodeInterface $node, $count) { + protected function createRevisions(NodeInterface $node, $count): void { for ($i = 0; $i < $count; $i++) { $node->title = $this->randomString(); $node->untranslatable_string_field->value = $this->randomString(); diff --git a/core/modules/node/tests/src/Functional/NodeTranslationUITest.php b/core/modules/node/tests/src/Functional/NodeTranslationUITest.php index d6397034aff..26b0a6fce74 100644 --- a/core/modules/node/tests/src/Functional/NodeTranslationUITest.php +++ b/core/modules/node/tests/src/Functional/NodeTranslationUITest.php @@ -157,7 +157,7 @@ class NodeTranslationUITest extends ContentTranslationUITestBase { /** * {@inheritdoc} */ - protected function doTestPublishedStatus() { + protected function doTestPublishedStatus(): void { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); @@ -195,7 +195,7 @@ class NodeTranslationUITest extends ContentTranslationUITestBase { /** * {@inheritdoc} */ - protected function doTestAuthoringInfo() { + protected function doTestAuthoringInfo(): void { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); @@ -401,7 +401,7 @@ class NodeTranslationUITest extends ContentTranslationUITestBase { * @param array $values * The translation values to be found. */ - protected function doTestTranslations($path, array $values) { + protected function doTestTranslations($path, array $values): void { $languages = $this->container->get('language_manager')->getLanguages(); foreach ($this->langcodes as $langcode) { $this->drupalGet($path, ['language' => $languages[$langcode]]); @@ -415,7 +415,7 @@ class NodeTranslationUITest extends ContentTranslationUITestBase { * @param \Drupal\node\Entity\Node $node * The node to be tested. */ - protected function doTestAlternateHreflangLinks(Node $node) { + protected function doTestAlternateHreflangLinks(Node $node): void { $url = $node->toUrl(); $languages = $this->container->get('language_manager')->getLanguages(); $url->setAbsolute(); @@ -467,7 +467,7 @@ class NodeTranslationUITest extends ContentTranslationUITestBase { /** * Tests uninstalling content_translation. */ - protected function doUninstallTest() { + protected function doUninstallTest(): void { // Delete all the nodes so there is no data. $nodes = Node::loadMultiple(); foreach ($nodes as $node) { @@ -482,7 +482,7 @@ class NodeTranslationUITest extends ContentTranslationUITestBase { /** * {@inheritdoc} */ - protected function doTestTranslationEdit() { + protected function doTestTranslationEdit(): void { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); diff --git a/core/modules/node/tests/src/Functional/Rest/NodeJsonBasicAuthTest.php b/core/modules/node/tests/src/Functional/Rest/NodeJsonBasicAuthTest.php index be857bbb86d..653d34a37d4 100644 --- a/core/modules/node/tests/src/Functional/Rest/NodeJsonBasicAuthTest.php +++ b/core/modules/node/tests/src/Functional/Rest/NodeJsonBasicAuthTest.php @@ -41,7 +41,7 @@ class NodeJsonBasicAuthTest extends NodeResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { parent::setUpAuthorization($method); $this->grantPermissionsToTestedRole(['view camelids revisions']); } diff --git a/core/modules/node/tests/src/Functional/Views/FrontPageTest.php b/core/modules/node/tests/src/Functional/Views/FrontPageTest.php index a03c34b732a..d6e58a950d4 100644 --- a/core/modules/node/tests/src/Functional/Views/FrontPageTest.php +++ b/core/modules/node/tests/src/Functional/Views/FrontPageTest.php @@ -222,7 +222,7 @@ class FrontPageTest extends ViewTestBase { * @param bool $do_assert_views_caches * Whether to check Views' result & output caches. */ - protected function doTestFrontPageViewCacheTags($do_assert_views_caches) { + protected function doTestFrontPageViewCacheTags($do_assert_views_caches): void { $view = Views::getView('frontpage'); $view->setDisplay('page_1'); diff --git a/core/modules/options/tests/src/Functional/OptionsFieldUITest.php b/core/modules/options/tests/src/Functional/OptionsFieldUITest.php index 56a77d52c17..55fce45025e 100644 --- a/core/modules/options/tests/src/Functional/OptionsFieldUITest.php +++ b/core/modules/options/tests/src/Functional/OptionsFieldUITest.php @@ -334,7 +334,7 @@ class OptionsFieldUITest extends FieldTestBase { * @param string $type * One of 'list_integer', 'list_float' or 'list_string'. */ - protected function createOptionsField($type) { + protected function createOptionsField($type): void { // Create a field. FieldStorageConfig::create([ 'field_name' => $this->fieldName, diff --git a/core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUITest.php b/core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUITest.php index 09dde33f9bc..d1facffccd6 100644 --- a/core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUITest.php +++ b/core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUITest.php @@ -127,7 +127,7 @@ class OptionsFieldUITest extends WebDriverTestBase { * @param string $type * One of 'list_integer', 'list_float' or 'list_string'. */ - protected function createOptionsField($type) { + protected function createOptionsField($type): void { // Create a field. FieldStorageConfig::create([ 'field_name' => $this->fieldName, diff --git a/core/modules/path/tests/src/Kernel/Migrate/d6/MigrateUrlAliasTest.php b/core/modules/path/tests/src/Kernel/Migrate/d6/MigrateUrlAliasTest.php index eefb3839b91..d5cc9759ab1 100644 --- a/core/modules/path/tests/src/Kernel/Migrate/d6/MigrateUrlAliasTest.php +++ b/core/modules/path/tests/src/Kernel/Migrate/d6/MigrateUrlAliasTest.php @@ -93,7 +93,7 @@ class MigrateUrlAliasTest extends MigrateDrupal6TestBase { /** * Checks the migration results. */ - protected function checkUrlMigration() { + protected function checkUrlMigration(): void { $id_map = $this->getMigration('d6_url_alias')->getIdMap(); // Test that the field exists. $conditions = [ diff --git a/core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php b/core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php index b8a73453039..fc32540039e 100644 --- a/core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php +++ b/core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php @@ -116,7 +116,7 @@ class ResponsiveImageFieldDisplayTest extends ImageFieldTestBase { * @param bool $empty_styles * If true, the image style mappings will get empty image styles. */ - protected function addTestImageStyleMappings($empty_styles = FALSE) { + protected function addTestImageStyleMappings($empty_styles = FALSE): void { if ($empty_styles) { $this->responsiveImgStyle ->addImageStyleMapping('responsive_image_test_module.mobile', '1x', [ @@ -185,7 +185,7 @@ class ResponsiveImageFieldDisplayTest extends ImageFieldTestBase { * If true, use an empty string for image style names. * Defaults to false. */ - protected function doTestResponsiveImageFieldFormatters($scheme, $empty_styles = FALSE) { + protected function doTestResponsiveImageFieldFormatters($scheme, $empty_styles = FALSE): void { /** @var \Drupal\Core\Render\RendererInterface $renderer */ $renderer = $this->container->get('renderer'); $node_storage = $this->container->get('entity_type.manager')->getStorage('node'); diff --git a/core/modules/rest/tests/src/Functional/Views/StyleSerializerEntityTest.php b/core/modules/rest/tests/src/Functional/Views/StyleSerializerEntityTest.php index e0c5f40256a..01ffcc13905 100644 --- a/core/modules/rest/tests/src/Functional/Views/StyleSerializerEntityTest.php +++ b/core/modules/rest/tests/src/Functional/Views/StyleSerializerEntityTest.php @@ -207,7 +207,7 @@ class StyleSerializerEntityTest extends ViewTestBase { * @param string $format * The new request format. */ - protected function addRequestWithFormat($format) { + protected function addRequestWithFormat($format): void { $request = \Drupal::request(); $request = clone $request; $request->setRequestFormat($format); diff --git a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php index ff15da36125..ccf958bf18c 100644 --- a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php +++ b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php @@ -158,7 +158,7 @@ class StyleSerializerTest extends ViewTestBase { * @param string $format * The new request format. */ - protected function addRequestWithFormat($format) { + protected function addRequestWithFormat($format): void { $request = \Drupal::request(); $request = clone $request; $request->setRequestFormat($format); diff --git a/core/modules/search/tests/src/Functional/SearchCommentTest.php b/core/modules/search/tests/src/Functional/SearchCommentTest.php index 84bbf9e18d0..c407307b670 100644 --- a/core/modules/search/tests/src/Functional/SearchCommentTest.php +++ b/core/modules/search/tests/src/Functional/SearchCommentTest.php @@ -302,7 +302,7 @@ class SearchCommentTest extends BrowserTestBase { /** * Set permissions for role. */ - public function setRolePermissions($rid, $access_comments = FALSE, $search_content = TRUE) { + public function setRolePermissions($rid, $access_comments = FALSE, $search_content = TRUE): void { $permissions = [ 'access comments' => $access_comments, 'search content' => $search_content, diff --git a/core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php b/core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php index fef0e4baa7b..d354fc4570c 100644 --- a/core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php +++ b/core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php @@ -384,7 +384,7 @@ class SearchConfigSettingsFormTest extends BrowserTestBase { * @param bool $enable * Whether the enable link is expected. */ - protected function verifySearchPageOperations($id, $edit, $delete, $disable, $enable) { + protected function verifySearchPageOperations($id, $edit, $delete, $disable, $enable): void { if ($edit) { $this->assertSession()->linkByHrefExists("admin/config/search/pages/manage/$id"); } @@ -433,7 +433,7 @@ class SearchConfigSettingsFormTest extends BrowserTestBase { * @param string $entity_id * The search page entity ID to enable. */ - protected function setDefaultThroughUi($entity_id) { + protected function setDefaultThroughUi($entity_id): void { $this->drupalGet('admin/config/search/pages'); preg_match('|href="([^"]+' . $entity_id . '/set-default[^"]+)"|', $this->getSession()->getPage()->getContent(), $matches); diff --git a/core/modules/search/tests/src/Kernel/SearchMatchTest.php b/core/modules/search/tests/src/Kernel/SearchMatchTest.php index e4c14521b2b..42fae8ec073 100644 --- a/core/modules/search/tests/src/Kernel/SearchMatchTest.php +++ b/core/modules/search/tests/src/Kernel/SearchMatchTest.php @@ -50,7 +50,7 @@ class SearchMatchTest extends KernelTestBase { /** * Set up a small index of items to test against. */ - public function _setup() { + public function _setup(): void { $this->config('search.settings')->set('index.minimum_word_size', 3)->save(); $search_index = \Drupal::service('search.index'); @@ -106,7 +106,7 @@ class SearchMatchTest extends KernelTestBase { /** * Run predefine queries looking for indexed terms. */ - public function _testQueries() { + public function _testQueries(): void { // Note: OR queries that include short words in OR groups are only accepted // if the ORed terms are ANDed with at least one long word in the rest of // the query. Examples: @@ -225,7 +225,7 @@ class SearchMatchTest extends KernelTestBase { * * Verify if a query produces the correct results. */ - public function _testQueryMatching($query, $set, $results) { + public function _testQueryMatching($query, $set, $results): void { // Get result IDs. $found = []; foreach ($set as $item) { @@ -243,7 +243,7 @@ class SearchMatchTest extends KernelTestBase { * * Verify if a query produces normalized, monotonous scores. */ - public function _testQueryScores($query, $set, $results) { + public function _testQueryScores($query, $set, $results): void { // Get result scores. $scores = []; foreach ($set as $item) { diff --git a/core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php b/core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php index 6940b9e4fde..85eb9eadcf1 100644 --- a/core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php +++ b/core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php @@ -58,7 +58,7 @@ class SettingsTrayBlockFormTest extends SettingsTrayTestBase { /** * Tests opening off-canvas dialog by click blocks and elements in the blocks. */ - protected function doTestBlocks($theme, $block_plugin, $new_page_text, $element_selector, $label_selector, $button_text, $toolbar_item, $permissions) { + protected function doTestBlocks($theme, $block_plugin, $new_page_text, $element_selector, $label_selector, $button_text, $toolbar_item, $permissions): void { if ($permissions) { $this->grantPermissions(Role::load(Role::AUTHENTICATED_ID), $permissions); } diff --git a/core/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php b/core/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php index eb42cda8867..5bc39839e49 100644 --- a/core/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php +++ b/core/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php @@ -428,7 +428,7 @@ class ShortcutLinksTest extends ShortcutTestBase { /** * Tests the 'access shortcuts' permission for shortcut set administration. */ - private function verifyAccessShortcutsPermissionForEditPages() { + private function verifyAccessShortcutsPermissionForEditPages(): void { // Create a user with customize links and switch sets permissions but // without the 'access shortcuts' permission. $test_permissions = [ diff --git a/core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php b/core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php index 5ef1ab7f619..5b7c773e757 100644 --- a/core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php +++ b/core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php @@ -68,7 +68,7 @@ class ShortcutTranslationUITest extends ContentTranslationUITestBase { return ['title' => [['value' => $this->randomMachineName()]]] + parent::getNewEntityValues($langcode); } - protected function doTestBasicTranslation() { + protected function doTestBasicTranslation(): void { parent::doTestBasicTranslation(); $storage = $this->container->get('entity_type.manager') @@ -91,7 +91,7 @@ class ShortcutTranslationUITest extends ContentTranslationUITestBase { /** * {@inheritdoc} */ - protected function doTestTranslationEdit() { + protected function doTestTranslationEdit(): void { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); @@ -112,7 +112,7 @@ class ShortcutTranslationUITest extends ContentTranslationUITestBase { /** * Tests the basic translation workflow. */ - protected function doTestTranslationChanged() { + protected function doTestTranslationChanged(): void { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); diff --git a/core/modules/system/tests/src/Functional/Entity/EntityFormTest.php b/core/modules/system/tests/src/Functional/Entity/EntityFormTest.php index 9c725570d7d..ae6f7243ecf 100644 --- a/core/modules/system/tests/src/Functional/Entity/EntityFormTest.php +++ b/core/modules/system/tests/src/Functional/Entity/EntityFormTest.php @@ -133,7 +133,7 @@ class EntityFormTest extends BrowserTestBase { * @param string $entity_type * The entity type to run the tests with. */ - protected function doTestFormCRUD($entity_type) { + protected function doTestFormCRUD($entity_type): void { $name1 = $this->randomMachineName(8); $name2 = $this->randomMachineName(10); @@ -169,7 +169,7 @@ class EntityFormTest extends BrowserTestBase { * @param string $entity_type_id * The ID of entity type to run the tests with. */ - protected function doTestMultilingualFormCRUD($entity_type_id) { + protected function doTestMultilingualFormCRUD($entity_type_id): void { $name1 = $this->randomMachineName(8); $name1_ro = $this->randomMachineName(9); $name2_ro = $this->randomMachineName(11); diff --git a/core/modules/system/tests/src/Functional/Entity/EntityRevisionsTest.php b/core/modules/system/tests/src/Functional/Entity/EntityRevisionsTest.php index 6321dc583bc..7101989b65e 100644 --- a/core/modules/system/tests/src/Functional/Entity/EntityRevisionsTest.php +++ b/core/modules/system/tests/src/Functional/Entity/EntityRevisionsTest.php @@ -68,7 +68,7 @@ class EntityRevisionsTest extends BrowserTestBase { * @param string $entity_type * The entity type to run the tests with. */ - protected function runRevisionsTests($entity_type) { + protected function runRevisionsTests($entity_type): void { // Create a translatable test field. $field_storage = FieldStorageConfig::create([ 'entity_type' => $entity_type, diff --git a/core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php b/core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php index 21212a9371d..a20a387155e 100644 --- a/core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php +++ b/core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php @@ -63,7 +63,7 @@ class FileTransferTest extends BrowserTestBase { return $location; } - public function _writeDirectory($base, $files = []) { + public function _writeDirectory($base, $files = []): void { mkdir($base); foreach ($files as $key => $file) { if (is_array($file)) { diff --git a/core/modules/system/tests/src/Functional/Form/FormTest.php b/core/modules/system/tests/src/Functional/Form/FormTest.php index d8cc66acf7d..9675dbfa3fb 100644 --- a/core/modules/system/tests/src/Functional/Form/FormTest.php +++ b/core/modules/system/tests/src/Functional/Form/FormTest.php @@ -589,7 +589,7 @@ class FormTest extends BrowserTestBase { * @param string[] $order * Expected order of its options. */ - protected function validateSelectSorting($select, array $order) { + protected function validateSelectSorting($select, array $order): void { $option_map_function = function (NodeElement $node) { return ($node->getTagName() === 'optgroup') ? $node->getAttribute('label') : $node->getValue(); diff --git a/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php b/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php index ff72c6841a7..ab3b89e62d3 100644 --- a/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php +++ b/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php @@ -103,7 +103,7 @@ class LanguageSelectElementTest extends BrowserTestBase { * @param array $options * An array with options to compare with. */ - protected function _testLanguageSelectElementOptions($id, $options) { + protected function _testLanguageSelectElementOptions($id, $options): void { // Check that the options in the language field are exactly the same, // including the order, as the languages sent as a parameter. $found_options = $this->assertSession()->selectExists($id)->findAll('css', 'option'); diff --git a/core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php b/core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php index 19be61d99f1..a450538ddf2 100644 --- a/core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php +++ b/core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php @@ -60,7 +60,7 @@ class MenuRouterTest extends BrowserTestBase { /** * Tests local tasks with route placeholders. */ - protected function doTestHookMenuIntegration() { + protected function doTestHookMenuIntegration(): void { // Generate base path with random argument. $machine_name = $this->randomMachineName(8); $base_path = 'foo/' . $machine_name; @@ -80,7 +80,7 @@ class MenuRouterTest extends BrowserTestBase { /** * Tests title callback set to FALSE. */ - protected function doTestTitleCallbackFalse() { + protected function doTestTitleCallbackFalse(): void { $this->drupalGet('test-page'); $this->assertSession()->pageTextContains('A title with @placeholder'); $this->assertSession()->pageTextNotContains('A title with some other text'); @@ -89,7 +89,7 @@ class MenuRouterTest extends BrowserTestBase { /** * Tests page title of MENU_CALLBACKs. */ - protected function doTestTitleMenuCallback() { + protected function doTestTitleMenuCallback(): void { // Verify that the menu router item title is not visible. $this->drupalGet(''); $this->assertSession()->pageTextNotContains('Menu Callback Title'); @@ -101,7 +101,7 @@ class MenuRouterTest extends BrowserTestBase { /** * Tests menu item descriptions. */ - protected function doTestDescriptionMenuItems() { + protected function doTestDescriptionMenuItems(): void { // Verify that the menu router item title is output as page title. $this->drupalGet('menu_callback_description'); $this->assertSession()->pageTextContains('Menu item description text'); @@ -110,7 +110,7 @@ class MenuRouterTest extends BrowserTestBase { /** * Tests for menu_name parameter for default menu links. */ - protected function doTestMenuName() { + protected function doTestMenuName(): void { $admin_user = $this->drupalCreateUser(['administer site configuration']); $this->drupalLogin($admin_user); /** @var \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager */ @@ -132,7 +132,7 @@ class MenuRouterTest extends BrowserTestBase { /** * Tests menu links added in hook_menu_links_discovered_alter(). */ - protected function doTestMenuLinksDiscoveredAlter() { + protected function doTestMenuLinksDiscoveredAlter(): void { // Check that machine name does not need to be defined since it is already // set as the key of each menu link. /** @var \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager */ @@ -149,7 +149,7 @@ class MenuRouterTest extends BrowserTestBase { /** * Tests for menu hierarchy. */ - protected function doTestMenuHierarchy() { + protected function doTestMenuHierarchy(): void { /** @var \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager */ $menu_link_manager = \Drupal::service('plugin.manager.menu.link'); $menu_links = $menu_link_manager->loadLinksByRoute('menu_test.hierarchy_parent'); @@ -165,7 +165,7 @@ class MenuRouterTest extends BrowserTestBase { /** * Tests menu links that have optional placeholders. */ - protected function doTestMenuOptionalPlaceholders() { + protected function doTestMenuOptionalPlaceholders(): void { $this->drupalGet('menu-test/optional'); $this->assertSession()->statusCodeEquals(200); $this->assertSession()->pageTextContains('Sometimes there is no placeholder.'); @@ -178,7 +178,7 @@ class MenuRouterTest extends BrowserTestBase { /** * Tests a menu on a router page. */ - protected function doTestMenuOnRoute() { + protected function doTestMenuOnRoute(): void { \Drupal::service('module_installer')->install(['router_test']); $this->resetAll(); @@ -192,7 +192,7 @@ class MenuRouterTest extends BrowserTestBase { /** * Tests path containing "exotic" characters. */ - protected function doTestExoticPath() { + protected function doTestExoticPath(): void { // "Special" ASCII characters. $path = "menu-test/ -._~!$'\"()*@[]?&+%#,;=:" . @@ -271,7 +271,7 @@ class MenuRouterTest extends BrowserTestBase { /** * Tests theme negotiation for an administrative theme. */ - protected function doTestThemeCallbackAdministrative() { + protected function doTestThemeCallbackAdministrative(): void { $this->drupalGet('menu-test/theme-callback/use-admin-theme'); $this->assertSession()->pageTextContains('Active theme: claro. Actual theme: claro.'); $this->assertSession()->responseContains('claro/css/base/elements.css'); @@ -280,7 +280,7 @@ class MenuRouterTest extends BrowserTestBase { /** * Tests the theme negotiation when the site is in maintenance mode. */ - protected function doTestThemeCallbackMaintenanceMode() { + protected function doTestThemeCallbackMaintenanceMode(): void { $this->container->get('state')->set('system.maintenance_mode', TRUE); // For a regular user, the fact that the site is in maintenance mode means @@ -303,7 +303,7 @@ class MenuRouterTest extends BrowserTestBase { /** * Tests the theme negotiation when it is set to use an optional theme. */ - protected function doTestThemeCallbackOptionalTheme() { + protected function doTestThemeCallbackOptionalTheme(): void { // Request a theme that is not installed. $this->drupalGet('menu-test/theme-callback/use-test-theme'); $this->assertSession()->pageTextContains('Active theme: olivero. Actual theme: olivero.'); @@ -326,7 +326,7 @@ class MenuRouterTest extends BrowserTestBase { /** * Tests the theme negotiation when it is set to use a theme that does not exist. */ - protected function doTestThemeCallbackFakeTheme() { + protected function doTestThemeCallbackFakeTheme(): void { $this->drupalGet('menu-test/theme-callback/use-fake-theme'); $this->assertSession()->pageTextContains('Active theme: olivero. Actual theme: olivero.'); // Check that the default theme's CSS appears on the page. @@ -336,7 +336,7 @@ class MenuRouterTest extends BrowserTestBase { /** * Tests the theme negotiation when no theme is requested. */ - protected function doTestThemeCallbackNoThemeRequested() { + protected function doTestThemeCallbackNoThemeRequested(): void { $this->drupalGet('menu-test/theme-callback/no-theme-requested'); $this->assertSession()->pageTextContains('Active theme: olivero. Actual theme: olivero.'); // Check that the default theme's CSS appears on the page. diff --git a/core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php b/core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php index 02bdcf763c8..cc7052344d0 100644 --- a/core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php +++ b/core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php @@ -122,7 +122,7 @@ class SessionHttpsTest extends BrowserTestBase { * * Note that the parents $session_id and $loggedInUser is not updated. */ - protected function loginHttp(AccountInterface $account) { + protected function loginHttp(AccountInterface $account): void { $guzzle_cookie_jar = $this->getGuzzleCookieJar(); $post = [ 'form_id' => 'user_login_form', @@ -173,7 +173,7 @@ class SessionHttpsTest extends BrowserTestBase { * * Note that the parents $session_id and $loggedInUser is not updated. */ - protected function loginHttps(AccountInterface $account) { + protected function loginHttps(AccountInterface $account): void { $guzzle_cookie_jar = $this->getGuzzleCookieJar(); $post = [ 'form_id' => 'user_login_form', diff --git a/core/modules/system/tests/src/Functional/Session/SessionTest.php b/core/modules/system/tests/src/Functional/Session/SessionTest.php index 0ae64de4e1b..7512d30c51c 100644 --- a/core/modules/system/tests/src/Functional/Session/SessionTest.php +++ b/core/modules/system/tests/src/Functional/Session/SessionTest.php @@ -375,7 +375,7 @@ class SessionTest extends BrowserTestBase { /** * Reset the cookie file so that it refers to the specified user. */ - public function sessionReset() { + public function sessionReset(): void { // Close the internal browser. $this->mink->resetSessions(); $this->loggedInUser = FALSE; diff --git a/core/modules/system/tests/src/Functional/System/SitesDirectoryHardeningTest.php b/core/modules/system/tests/src/Functional/System/SitesDirectoryHardeningTest.php index df7fd6d5c7b..41d60b8a42a 100644 --- a/core/modules/system/tests/src/Functional/System/SitesDirectoryHardeningTest.php +++ b/core/modules/system/tests/src/Functional/System/SitesDirectoryHardeningTest.php @@ -101,7 +101,7 @@ class SitesDirectoryHardeningTest extends BrowserTestBase { * @param string $site_path * The sites directory path, such as 'sites/default'. */ - protected function makeWritable($site_path) { + protected function makeWritable($site_path): void { chmod($site_path, 0755); chmod($this->settingsFile($site_path), 0644); } diff --git a/core/modules/system/tests/src/Functional/System/SystemAuthorizeTest.php b/core/modules/system/tests/src/Functional/System/SystemAuthorizeTest.php index d0d040cf054..2708034a1e8 100644 --- a/core/modules/system/tests/src/Functional/System/SystemAuthorizeTest.php +++ b/core/modules/system/tests/src/Functional/System/SystemAuthorizeTest.php @@ -46,7 +46,7 @@ class SystemAuthorizeTest extends BrowserTestBase { * * @see system_authorized_init() */ - public function drupalGetAuthorizePHP($page_title = 'system-test-auth') { + public function drupalGetAuthorizePHP($page_title = 'system-test-auth'): void { $this->drupalGet('system-test/authorize-init/' . $page_title); } diff --git a/core/modules/system/tests/src/Functional/Theme/MaintenanceThemeUpdateRegistryTest.php b/core/modules/system/tests/src/Functional/Theme/MaintenanceThemeUpdateRegistryTest.php index e3aeb3cb81a..d2b9e2e00cd 100644 --- a/core/modules/system/tests/src/Functional/Theme/MaintenanceThemeUpdateRegistryTest.php +++ b/core/modules/system/tests/src/Functional/Theme/MaintenanceThemeUpdateRegistryTest.php @@ -24,7 +24,7 @@ class MaintenanceThemeUpdateRegistryTest extends BrowserTestBase { /** * {@inheritdoc} */ - protected function prepareSettings() { + protected function prepareSettings(): void { parent::prepareSettings(); $this->writeSettings([ 'settings' => [ @@ -39,7 +39,7 @@ class MaintenanceThemeUpdateRegistryTest extends BrowserTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); $info = [ 'type' => 'profile', diff --git a/core/modules/system/tests/src/Functional/Theme/ThemeUiTest.php b/core/modules/system/tests/src/Functional/Theme/ThemeUiTest.php index 56fe747d0a3..010f1ccb521 100644 --- a/core/modules/system/tests/src/Functional/Theme/ThemeUiTest.php +++ b/core/modules/system/tests/src/Functional/Theme/ThemeUiTest.php @@ -171,7 +171,7 @@ class ThemeUiTest extends BrowserTestBase { * @param string[] $module_names * An array of module machine names. */ - protected function uninstallModules(array $module_names) { + protected function uninstallModules(array $module_names): void { $assert_session = $this->assertSession(); $this->drupalGet('admin/modules/uninstall'); foreach ($module_names as $attribute) { @@ -200,7 +200,7 @@ class ThemeUiTest extends BrowserTestBase { * @param string $theme_name * The theme name. */ - protected function uninstallTheme($theme_name) { + protected function uninstallTheme($theme_name): void { $this->drupalGet('admin/appearance'); $this->clickLink("Uninstall $theme_name theme"); $this->assertSession()->pageTextContains("The $theme_name theme has been uninstalled."); diff --git a/core/modules/system/tests/src/Functional/Theme/ThemeUpdateTest.php b/core/modules/system/tests/src/Functional/Theme/ThemeUpdateTest.php index d847abb559e..b523c2bd50f 100644 --- a/core/modules/system/tests/src/Functional/Theme/ThemeUpdateTest.php +++ b/core/modules/system/tests/src/Functional/Theme/ThemeUpdateTest.php @@ -47,7 +47,7 @@ class ThemeUpdateTest extends BrowserTestBase { /** * {@inheritdoc} */ - protected function doSelectionTest() { + protected function doSelectionTest(): void { // Ensure that the theme's post update appears as expected. $this->assertSession()->responseContains('test_theme_depending_on_modules theme'); $this->assertSession()->responseContains('Install a dependent module.'); diff --git a/core/modules/system/tests/src/Functional/Theme/TwigTransTest.php b/core/modules/system/tests/src/Functional/Theme/TwigTransTest.php index 45605375978..838a5cf2a54 100644 --- a/core/modules/system/tests/src/Functional/Theme/TwigTransTest.php +++ b/core/modules/system/tests/src/Functional/Theme/TwigTransTest.php @@ -188,7 +188,7 @@ class TwigTransTest extends BrowserTestBase { /** * Helper function: install languages. */ - protected function installLanguages() { + protected function installLanguages(): void { $file_system = \Drupal::service('file_system'); foreach ($this->languages as $langcode => $name) { // Generate custom .po contents for the language. diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/EquivalentUpdateTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/EquivalentUpdateTest.php index 371b939cc8b..0990ccde807 100644 --- a/core/modules/system/tests/src/Functional/UpdateSystem/EquivalentUpdateTest.php +++ b/core/modules/system/tests/src/Functional/UpdateSystem/EquivalentUpdateTest.php @@ -56,7 +56,7 @@ class EquivalentUpdateTest extends BrowserTestBase { /** * Tests that update hooks are properly run. */ - public function testUpdateHooks() { + public function testUpdateHooks(): void { /** @var \Drupal\Core\Update\UpdateHookRegistry $update_registry */ $update_registry = \Drupal::service('update.update_hook_registry'); $this->drupalLogin($this->user); @@ -202,7 +202,7 @@ class EquivalentUpdateTest extends BrowserTestBase { /** * Tests that module uninstall removes skipped update information. */ - public function testModuleUninstall() { + public function testModuleUninstall(): void { /** @var \Drupal\Core\Update\UpdateHookRegistry $update_registry */ $update_registry = \Drupal::service('update.update_hook_registry'); diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestBaseFilledTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestBaseFilledTest.php index 4f97e46ffe4..b6ae484f42e 100644 --- a/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestBaseFilledTest.php +++ b/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestBaseFilledTest.php @@ -26,7 +26,7 @@ class UpdatePathTestBaseFilledTest extends UpdatePathTestBase { /** * {@inheritdoc} */ - protected function setDatabaseDumpFiles() { + protected function setDatabaseDumpFiles(): void { $this->databaseDumpFiles[] = __DIR__ . '/../../../../tests/fixtures/update/drupal-10.3.0.filled.standard.php.gz'; $this->databaseDumpFiles[] = __DIR__ . '/../../../../tests/fixtures/update/drupal-8.update-test-schema-enabled.php'; $this->databaseDumpFiles[] = __DIR__ . '/../../../../tests/fixtures/update/drupal-8.update-test-semver-update-n-enabled.php'; @@ -400,7 +400,7 @@ class UpdatePathTestBaseFilledTest extends UpdatePathTestBase { /** * {@inheritdoc} */ - protected function replaceUser1() { + protected function replaceUser1(): void { // Do not replace the user from our dump. } diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestJavaScriptTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestJavaScriptTest.php index 18e9adbefad..ffaaba1119a 100644 --- a/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestJavaScriptTest.php +++ b/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestJavaScriptTest.php @@ -40,7 +40,7 @@ class UpdatePathTestJavaScriptTest extends BrowserTestBase { /** * {@inheritdoc} */ - protected function doSelectionTest() { + protected function doSelectionTest(): void { // Ensure that at least one JS script has drupalSettings in there. $scripts = $this->xpath('//script'); $found = FALSE; diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateExceptionTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateExceptionTest.php index 814c02b9920..fdcd9491812 100644 --- a/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateExceptionTest.php +++ b/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateExceptionTest.php @@ -63,7 +63,7 @@ class UpdatePostUpdateExceptionTest extends BrowserTestBase { /** * {@inheritdoc} */ - protected function doSelectionTest() { + protected function doSelectionTest(): void { $this->assertSession()->assertEscaped("Post update that throws an exception."); } diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateFailingTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateFailingTest.php index 7eca9da31fd..11084dcbf0a 100644 --- a/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateFailingTest.php +++ b/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateFailingTest.php @@ -68,7 +68,7 @@ class UpdatePostUpdateFailingTest extends BrowserTestBase { /** * {@inheritdoc} */ - protected function doSelectionTest() { + protected function doSelectionTest(): void { // First update, should not be run since this module's update hooks fail. $this->assertSession()->responseContains('8001 - This update will fail.'); $this->assertSession()->responseContains('8002 - A further update'); diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateTest.php index 3cd3416a268..1a4ad97af1a 100644 --- a/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateTest.php +++ b/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateTest.php @@ -67,7 +67,7 @@ class UpdatePostUpdateTest extends BrowserTestBase { /** * {@inheritdoc} */ - protected function doSelectionTest() { + protected function doSelectionTest(): void { // Ensure that normal and post_update updates are merged together on the // selection page. $this->assertSession()->responseContains('<ul><li>8001 - Normal update_N() function.</li><li>First update.</li><li>Second update.</li><li>Test0 update.</li><li>Test1 update.</li><li>Testing batch processing in post updates update.</li></ul>'); diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php index ed305861a62..52524acf9fd 100644 --- a/core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php +++ b/core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php @@ -845,7 +845,7 @@ class UpdateScriptTest extends BrowserTestBase { /** * Helper function to run updates via the browser. */ - protected function runUpdates($maintenance_mode) { + protected function runUpdates($maintenance_mode): void { /** @var \Drupal\Core\Update\UpdateHookRegistry $update_registry */ $update_registry = \Drupal::service('update.update_hook_registry'); $schema_version = $update_registry->getInstalledVersion('update_script_test'); diff --git a/core/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php b/core/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php index c6ae196ccb7..4d8784c4064 100644 --- a/core/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php +++ b/core/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php @@ -57,7 +57,7 @@ class ConfigEntityImportTest extends KernelTestBase { /** * Tests updating an action during import. */ - protected function doActionUpdate() { + protected function doActionUpdate(): void { // Create a test action with a known label. $name = 'system.action.apple'; $entity = Action::create([ @@ -78,7 +78,7 @@ class ConfigEntityImportTest extends KernelTestBase { /** * Tests updating a block during import. */ - protected function doBlockUpdate() { + protected function doBlockUpdate(): void { // Create a test block with a known label. $name = 'block.block.apple'; $block = $this->placeBlock('system_powered_by_block', [ @@ -98,7 +98,7 @@ class ConfigEntityImportTest extends KernelTestBase { /** * Tests updating a filter format during import. */ - protected function doFilterFormatUpdate() { + protected function doFilterFormatUpdate(): void { // Create a test filter format with a known label. $name = 'filter.format.plain_text'; @@ -130,7 +130,7 @@ class ConfigEntityImportTest extends KernelTestBase { /** * Tests updating an image style during import. */ - protected function doImageStyleUpdate() { + protected function doImageStyleUpdate(): void { // Create a test image style with a known label. $name = 'image.style.thumbnail'; @@ -167,7 +167,7 @@ class ConfigEntityImportTest extends KernelTestBase { /** * Tests updating a search page during import. */ - protected function doSearchPageUpdate() { + protected function doSearchPageUpdate(): void { // Create a test search page with a known label. $name = 'search.page.apple'; $entity = SearchPage::create([ @@ -189,7 +189,7 @@ class ConfigEntityImportTest extends KernelTestBase { /** * Tests updating of third party settings. */ - protected function doThirdPartySettingsUpdate() { + protected function doThirdPartySettingsUpdate(): void { // Create a test action with a known label. $name = 'system.action.third_party_settings_test'; @@ -226,7 +226,7 @@ class ConfigEntityImportTest extends KernelTestBase { * @param mixed $expected * The expected default value of the plugin config setting. */ - protected function checkSinglePluginConfigSync(EntityWithPluginCollectionInterface $entity, $config_key, $setting_key, $expected) { + protected function checkSinglePluginConfigSync(EntityWithPluginCollectionInterface $entity, $config_key, $setting_key, $expected): void { $plugin_collection = $entity->getPluginCollections()[$config_key]; $settings = $entity->get($config_key); diff --git a/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php b/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php index f291fa7aeb1..3f049a2b24b 100644 --- a/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php +++ b/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php @@ -64,7 +64,7 @@ class ProgrammaticTest extends KernelTestBase { * A boolean indicating whether or not the form submission is expected to * be valid. */ - protected function doSubmitForm($values, $valid_input) { + protected function doSubmitForm($values, $valid_input): void { // Programmatically submit the given values. $form_state = (new FormState())->setValues($values); \Drupal::formBuilder()->submitForm('\Drupal\form_test\Form\FormTestProgrammaticForm', $form_state); diff --git a/core/modules/system/tests/src/Kernel/Mail/MailTest.php b/core/modules/system/tests/src/Kernel/Mail/MailTest.php index 444075a2655..73c9974c304 100644 --- a/core/modules/system/tests/src/Kernel/Mail/MailTest.php +++ b/core/modules/system/tests/src/Kernel/Mail/MailTest.php @@ -387,7 +387,7 @@ class MailTest extends KernelTestBase { * @param string $mail_interface * The mail interface to configure. */ - protected function configureDefaultMailInterface($mail_interface) { + protected function configureDefaultMailInterface($mail_interface): void { $GLOBALS['config']['system.mail']['interface']['default'] = $mail_interface; } diff --git a/core/modules/system/tests/src/Kernel/PhpStorage/PhpStorageFactoryTest.php b/core/modules/system/tests/src/Kernel/PhpStorage/PhpStorageFactoryTest.php index 219ded03f30..13c8521de73 100644 --- a/core/modules/system/tests/src/Kernel/PhpStorage/PhpStorageFactoryTest.php +++ b/core/modules/system/tests/src/Kernel/PhpStorage/PhpStorageFactoryTest.php @@ -94,7 +94,7 @@ class PhpStorageFactoryTest extends KernelTestBase { * @param array $configuration * An array of configuration to set. Will be merged with default values. */ - protected function setSettings($name = 'default', array $configuration = []) { + protected function setSettings($name = 'default', array $configuration = []): void { $settings['php_storage'][$name] = $configuration + [ 'class' => 'Drupal\system\PhpStorage\MockPhpStorage', 'directory' => 'tmp://', diff --git a/core/modules/system/tests/src/Kernel/System/CronQueueTest.php b/core/modules/system/tests/src/Kernel/System/CronQueueTest.php index 42ff6c944e7..7ca305c65aa 100644 --- a/core/modules/system/tests/src/Kernel/System/CronQueueTest.php +++ b/core/modules/system/tests/src/Kernel/System/CronQueueTest.php @@ -341,7 +341,7 @@ class CronQueueTest extends KernelTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); $container->register('test_logger', get_class($this->logger->reveal())) ->addTag('logger'); diff --git a/core/modules/system/tests/src/Kernel/Theme/TwigIncludeTest.php b/core/modules/system/tests/src/Kernel/Theme/TwigIncludeTest.php index 711a008eafa..c1bac735e80 100644 --- a/core/modules/system/tests/src/Kernel/Theme/TwigIncludeTest.php +++ b/core/modules/system/tests/src/Kernel/Theme/TwigIncludeTest.php @@ -136,7 +136,7 @@ class TwigIncludeTest extends KernelTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); if (!empty($this->twigConfig)) { $container->setParameter('twig.config', $this->twigConfig); diff --git a/core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php b/core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php index fed64ed349d..35d1615ced9 100644 --- a/core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php +++ b/core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php @@ -391,13 +391,13 @@ class PathBasedBreadcrumbBuilderTest extends UnitTestCase { /** * Setup the access manager to always allow access to routes. */ - public function setupAccessManagerToAllow() { + public function setupAccessManagerToAllow(): void { $this->accessManager->expects($this->any()) ->method('check') ->willReturn((new AccessResultAllowed())->cachePerPermissions()); } - protected function setupStubPathProcessor() { + protected function setupStubPathProcessor(): void { $this->pathProcessor->expects($this->any()) ->method('processInbound') ->willReturnArgument(0); @@ -417,7 +417,7 @@ class TestPathBasedBreadcrumbBuilder extends PathBasedBreadcrumbBuilder { return $this; } - public function setLinkGenerator(LinkGeneratorInterface $link_generator) { + public function setLinkGenerator(LinkGeneratorInterface $link_generator): void { $this->linkGenerator = $link_generator; } diff --git a/core/modules/taxonomy/tests/src/Functional/TermTranslationFieldViewTest.php b/core/modules/taxonomy/tests/src/Functional/TermTranslationFieldViewTest.php index 7a5944a513d..4e17c672cc4 100644 --- a/core/modules/taxonomy/tests/src/Functional/TermTranslationFieldViewTest.php +++ b/core/modules/taxonomy/tests/src/Functional/TermTranslationFieldViewTest.php @@ -77,7 +77,7 @@ class TermTranslationFieldViewTest extends TaxonomyTestBase { /** * Creates a test subject node, with translation. */ - protected function setUpNode() { + protected function setUpNode(): void { /** @var \Drupal\node\Entity\Node $node */ $node = Node::create([ 'title' => $this->randomMachineName(), @@ -100,7 +100,7 @@ class TermTranslationFieldViewTest extends TaxonomyTestBase { /** * Creates a test subject term, with translation. */ - protected function setUpTerm() { + protected function setUpTerm(): void { $this->term = $this->createTerm($this->vocabulary, [ 'name' => $this->baseTagName, 'langcode' => $this->baseLangcode, diff --git a/core/modules/taxonomy/tests/src/Functional/TermTranslationTest.php b/core/modules/taxonomy/tests/src/Functional/TermTranslationTest.php index 37ffbe522f1..7fe2efe6f52 100644 --- a/core/modules/taxonomy/tests/src/Functional/TermTranslationTest.php +++ b/core/modules/taxonomy/tests/src/Functional/TermTranslationTest.php @@ -122,7 +122,7 @@ class TermTranslationTest extends TaxonomyTestBase { /** * Setup translated terms in a hierarchy. */ - protected function setUpTerms() { + protected function setUpTerms(): void { $parent_vid = 0; foreach ($this->termTranslationMap as $name => $translation) { diff --git a/core/modules/taxonomy/tests/src/Functional/TermTranslationUITest.php b/core/modules/taxonomy/tests/src/Functional/TermTranslationUITest.php index 27b7c06dfea..cd715c7e6df 100644 --- a/core/modules/taxonomy/tests/src/Functional/TermTranslationUITest.php +++ b/core/modules/taxonomy/tests/src/Functional/TermTranslationUITest.php @@ -56,7 +56,7 @@ class TermTranslationUITest extends ContentTranslationUITestBase { /** * {@inheritdoc} */ - protected function setupBundle() { + protected function setupBundle(): void { parent::setupBundle(); // Create a vocabulary. @@ -164,7 +164,7 @@ class TermTranslationUITest extends ContentTranslationUITestBase { /** * {@inheritdoc} */ - protected function doTestTranslationEdit() { + protected function doTestTranslationEdit(): void { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); @@ -185,7 +185,7 @@ class TermTranslationUITest extends ContentTranslationUITestBase { /** * {@inheritdoc} */ - protected function doTestPublishedStatus() { + protected function doTestPublishedStatus(): void { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TermTranslationViewsTest.php b/core/modules/taxonomy/tests/src/Functional/Views/TermTranslationViewsTest.php index 6453205b4b5..e4d1a71de0a 100644 --- a/core/modules/taxonomy/tests/src/Functional/Views/TermTranslationViewsTest.php +++ b/core/modules/taxonomy/tests/src/Functional/Views/TermTranslationViewsTest.php @@ -106,7 +106,7 @@ class TermTranslationViewsTest extends TaxonomyTestBase { /** * Setup translated terms in a hierarchy. */ - protected function setUpTerms() { + protected function setUpTerms(): void { $parent_vid = 0; foreach ($this->termTranslationMap as $name => $translation) { diff --git a/core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldInstanceTest.php b/core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldInstanceTest.php index 187c357b566..ff5e7136611 100644 --- a/core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldInstanceTest.php +++ b/core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldInstanceTest.php @@ -108,7 +108,7 @@ class MigrateVocabularyFieldInstanceTest extends MigrateDrupal6TestBase { * @param string[] $target_bundles * An array of expected target bundles. */ - protected function assertTargetBundles($id, array $target_bundles) { + protected function assertTargetBundles($id, array $target_bundles): void { $field = FieldConfig::load($id); $handler_settings = $field->getSetting('handler_settings'); $this->assertArrayHasKey('target_bundles', $handler_settings); diff --git a/core/modules/taxonomy/tests/src/Kernel/TaxonomyQueryAlterTest.php b/core/modules/taxonomy/tests/src/Kernel/TaxonomyQueryAlterTest.php index 785a060eb10..08a326fe375 100644 --- a/core/modules/taxonomy/tests/src/Kernel/TaxonomyQueryAlterTest.php +++ b/core/modules/taxonomy/tests/src/Kernel/TaxonomyQueryAlterTest.php @@ -119,7 +119,7 @@ class TaxonomyQueryAlterTest extends KernelTestBase { /** * Sets up the hooks in the test module. */ - protected function setupQueryTagTestHooks() { + protected function setupQueryTagTestHooks(): void { $this->container->get('entity_type.manager')->getStorage('taxonomy_term')->resetCache(); $state = $this->container->get('state'); $state->set('taxonomy_test_query_alter', 0); diff --git a/core/modules/text/tests/src/Functional/TextFieldTest.php b/core/modules/text/tests/src/Functional/TextFieldTest.php index 35cf3da0dd8..e2102f9cc3a 100644 --- a/core/modules/text/tests/src/Functional/TextFieldTest.php +++ b/core/modules/text/tests/src/Functional/TextFieldTest.php @@ -307,7 +307,7 @@ class TextFieldTest extends StringFieldTest { /** * Helper function for testTextfieldWidgetsFormatted(). */ - public function _testTextfieldWidgetsFormatted($field_type, $widget_type) { + public function _testTextfieldWidgetsFormatted($field_type, $widget_type): void { // Create a field. $field_name = $this->randomMachineName(); $field_storage = FieldStorageConfig::create([ diff --git a/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php b/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php index e386c918a9b..b2f7586d442 100644 --- a/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php +++ b/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php @@ -101,7 +101,7 @@ class TextWithSummaryItemTest extends FieldKernelTestBase { * @param string $entity_type * Entity type for which the field should be created. */ - protected function createField($entity_type) { + protected function createField($entity_type): void { // Create a field . $this->fieldStorage = FieldStorageConfig::create([ 'field_name' => 'summary_field', diff --git a/core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php b/core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php index 20e27ab4bb8..993c5d91d46 100644 --- a/core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php +++ b/core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php @@ -139,7 +139,7 @@ class ToolbarCacheContextsTest extends BrowserTestBase { * @param string[] $module_list * An array of module names. */ - protected function installExtraModules(array $module_list) { + protected function installExtraModules(array $module_list): void { \Drupal::service('module_installer')->install($module_list); // Installing modules updates the container and needs a router rebuild. diff --git a/core/modules/update/tests/src/Functional/UpdateManagerUpdateTest.php b/core/modules/update/tests/src/Functional/UpdateManagerUpdateTest.php index 1e1cb15e00f..96aa846e2e6 100644 --- a/core/modules/update/tests/src/Functional/UpdateManagerUpdateTest.php +++ b/core/modules/update/tests/src/Functional/UpdateManagerUpdateTest.php @@ -306,7 +306,7 @@ class UpdateManagerUpdateTest extends UpdateTestBase { * Array of expected header texts, keyed by CSS selectors relative to the * thead tr (for example, "th:nth-of-type(3)"). */ - private function checkTableHeaders($table_locator, array $expected_headers) { + private function checkTableHeaders($table_locator, array $expected_headers): void { $assert_session = $this->assertSession(); $assert_session->elementExists('css', $table_locator); foreach ($expected_headers as $locator => $header) { diff --git a/core/modules/update/tests/src/Unit/UpdateFetcherTest.php b/core/modules/update/tests/src/Unit/UpdateFetcherTest.php index 4d9b47053a2..57642519cf5 100644 --- a/core/modules/update/tests/src/Unit/UpdateFetcherTest.php +++ b/core/modules/update/tests/src/Unit/UpdateFetcherTest.php @@ -163,7 +163,7 @@ class UpdateFetcherTest extends UnitTestCase { * @param \GuzzleHttp\Psr7\Response ... * Variable number of Response objects that the mocked client should return. */ - protected function mockClient(Response ...$responses) { + protected function mockClient(Response ...$responses): void { // Create a mock and queue responses. $mock_handler = new MockHandler($responses); $handler_stack = HandlerStack::create($mock_handler); diff --git a/core/modules/user/tests/src/Functional/UserAdminLanguageTest.php b/core/modules/user/tests/src/Functional/UserAdminLanguageTest.php index d5e24de2dc5..81a6cbc505e 100644 --- a/core/modules/user/tests/src/Functional/UserAdminLanguageTest.php +++ b/core/modules/user/tests/src/Functional/UserAdminLanguageTest.php @@ -183,7 +183,7 @@ class UserAdminLanguageTest extends BrowserTestBase { * @param bool $admin_first * Whether the admin negotiation should be first. */ - public function setLanguageNegotiation($admin_first = FALSE) { + public function setLanguageNegotiation($admin_first = FALSE): void { $edit = [ 'language_interface[enabled][language-user-admin]' => TRUE, 'language_interface[enabled][language-url]' => TRUE, @@ -197,7 +197,7 @@ class UserAdminLanguageTest extends BrowserTestBase { /** * Helper method for adding a custom language. */ - public function addCustomLanguage() { + public function addCustomLanguage(): void { $langcode = 'xx'; // The English name for the language. $name = $this->randomMachineName(16); diff --git a/core/modules/user/tests/src/Functional/UserLoginHttpTest.php b/core/modules/user/tests/src/Functional/UserLoginHttpTest.php index 4d4cc84ff95..0f387b73adb 100644 --- a/core/modules/user/tests/src/Functional/UserLoginHttpTest.php +++ b/core/modules/user/tests/src/Functional/UserLoginHttpTest.php @@ -119,7 +119,7 @@ class UserLoginHttpTest extends BrowserTestBase { * @param string $format * Serialization format. */ - protected function doTestLogin($format) { + protected function doTestLogin($format): void { $client = \Drupal::httpClient(); // Create new user for each iteration to reset flood. // Grant the user administer users permissions to they can see the @@ -282,7 +282,7 @@ class UserLoginHttpTest extends BrowserTestBase { /** * Resets all flood entries. */ - protected function resetFlood() { + protected function resetFlood(): void { $this->container->get('database')->delete(DatabaseBackend::TABLE_NAME)->execute(); } @@ -530,7 +530,7 @@ class UserLoginHttpTest extends BrowserTestBase { * @param \Drupal\user\UserInterface $account * Test account. */ - protected function doTestPasswordReset($format, $account) { + protected function doTestPasswordReset($format, $account): void { $response = $this->passwordRequest([], $format); $this->assertHttpResponseWithMessage($response, 400, 'Missing credentials.name or credentials.mail', $format); @@ -597,7 +597,7 @@ class UserLoginHttpTest extends BrowserTestBase { /** * Login from reset password email. */ - protected function loginFromResetEmail() { + protected function loginFromResetEmail(): void { $_emails = $this->drupalGetMails(); $email = end($_emails); $urls = []; diff --git a/core/modules/user/tests/src/Functional/UserLoginTest.php b/core/modules/user/tests/src/Functional/UserLoginTest.php index 26c7807fe97..0e8f8f9bb0e 100644 --- a/core/modules/user/tests/src/Functional/UserLoginTest.php +++ b/core/modules/user/tests/src/Functional/UserLoginTest.php @@ -338,7 +338,7 @@ class UserLoginTest extends BrowserTestBase { * @param object $user * A user object. */ - public function resetUserPassword($user) { + public function resetUserPassword($user): void { $this->drupalGet('user/password'); $edit['name'] = $user->getDisplayName(); $this->submitForm($edit, 'Submit'); diff --git a/core/modules/user/tests/src/Functional/UserRegistrationRestTest.php b/core/modules/user/tests/src/Functional/UserRegistrationRestTest.php index cb93659a4f4..97dc1f5a629 100644 --- a/core/modules/user/tests/src/Functional/UserRegistrationRestTest.php +++ b/core/modules/user/tests/src/Functional/UserRegistrationRestTest.php @@ -238,7 +238,7 @@ class UserRegistrationRestTest extends ResourceTestBase { /** * {@inheritdoc} */ - protected function setUpAuthorization($method) { + protected function setUpAuthorization($method): void { switch ($method) { case 'POST': $this->grantPermissionsToAuthenticatedRole(['restful post user_registration']); diff --git a/core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php b/core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php index 44f9a36cb9a..4e972336bd6 100644 --- a/core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php +++ b/core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php @@ -94,7 +94,7 @@ class UserRolesAssignmentTest extends BrowserTestBase { * (optional) Whether to assert that $rid exists (TRUE) or not (FALSE). * Defaults to TRUE. */ - private function userLoadAndCheckRoleAssigned($account, $rid, $is_assigned = TRUE) { + private function userLoadAndCheckRoleAssigned($account, $rid, $is_assigned = TRUE): void { $user_storage = $this->container->get('entity_type.manager')->getStorage('user'); $user_storage->resetCache([$account->id()]); $account = $user_storage->load($account->id()); diff --git a/core/modules/user/tests/src/Functional/UserTranslationUITest.php b/core/modules/user/tests/src/Functional/UserTranslationUITest.php index f61b5526c72..5da6b313cd0 100644 --- a/core/modules/user/tests/src/Functional/UserTranslationUITest.php +++ b/core/modules/user/tests/src/Functional/UserTranslationUITest.php @@ -77,7 +77,7 @@ class UserTranslationUITest extends ContentTranslationUITestBase { /** * {@inheritdoc} */ - protected function doTestTranslationEdit() { + protected function doTestTranslationEdit(): void { $storage = $this->container->get('entity_type.manager') ->getStorage($this->entityTypeId); $storage->resetCache([$this->entityId]); diff --git a/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php b/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php index 6fb7e9e7d9b..8fff5e8fbc5 100644 --- a/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php +++ b/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php @@ -35,7 +35,7 @@ class MigrateUserRoleTest extends MigrateDrupal6TestBase { * @param \Drupal\migrate\Plugin\MigrateIdMapInterface $id_map * The migration ID map plugin. */ - public function assertMessages(array $role_data, MigrateIdMapInterface $id_map) { + public function assertMessages(array $role_data, MigrateIdMapInterface $id_map): void { foreach ($id_map->getMessages() as $message) { $permissions = implode("', '", $role_data[$message->dest_id]['invalid']); $expected_message = "Permission(s) '" . $permissions . "' not found."; @@ -48,7 +48,7 @@ class MigrateUserRoleTest extends MigrateDrupal6TestBase { /** * Asserts there are no duplicate roles. */ - public function assertNoDuplicateRoles() { + public function assertNoDuplicateRoles(): void { $roles = [ 'anonymous1', 'authenticated1', diff --git a/core/modules/views/tests/src/Functional/Handler/FilterDateTest.php b/core/modules/views/tests/src/Functional/Handler/FilterDateTest.php index 6cdc4d67393..5cb8d0cd51e 100644 --- a/core/modules/views/tests/src/Functional/Handler/FilterDateTest.php +++ b/core/modules/views/tests/src/Functional/Handler/FilterDateTest.php @@ -108,7 +108,7 @@ class FilterDateTest extends ViewTestBase { /** * Tests the general offset functionality. */ - protected function _testOffset() { + protected function _testOffset(): void { $view = Views::getView('test_filter_date_between'); // Test offset for simple operator. @@ -139,7 +139,7 @@ class FilterDateTest extends ViewTestBase { /** * Tests the filter operator between/not between. */ - protected function _testBetween() { + protected function _testBetween(): void { $view = Views::getView('test_filter_date_between'); // Test between with min and max. @@ -195,7 +195,7 @@ class FilterDateTest extends ViewTestBase { /** * Make sure the validation callbacks works. */ - protected function _testUiValidation() { + protected function _testUiValidation(): void { $this->drupalLogin($this->drupalCreateUser([ 'administer views', @@ -215,7 +215,7 @@ class FilterDateTest extends ViewTestBase { /** * Tests date filter UI. */ - protected function _testFilterDateUI() { + protected function _testFilterDateUI(): void { $this->drupalLogin($this->drupalCreateUser(['administer views'])); $this->drupalGet('admin/structure/views/nojs/handler/test_filter_date_between/default/filter/created'); $this->submitForm([], 'Expose filter'); @@ -306,7 +306,7 @@ class FilterDateTest extends ViewTestBase { /** * Tests datetime grouped filter UI. */ - protected function _testFilterDatetimeUI() { + protected function _testFilterDatetimeUI(): void { $this->drupalLogin($this->drupalCreateUser(['administer views'])); $this->drupalGet('admin/structure/views/nojs/add-handler/test_filter_date_between/default/filter'); $this->submitForm([ diff --git a/core/modules/views/tests/src/Functional/Plugin/DisplayFeedTranslationTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayFeedTranslationTest.php index 5feef69641b..bc15241bb86 100644 --- a/core/modules/views/tests/src/Functional/Plugin/DisplayFeedTranslationTest.php +++ b/core/modules/views/tests/src/Functional/Plugin/DisplayFeedTranslationTest.php @@ -140,7 +140,7 @@ class DisplayFeedTranslationTest extends ViewTestBase { * @param \Drupal\node\Entity\Node $node * The node entity that's been created. */ - protected function checkFeedResults($link_style, Node $node) { + protected function checkFeedResults($link_style, Node $node): void { /** @var \Drupal\Core\Language\LanguageManagerInterface $languageManager */ $language_manager = \Drupal::languageManager()->reset(); diff --git a/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php index c56c73b6567..93f2292fde5 100644 --- a/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php +++ b/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php @@ -455,7 +455,7 @@ class DisplayTest extends ViewTestBase { * Whether the node based view should be expected to support translation * settings. */ - protected function checkTranslationSetting($expected_node_translatability = FALSE) { + protected function checkTranslationSetting($expected_node_translatability = FALSE): void { $not_supported_text = 'The view is not based on a translatable entity type or the site is not multilingual.'; $supported_text = 'All content that supports translations will be displayed in the selected language.'; diff --git a/core/modules/views/tests/src/Functional/Wizard/PagerTest.php b/core/modules/views/tests/src/Functional/Wizard/PagerTest.php index 76e37c0cd5d..dc5a7de6b9c 100644 --- a/core/modules/views/tests/src/Functional/Wizard/PagerTest.php +++ b/core/modules/views/tests/src/Functional/Wizard/PagerTest.php @@ -51,7 +51,7 @@ class PagerTest extends WizardTestBase { * @param bool $pager * A boolean for whether the View created should use a pager. */ - protected function createViewAtPath($path, $pager = TRUE) { + protected function createViewAtPath($path, $pager = TRUE): void { $view = []; $view['label'] = $this->randomMachineName(16); $view['id'] = $this->randomMachineName(16); diff --git a/core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php b/core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php index ed28481f551..a44976bb156 100644 --- a/core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php +++ b/core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php @@ -108,7 +108,7 @@ class CacheableMetadataCalculationTest extends KernelTestBase { /** * Resets the state so we are ready for a new test. */ - protected function resetState() { + protected function resetState(): void { $this->state->set('views_test_cacheable_metadata_has_been_accessed', FALSE); } diff --git a/core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php b/core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php index 1d123bf94c3..b65f135d93d 100644 --- a/core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php +++ b/core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php @@ -147,7 +147,7 @@ class EntityViewsDataTest extends KernelTestBase { * @param \Drupal\Core\Field\BaseFieldDefinition[] $base_fields * An array of base field definitions */ - protected function setUpEntityType(EntityTypeInterface $definition, array $base_fields = []) { + protected function setUpEntityType(EntityTypeInterface $definition, array $base_fields = []): void { // Replace the cache backend in the entity type manager so it returns // our test entity type in addition to the existing ones. $definitions = $this->entityTypeManager->getDefinitions(); @@ -852,7 +852,7 @@ class ViewsTestEntity extends ContentEntityBase { * The array of base field definitions to mock. These are added to the * defaults ones from the parent class. */ - public static function setMockedBaseFieldDefinitions(string $entity_type_id, array $definitions) { + public static function setMockedBaseFieldDefinitions(string $entity_type_id, array $definitions): void { static::$mockedBaseFieldDefinitions[$entity_type_id] = $definitions; } diff --git a/core/modules/views/tests/src/Kernel/Entity/RowEntityRenderersTest.php b/core/modules/views/tests/src/Kernel/Entity/RowEntityRenderersTest.php index b9b30d308c8..32c0c16e966 100644 --- a/core/modules/views/tests/src/Kernel/Entity/RowEntityRenderersTest.php +++ b/core/modules/views/tests/src/Kernel/Entity/RowEntityRenderersTest.php @@ -210,7 +210,7 @@ class RowEntityRenderersTest extends ViewsKernelTestBase { * associated with language keys appropriate for the translation of that * node. */ - protected function checkLanguageRenderers($display, $values) { + protected function checkLanguageRenderers($display, $values): void { $expected = [ $values[0]['en'], $values[0]['en'], @@ -294,7 +294,7 @@ class RowEntityRenderersTest extends ViewsKernelTestBase { * associated with language keys appropriate for the translation of that * node. */ - protected function checkLanguageRenderersRelationship($display, $values) { + protected function checkLanguageRenderersRelationship($display, $values): void { $expected = [ $values[1]['en'], $values[1]['en'], diff --git a/core/modules/views/tests/src/Kernel/Handler/AreaEntityTest.php b/core/modules/views/tests/src/Kernel/Handler/AreaEntityTest.php index 1f1866d8b13..f53032e9a30 100644 --- a/core/modules/views/tests/src/Kernel/Handler/AreaEntityTest.php +++ b/core/modules/views/tests/src/Kernel/Handler/AreaEntityTest.php @@ -43,7 +43,7 @@ class AreaEntityTest extends ViewsKernelTestBase { /** * {@inheritdoc} */ - protected function setUpFixtures() { + protected function setUpFixtures(): void { // Install the themes used for this test. $this->container->get('theme_installer')->install(['olivero']); $this->container->get('config.factory')->getEditable('system.theme')->set('default', 'olivero')->save(); @@ -119,7 +119,7 @@ class AreaEntityTest extends ViewsKernelTestBase { * @param \Drupal\Core\Entity\EntityInterface[] $entities * The entities. */ - public function doTestRender($entities) { + public function doTestRender($entities): void { /** @var \Drupal\Core\Render\RendererInterface $renderer */ $renderer = $this->container->get('renderer'); $view = Views::getView('test_entity_area'); @@ -188,7 +188,7 @@ class AreaEntityTest extends ViewsKernelTestBase { /** * Tests the calculation of the rendered dependencies. */ - public function doTestCalculateDependencies() { + public function doTestCalculateDependencies(): void { $view = View::load('test_entity_area'); $dependencies = $view->calculateDependencies()->getDependencies(); diff --git a/core/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php b/core/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php index feadd4453c4..1f4c6d5cb1a 100644 --- a/core/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php +++ b/core/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php @@ -33,7 +33,7 @@ class AreaOrderTest extends ViewsKernelTestBase { /** * {@inheritdoc} */ - protected function setUpFixtures() { + protected function setUpFixtures(): void { // Install the themes used for this test. $this->container->get('theme_installer')->install(['olivero']); diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldEntityLinkTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldEntityLinkTest.php index 387a9a4a5db..55d1c4da290 100644 --- a/core/modules/views/tests/src/Kernel/Handler/FieldEntityLinkTest.php +++ b/core/modules/views/tests/src/Kernel/Handler/FieldEntityLinkTest.php @@ -42,7 +42,7 @@ class FieldEntityLinkTest extends ViewsKernelTestBase { /** * {@inheritdoc} */ - protected function setUpFixtures() { + protected function setUpFixtures(): void { parent::setUpFixtures(); // Create the anonymous user account and set it as current user. @@ -85,7 +85,7 @@ class FieldEntityLinkTest extends ViewsKernelTestBase { * @param bool[] $expected_results * An associative array of expected results keyed by link template name. */ - protected function doTestEntityLink(AccountInterface $account, $expected_results) { + protected function doTestEntityLink(AccountInterface $account, $expected_results): void { \Drupal::currentUser()->setAccount($account); $view = Views::getView('test_entity_test_link'); diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php index 4be302ed0f9..423b01625c6 100644 --- a/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php +++ b/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php @@ -398,7 +398,7 @@ class FieldKernelTest extends ViewsKernelTestBase { * This tests alters the result to get easier and less coupled results. It is * important that assertSame() is used in this test since in PHP 0 == ''. */ - public function _testHideIfEmpty() { + public function _testHideIfEmpty(): void { /** @var \Drupal\Core\Render\RendererInterface $renderer */ $renderer = \Drupal::service('renderer'); @@ -679,7 +679,7 @@ class FieldKernelTest extends ViewsKernelTestBase { /** * Tests the usage of the empty text. */ - public function _testEmptyText() { + public function _testEmptyText(): void { /** @var \Drupal\Core\Render\RendererInterface $renderer */ $renderer = \Drupal::service('renderer'); diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldRenderedEntityTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldRenderedEntityTest.php index f1aa263e8b2..f21b3f11924 100644 --- a/core/modules/views/tests/src/Kernel/Handler/FieldRenderedEntityTest.php +++ b/core/modules/views/tests/src/Kernel/Handler/FieldRenderedEntityTest.php @@ -44,7 +44,7 @@ class FieldRenderedEntityTest extends ViewsKernelTestBase { /** * {@inheritdoc} */ - protected function setUpFixtures() { + protected function setUpFixtures(): void { $this->installEntitySchema('user'); $this->installEntitySchema('entity_test'); $this->installConfig(['entity_test']); diff --git a/core/modules/views/tests/src/Kernel/Plugin/QueryTest.php b/core/modules/views/tests/src/Kernel/Plugin/QueryTest.php index 52b29887ed7..22276d9e2db 100644 --- a/core/modules/views/tests/src/Kernel/Plugin/QueryTest.php +++ b/core/modules/views/tests/src/Kernel/Plugin/QueryTest.php @@ -41,7 +41,7 @@ class QueryTest extends ViewsKernelTestBase { /** * Tests the ViewExecutable::initQuery method. */ - public function _testInitQuery() { + public function _testInitQuery(): void { $view = Views::getView('test_view'); $view->setDisplay(); @@ -49,7 +49,7 @@ class QueryTest extends ViewsKernelTestBase { $this->assertInstanceOf(QueryTestPlugin::class, $view->query); } - public function _testQueryExecute() { + public function _testQueryExecute(): void { $view = Views::getView('test_view'); $view->setDisplay(); @@ -65,7 +65,7 @@ class QueryTest extends ViewsKernelTestBase { * * @see \Drupal\views\Plugin\views\query\QueryPluginBase */ - protected function queryMethodsTests() { + protected function queryMethodsTests(): void { $view = Views::getView('test_view'); $view->setDisplay(); diff --git a/core/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php b/core/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php index 7545478c5dd..f5ca6d233b6 100644 --- a/core/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php +++ b/core/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php @@ -59,7 +59,7 @@ class RowRenderCacheTest extends ViewsKernelTestBase { /** * {@inheritdoc} */ - protected function setUpFixtures() { + protected function setUpFixtures(): void { parent::setUpFixtures(); $this->installEntitySchema('user'); @@ -143,7 +143,7 @@ class RowRenderCacheTest extends ViewsKernelTestBase { * @param bool $check_cache * (optional) Whether explicitly test render cache entries. */ - protected function doTestRenderedOutput(AccountInterface $account, $check_cache = FALSE) { + protected function doTestRenderedOutput(AccountInterface $account, $check_cache = FALSE): void { $this->setCurrentUser($account); $view = Views::getView('test_row_render_cache'); $view->setDisplay(); diff --git a/core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php b/core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php index 4cb22865143..1e94692d9e8 100644 --- a/core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php +++ b/core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php @@ -148,7 +148,7 @@ class StyleTableUnitTest extends PluginKernelTestBase { * @param \Drupal\views\ViewExecutable $view * The executable to prepare. */ - protected function prepareView(ViewExecutable $view) { + protected function prepareView(ViewExecutable $view): void { $view->setDisplay(); $view->initStyle(); $view->initHandlers(); diff --git a/core/modules/views/tests/src/Kernel/Plugin/StyleTest.php b/core/modules/views/tests/src/Kernel/Plugin/StyleTest.php index a88ee3ae0ed..24ebfa36b28 100644 --- a/core/modules/views/tests/src/Kernel/Plugin/StyleTest.php +++ b/core/modules/views/tests/src/Kernel/Plugin/StyleTest.php @@ -86,7 +86,7 @@ class StyleTest extends ViewsKernelTestBase { /** * Provides reusable code for ::testGrouping(). */ - protected function doTestGrouping($stripped = FALSE) { + protected function doTestGrouping($stripped = FALSE): void { $view = Views::getView('test_view'); $view->setDisplay(); // Setup grouping by the job and the age field. diff --git a/core/modules/views/tests/src/Kernel/QueryGroupByTest.php b/core/modules/views/tests/src/Kernel/QueryGroupByTest.php index a2811450175..d63fbb97043 100644 --- a/core/modules/views/tests/src/Kernel/QueryGroupByTest.php +++ b/core/modules/views/tests/src/Kernel/QueryGroupByTest.php @@ -107,7 +107,7 @@ class QueryGroupByTest extends ViewsKernelTestBase { * @param array $values * The expected views result. */ - public function groupByTestHelper($aggregation_function, $values) { + public function groupByTestHelper($aggregation_function, $values): void { $this->setupTestEntities(); $view = Views::getView('test_group_by_count'); @@ -138,7 +138,7 @@ class QueryGroupByTest extends ViewsKernelTestBase { /** * Helper method that creates some test entities. */ - protected function setupTestEntities() { + protected function setupTestEntities(): void { // Create 4 entities with name1 and 3 entities with name2. $entity_1 = [ 'name' => 'name1', diff --git a/core/modules/views/tests/src/Kernel/ViewExecutableTest.php b/core/modules/views/tests/src/Kernel/ViewExecutableTest.php index 4e057b59ff3..011d0af3754 100644 --- a/core/modules/views/tests/src/Kernel/ViewExecutableTest.php +++ b/core/modules/views/tests/src/Kernel/ViewExecutableTest.php @@ -92,7 +92,7 @@ class ViewExecutableTest extends ViewsKernelTestBase { 'parent_views', ]; - protected function setUpFixtures() { + protected function setUpFixtures(): void { $this->installEntitySchema('user'); $this->installEntitySchema('node'); $this->installEntitySchema('comment'); diff --git a/core/modules/views/tests/src/Kernel/ViewStorageTest.php b/core/modules/views/tests/src/Kernel/ViewStorageTest.php index 216a410ff6b..ef1db569f0e 100644 --- a/core/modules/views/tests/src/Kernel/ViewStorageTest.php +++ b/core/modules/views/tests/src/Kernel/ViewStorageTest.php @@ -78,7 +78,7 @@ class ViewStorageTest extends ViewsKernelTestBase { /** * Tests loading configuration entities. */ - protected function loadTests() { + protected function loadTests(): void { $view = View::load('test_view_storage'); $data = $this->config('views.view.test_view_storage')->get(); @@ -114,7 +114,7 @@ class ViewStorageTest extends ViewsKernelTestBase { /** * Tests creating configuration entities. */ - protected function createTests() { + protected function createTests(): void { // Create a new View instance with empty values. $created = $this->controller->create([]); @@ -151,7 +151,7 @@ class ViewStorageTest extends ViewsKernelTestBase { /** * Tests adding, saving, and loading displays on configuration entities. */ - protected function displayTests() { + protected function displayTests(): void { // Check whether a display can be added and saved to a View. $view = View::load('test_view_storage_new'); @@ -179,7 +179,7 @@ class ViewStorageTest extends ViewsKernelTestBase { /** * Tests the display related functions like getDisplaysList(). */ - protected function displayMethodTests() { + protected function displayMethodTests(): void { $config['display'] = [ 'page_1' => [ 'display_options' => ['path' => 'test'], diff --git a/core/modules/views/tests/src/Kernel/ViewsTemplateTest.php b/core/modules/views/tests/src/Kernel/ViewsTemplateTest.php index de3656686b3..f8ca7a1b912 100644 --- a/core/modules/views/tests/src/Kernel/ViewsTemplateTest.php +++ b/core/modules/views/tests/src/Kernel/ViewsTemplateTest.php @@ -24,7 +24,7 @@ class ViewsTemplateTest extends ViewsKernelTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); // Enable Twig debugging. $parameters = $container->getParameter('twig.config'); diff --git a/core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php b/core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php index 05cf8840cf6..f0dde96d809 100644 --- a/core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php +++ b/core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php @@ -388,7 +388,7 @@ class TestViewsLocalTask extends ViewsLocalTask { /** * Sets applicable views result. */ - public function setApplicableMenuViews($result) { + public function setApplicableMenuViews($result): void { $this->result = $result; } diff --git a/core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php b/core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php index 48623829886..189b3f5da96 100644 --- a/core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php +++ b/core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php @@ -127,7 +127,7 @@ class EntityTest extends UnitTestCase { /** * Ensures that the entity type manager returns an entity storage. */ - protected function setupEntityTypeManager() { + protected function setupEntityTypeManager(): void { $this->entityTypeManager->expects($this->any()) ->method('getStorage') ->with('entity_test') diff --git a/core/modules/views/tests/src/Unit/Plugin/area/ResultTest.php b/core/modules/views/tests/src/Unit/Plugin/area/ResultTest.php index 224eba343a4..c42eb70b709 100644 --- a/core/modules/views/tests/src/Unit/Plugin/area/ResultTest.php +++ b/core/modules/views/tests/src/Unit/Plugin/area/ResultTest.php @@ -122,7 +122,7 @@ class ResultTest extends UnitTestCase { * @param int $items_per_page * The value to return from getItemsPerPage(). */ - protected function setupViewPager($items_per_page = 0) { + protected function setupViewPager($items_per_page = 0): void { $pager = $this->prophesize(PagerPluginBase::class); $pager->getItemsPerPage() ->willReturn($items_per_page) diff --git a/core/modules/views/tests/src/Unit/Plugin/display/PathPluginBaseTest.php b/core/modules/views/tests/src/Unit/Plugin/display/PathPluginBaseTest.php index 77a9c45861e..5a45763620d 100644 --- a/core/modules/views/tests/src/Unit/Plugin/display/PathPluginBaseTest.php +++ b/core/modules/views/tests/src/Unit/Plugin/display/PathPluginBaseTest.php @@ -61,7 +61,7 @@ class PathPluginBaseTest extends UnitTestCase { /** * Setup access plugin manager and config factory in the Drupal class. */ - public function setupContainer() { + public function setupContainer(): void { $this->accessPluginManager = $this->getMockBuilder('\Drupal\views\Plugin\ViewsPluginManager') ->disableOriginalConstructor() ->getMock(); diff --git a/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php b/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php index 4ed625afa8f..c8795b47e6f 100644 --- a/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php +++ b/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php @@ -169,7 +169,7 @@ class FieldPluginBaseTest extends UnitTestCase { /** * Sets up the unrouted URL assembler and the link generator. */ - protected function setUpUrlIntegrationServices() { + protected function setUpUrlIntegrationServices(): void { $this->pathProcessor = $this->createMock('Drupal\Core\PathProcessor\OutboundPathProcessorInterface'); $this->unroutedUrlAssembler = new UnroutedUrlAssembler($this->requestStack, $this->pathProcessor); @@ -197,7 +197,7 @@ class FieldPluginBaseTest extends UnitTestCase { /** * Sets up a display with empty arguments and fields. */ - protected function setupDisplayWithEmptyArgumentsAndFields() { + protected function setupDisplayWithEmptyArgumentsAndFields(): void { $this->display->expects($this->any()) ->method('getHandlers') ->willReturnMap([ @@ -858,7 +858,7 @@ class FieldPluginBaseTest extends UnitTestCase { class FieldPluginBaseTestField extends FieldPluginBase { - public function setLinkGenerator(LinkGeneratorInterface $link_generator) { + public function setLinkGenerator(LinkGeneratorInterface $link_generator): void { $this->linkGenerator = $link_generator; } diff --git a/core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php b/core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php index c9c04a97d89..d9f371c41c5 100644 --- a/core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php +++ b/core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php @@ -723,7 +723,7 @@ class FieldTest extends UnitTestCase { * @param $definition * An array with entity type definition data. */ - protected function setupLanguageRenderer(EntityField $handler, $definition) { + protected function setupLanguageRenderer(EntityField $handler, $definition): void { $display_handler = $this->getMockBuilder('\Drupal\views\Plugin\views\display\DisplayPluginBase') ->disableOriginalConstructor() ->getMock(); diff --git a/core/modules/views/tests/src/Unit/Plugin/query/SqlTest.php b/core/modules/views/tests/src/Unit/Plugin/query/SqlTest.php index 6daac05a351..868bfda31c4 100644 --- a/core/modules/views/tests/src/Unit/Plugin/query/SqlTest.php +++ b/core/modules/views/tests/src/Unit/Plugin/query/SqlTest.php @@ -123,7 +123,7 @@ class SqlTest extends UnitTestCase { * @param \Drupal\views\ViewsData $views_data * The views data. */ - protected function setupViewsData(ViewsData $views_data) { + protected function setupViewsData(ViewsData $views_data): void { $container = \Drupal::hasContainer() ? \Drupal::getContainer() : new ContainerBuilder(); $container->set('views.views_data', $views_data); \Drupal::setContainer($container); @@ -135,7 +135,7 @@ class SqlTest extends UnitTestCase { * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager * The entity type manager. */ - protected function setupEntityTypeManager(EntityTypeManagerInterface $entity_type_manager) { + protected function setupEntityTypeManager(EntityTypeManagerInterface $entity_type_manager): void { $container = \Drupal::hasContainer() ? \Drupal::getContainer() : new ContainerBuilder(); $container->set('entity_type.manager', $entity_type_manager); \Drupal::setContainer($container); @@ -316,7 +316,7 @@ class SqlTest extends UnitTestCase { /** * Create a view with a relationship. */ - protected function setupViewWithRelationships(ViewExecutable $view, $base = 'entity_second') { + protected function setupViewWithRelationships(ViewExecutable $view, $base = 'entity_second'): void { // We don't use prophecy, because prophecy enforces methods. $relationship = $this->getMockBuilder(RelationshipPluginBase::class)->disableOriginalConstructor()->getMock(); $relationship->definition['base'] = $base; diff --git a/core/modules/views/tests/src/Unit/ViewsHandlerManagerTest.php b/core/modules/views/tests/src/Unit/ViewsHandlerManagerTest.php index dc7212df449..ae74cb76416 100644 --- a/core/modules/views/tests/src/Unit/ViewsHandlerManagerTest.php +++ b/core/modules/views/tests/src/Unit/ViewsHandlerManagerTest.php @@ -56,7 +56,7 @@ class ViewsHandlerManagerTest extends UnitTestCase { /** * Setups of the plugin factory. */ - protected function setupMockedFactory() { + protected function setupMockedFactory(): void { $this->factory = $this->createMock('Drupal\Component\Plugin\Factory\FactoryInterface'); $reflection = new \ReflectionClass($this->handlerManager); diff --git a/core/modules/views_ui/tests/src/Functional/ArgumentValidatorTest.php b/core/modules/views_ui/tests/src/Functional/ArgumentValidatorTest.php index 241f64944a1..7a8bbcbb8ca 100644 --- a/core/modules/views_ui/tests/src/Functional/ArgumentValidatorTest.php +++ b/core/modules/views_ui/tests/src/Functional/ArgumentValidatorTest.php @@ -52,7 +52,7 @@ class ArgumentValidatorTest extends UITestBase { * @param bool $specify_validation * The form validation. */ - protected function saveArgumentHandlerWithValidationOptions($specify_validation) { + protected function saveArgumentHandlerWithValidationOptions($specify_validation): void { $options = [ 'options[validate][type]' => 'entity---node', 'options[specify_validation]' => $specify_validation, diff --git a/core/modules/views_ui/tests/src/Functional/DefaultViewsTest.php b/core/modules/views_ui/tests/src/Functional/DefaultViewsTest.php index f35bae650ac..9daa58d9760 100644 --- a/core/modules/views_ui/tests/src/Functional/DefaultViewsTest.php +++ b/core/modules/views_ui/tests/src/Functional/DefaultViewsTest.php @@ -219,7 +219,7 @@ class DefaultViewsTest extends UITestBase { * "admin/structure/views/view/glossary/*", then "/glossary/" could be * passed as the expected unique string. */ - public function clickViewsOperationLink($label, $unique_href_part) { + public function clickViewsOperationLink($label, $unique_href_part): void { $this->assertSession()->elementExists('xpath', "//a[normalize-space(text())='$label' and contains(@href, '$unique_href_part')]")->click(); } diff --git a/core/modules/views_ui/tests/src/Functional/DisplayFeedTest.php b/core/modules/views_ui/tests/src/Functional/DisplayFeedTest.php index 9457e9e5d77..d9be7f43a75 100644 --- a/core/modules/views_ui/tests/src/Functional/DisplayFeedTest.php +++ b/core/modules/views_ui/tests/src/Functional/DisplayFeedTest.php @@ -45,7 +45,7 @@ class DisplayFeedTest extends UITestBase { * @param string $view_name * The view name to check against. */ - protected function checkFeedViewUi($view_name) { + protected function checkFeedViewUi($view_name): void { $this->drupalGet('admin/structure/views'); // Verify that the page lists the $view_name view. // Regression test: ViewListBuilder::getDisplayPaths() did not properly diff --git a/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php b/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php index 8b2701b4f92..aad252a3e85 100644 --- a/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php +++ b/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php @@ -53,7 +53,7 @@ class DisplayPathTest extends UITestBase { /** * Tests basic functionality in configuring a view. */ - protected function doBasicPathUITest() { + protected function doBasicPathUITest(): void { $this->drupalGet('admin/structure/views/view/test_view'); // Add a new page display and check the appearing text. @@ -77,7 +77,7 @@ class DisplayPathTest extends UITestBase { /** * Tests that View paths are properly filtered for XSS. */ - public function doPathXssFilterTest() { + public function doPathXssFilterTest(): void { $this->drupalGet('admin/structure/views/view/test_view'); $this->submitForm([], 'Add Page'); $this->drupalGet('admin/structure/views/nojs/display/test_view/page_2/path'); @@ -103,7 +103,7 @@ class DisplayPathTest extends UITestBase { /** * Tests a couple of invalid path patterns. */ - protected function doAdvancedPathsValidationTest() { + protected function doAdvancedPathsValidationTest(): void { $url = 'admin/structure/views/nojs/display/test_view/page_1/path'; $this->drupalGet($url); diff --git a/core/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php b/core/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php index 9e55481c9cd..f5ad7de3ba7 100644 --- a/core/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php +++ b/core/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php @@ -151,7 +151,7 @@ class DisplayTest extends WebDriverTestBase { * @param string $selector * The selector for the element that contains the contextual Rink. */ - protected function toggleContextualTriggerVisibility($selector) { + protected function toggleContextualTriggerVisibility($selector): void { // Hovering over the element itself with should be enough, but does not // work. Manually remove the visually-hidden class. $this->getSession()->executeScript("jQuery('{$selector} .contextual .trigger').toggleClass('visually-hidden');"); @@ -190,7 +190,7 @@ class DisplayTest extends WebDriverTestBase { /** * Helper function for adding interface text translations. */ - private function addTranslation($langcode, $source_string, $translation_string) { + private function addTranslation($langcode, $source_string, $translation_string): void { $storage = \Drupal::service('locale.storage'); $string = $storage->findString(['source' => $source_string]); if (is_null($string)) { diff --git a/core/modules/views_ui/tests/src/FunctionalJavascript/FieldDialogsTest.php b/core/modules/views_ui/tests/src/FunctionalJavascript/FieldDialogsTest.php index edb025c2fa3..7864b7286f7 100644 --- a/core/modules/views_ui/tests/src/FunctionalJavascript/FieldDialogsTest.php +++ b/core/modules/views_ui/tests/src/FunctionalJavascript/FieldDialogsTest.php @@ -77,7 +77,7 @@ class FieldDialogsTest extends WebDriverTestBase { /** * Uses the 'And/Or Rearrange' link for fields to open a dialog. */ - protected function openFieldDialog() { + protected function openFieldDialog(): void { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); $dropbutton = $page->find('css', '.views-ui-display-tab-bucket.field .dropbutton-toggle button'); diff --git a/core/modules/views_ui/tests/src/FunctionalJavascript/FilterCriteriaTest.php b/core/modules/views_ui/tests/src/FunctionalJavascript/FilterCriteriaTest.php index 8dffc12aa43..f2580e7457e 100644 --- a/core/modules/views_ui/tests/src/FunctionalJavascript/FilterCriteriaTest.php +++ b/core/modules/views_ui/tests/src/FunctionalJavascript/FilterCriteriaTest.php @@ -178,7 +178,7 @@ class FilterCriteriaTest extends WebDriverTestBase { /** * Uses the 'And/Or Rearrange' link for filters to open a dialog. */ - protected function openFilterDialog() { + protected function openFilterDialog(): void { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); $dropbutton = $page->find('css', '.views-ui-display-tab-bucket.filter .dropbutton-toggle button'); diff --git a/core/modules/views_ui/tests/src/FunctionalJavascript/PreviewTest.php b/core/modules/views_ui/tests/src/FunctionalJavascript/PreviewTest.php index 13486172808..b759976d714 100644 --- a/core/modules/views_ui/tests/src/FunctionalJavascript/PreviewTest.php +++ b/core/modules/views_ui/tests/src/FunctionalJavascript/PreviewTest.php @@ -66,7 +66,7 @@ class PreviewTest extends WebDriverTestBase { * Because the schema of views_test_data.module is dependent on the test * using it, it cannot be enabled normally. */ - protected function enableViewsTestModule() { + protected function enableViewsTestModule(): void { // Define the schema and views data variable before enabling the test module. \Drupal::state()->set('views_test_data_schema', $this->schemaDefinition()); \Drupal::state()->set('views_test_data_views_data', $this->viewsData()); @@ -259,7 +259,7 @@ class PreviewTest extends WebDriverTestBase { * @param int $row_count * The expected number of rows in the preview. */ - protected function getPreviewAJAX($view_name, $panel_id, $row_count) { + protected function getPreviewAJAX($view_name, $panel_id, $row_count): void { $this->drupalGet('admin/structure/views/view/' . $view_name . '/edit/' . $panel_id); $this->getSession()->getPage()->pressButton('Update preview'); $this->assertSession()->assertWaitOnAjaxRequest(); @@ -274,7 +274,7 @@ class PreviewTest extends WebDriverTestBase { * @param int $row_count * The expected number of rows in the preview. */ - protected function clickPreviewLinkAJAX(NodeElement $element, $row_count) { + protected function clickPreviewLinkAJAX(NodeElement $element, $row_count): void { $element->click(); $this->assertSession()->assertWaitOnAjaxRequest(); $this->assertPreviewAJAX($row_count); diff --git a/core/modules/workspaces/tests/src/Kernel/WorkspaceAssociationTest.php b/core/modules/workspaces/tests/src/Kernel/WorkspaceAssociationTest.php index c641c5dcd57..183d5247bfc 100644 --- a/core/modules/workspaces/tests/src/Kernel/WorkspaceAssociationTest.php +++ b/core/modules/workspaces/tests/src/Kernel/WorkspaceAssociationTest.php @@ -179,7 +179,7 @@ class WorkspaceAssociationTest extends KernelTestBase { * An array of expected values for the initial revisions, i.e. for the * entities that were created in the specified workspace. */ - protected function assertWorkspaceAssociations($entity_type_id, array $expected_latest_revisions, array $expected_all_revisions, array $expected_initial_revisions) { + protected function assertWorkspaceAssociations($entity_type_id, array $expected_latest_revisions, array $expected_all_revisions, array $expected_initial_revisions): void { $workspace_association = \Drupal::service('workspaces.association'); foreach ($expected_latest_revisions as $workspace_id => $expected_tracked_revision_ids) { $tracked_entities = $workspace_association->getTrackedEntities($workspace_id, $entity_type_id); diff --git a/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php b/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php index c9671b0e487..980588d3d53 100644 --- a/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php +++ b/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php @@ -57,7 +57,7 @@ class DemoUmamiProfileTest extends BrowserTestBase { /** * Tests demo_umami profile warnings shown on Status Page. */ - protected function testWarningsOnStatusPage() { + protected function testWarningsOnStatusPage(): void { $account = $this->drupalCreateUser(['administer site configuration']); $this->drupalLogin($account); @@ -145,7 +145,7 @@ class DemoUmamiProfileTest extends BrowserTestBase { /** * Tests that the users can log in with the admin password entered at install. */ - protected function testUser() { + protected function testUser(): void { $password = $this->rootUser->pass_raw; $ids = \Drupal::entityQuery('user') ->accessCheck(FALSE) @@ -192,7 +192,7 @@ class DemoUmamiProfileTest extends BrowserTestBase { /** * Tests that the Umami theme is available on the Appearance page. */ - protected function testAppearance() { + protected function testAppearance(): void { $account = $this->drupalCreateUser(['administer themes']); $this->drupalLogin($account); $assert_session = $this->assertSession(); @@ -204,7 +204,7 @@ class DemoUmamiProfileTest extends BrowserTestBase { /** * Tests that the toolbar warning only appears on the admin pages. */ - protected function testDemonstrationWarningMessage() { + protected function testDemonstrationWarningMessage(): void { $permissions = [ 'access content overview', 'access toolbar', @@ -278,7 +278,7 @@ class DemoUmamiProfileTest extends BrowserTestBase { * * @see drupalCreateUser() */ - protected function drupalLoginWithPassword(AccountInterface $account, $password) { + protected function drupalLoginWithPassword(AccountInterface $account, $password): void { if ($this->loggedInUser) { $this->drupalLogout(); } diff --git a/core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php b/core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php index f2878f2fde2..f01c57b6f93 100644 --- a/core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php +++ b/core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php @@ -36,7 +36,7 @@ class UmamiMultilingualInstallTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpLanguage() { + protected function setUpLanguage(): void { // Place custom local translations in the translations directory to avoid // getting translations from localize.drupal.org. mkdir(DRUPAL_ROOT . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE); diff --git a/core/profiles/standard/tests/src/FunctionalJavascript/StandardPerformanceTest.php b/core/profiles/standard/tests/src/FunctionalJavascript/StandardPerformanceTest.php index 6ea45c1b933..0a100c52d7b 100644 --- a/core/profiles/standard/tests/src/FunctionalJavascript/StandardPerformanceTest.php +++ b/core/profiles/standard/tests/src/FunctionalJavascript/StandardPerformanceTest.php @@ -309,7 +309,7 @@ class StandardPerformanceTest extends PerformanceTestBase { /** * Submit the user login form. */ - protected function submitLoginForm($account) { + protected function submitLoginForm($account): void { $this->submitForm([ 'name' => $account->getAccountName(), 'pass' => $account->passRaw, diff --git a/core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php b/core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php index 86e6f934f24..2a4c41be1c4 100644 --- a/core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php +++ b/core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php @@ -314,7 +314,7 @@ class ComposerProjectTemplatesTest extends ComposerBuildTestBase { * @param string $version * The version under test. */ - protected function makeTestPackage($repository_path, $version) { + protected function makeTestPackage($repository_path, $version): void { $json = <<<JSON { "packages": { @@ -353,7 +353,7 @@ JSON; * @param string $repository_path * The path where to create the test package. */ - protected function makeVendorPackage($repository_path) { + protected function makeVendorPackage($repository_path): void { $root = $this->getDrupalRoot(); $process = $this->executeCommand("composer --working-dir=$root info --format=json"); $this->assertCommandSuccessful(); diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/MessageCommandTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/MessageCommandTest.php index aa1218d6e41..69b49916163 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/MessageCommandTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/MessageCommandTest.php @@ -179,7 +179,7 @@ class MessageCommandTest extends WebDriverTestBase { * @param string $type * The expected type. */ - protected function waitForMessageVisible($message, $selector = '[data-drupal-messages]', $type = 'status') { + protected function waitForMessageVisible($message, $selector = '[data-drupal-messages]', $type = 'status'): void { $this->assertNotEmpty($this->assertSession()->waitForElementVisible('css', $selector . ' .messages--' . $type . ':contains("' . $message . '")')); } @@ -193,7 +193,7 @@ class MessageCommandTest extends WebDriverTestBase { * @param string $type * The expected type. */ - protected function waitForMessageRemoved($message, $selector = '[data-drupal-messages]', $type = 'status') { + protected function waitForMessageRemoved($message, $selector = '[data-drupal-messages]', $type = 'status'): void { $this->assertNotEmpty($this->assertSession()->waitForElementRemoved('css', $selector . ' .messages--' . $type . ':contains("' . $message . '")')); } diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Core/Form/JavascriptStatesTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Core/Form/JavascriptStatesTest.php index 50dc03c150d..8818cfa8933 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Core/Form/JavascriptStatesTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Core/Form/JavascriptStatesTest.php @@ -78,7 +78,7 @@ class JavascriptStatesTest extends WebDriverTestBase { /** * Tests states of elements triggered by a checkbox element. */ - protected function doCheckboxTriggerTests() { + protected function doCheckboxTriggerTests(): void { $this->drupalGet('form-test/javascript-states-form'); $page = $this->getSession()->getPage(); @@ -274,7 +274,7 @@ class JavascriptStatesTest extends WebDriverTestBase { /** * Tests states of elements triggered by a checkboxes element. */ - protected function doCheckboxesTriggerTests() { + protected function doCheckboxesTriggerTests(): void { $this->drupalGet('form-test/javascript-states-form'); $page = $this->getSession()->getPage(); @@ -314,7 +314,7 @@ class JavascriptStatesTest extends WebDriverTestBase { /** * Tests states of elements triggered by a textfield element. */ - protected function doTextfieldTriggerTests() { + protected function doTextfieldTriggerTests(): void { $this->drupalGet('form-test/javascript-states-form'); $page = $this->getSession()->getPage(); @@ -359,7 +359,7 @@ class JavascriptStatesTest extends WebDriverTestBase { /** * Tests states of elements triggered by a radios element. */ - protected function doRadiosTriggerTests() { + protected function doRadiosTriggerTests(): void { $this->drupalGet('form-test/javascript-states-form'); $page = $this->getSession()->getPage(); @@ -422,7 +422,7 @@ class JavascriptStatesTest extends WebDriverTestBase { /** * Tests states of elements triggered by a select element. */ - protected function doSelectTriggerTests() { + protected function doSelectTriggerTests(): void { $this->drupalGet('form-test/javascript-states-form'); $page = $this->getSession()->getPage(); @@ -463,7 +463,7 @@ class JavascriptStatesTest extends WebDriverTestBase { /** * Tests states of elements triggered by a multiple select element. */ - protected function doMultipleSelectTriggerTests() { + protected function doMultipleSelectTriggerTests(): void { $this->drupalGet('form-test/javascript-states-form'); $page = $this->getSession()->getPage(); // Find trigger and target elements. @@ -520,7 +520,7 @@ class JavascriptStatesTest extends WebDriverTestBase { /** * Tests states of elements triggered by multiple elements. */ - protected function doMultipleTriggerTests() { + protected function doMultipleTriggerTests(): void { $this->drupalGet('form-test/javascript-states-form'); $page = $this->getSession()->getPage(); @@ -544,7 +544,7 @@ class JavascriptStatesTest extends WebDriverTestBase { /** * Tests states of radios element triggered by other radios element. */ - protected function doNestedTriggerTests() { + protected function doNestedTriggerTests(): void { $this->drupalGet('form-test/javascript-states-form'); $page = $this->getSession()->getPage(); diff --git a/core/tests/Drupal/FunctionalJavascriptTests/EntityReference/EntityReferenceAutocompleteWidgetTest.php b/core/tests/Drupal/FunctionalJavascriptTests/EntityReference/EntityReferenceAutocompleteWidgetTest.php index ecf77d322b8..e59bcc7acd2 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/EntityReference/EntityReferenceAutocompleteWidgetTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/EntityReference/EntityReferenceAutocompleteWidgetTest.php @@ -207,7 +207,7 @@ class EntityReferenceAutocompleteWidgetTest extends WebDriverTestBase { * @param string $field_name * The field name. */ - protected function doAutocomplete($field_name) { + protected function doAutocomplete($field_name): void { $autocomplete_field = $this->getSession()->getPage()->findField($field_name . '[0][target_id]'); $autocomplete_field->setValue('Test'); $this->getSession()->getDriver()->keyDown($autocomplete_field->getXpath(), ' '); diff --git a/core/tests/Drupal/FunctionalJavascriptTests/JavascriptErrorsTest.php b/core/tests/Drupal/FunctionalJavascriptTests/JavascriptErrorsTest.php index 4fe9624a66d..3fb35552340 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/JavascriptErrorsTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/JavascriptErrorsTest.php @@ -63,7 +63,7 @@ class JavascriptErrorsTest extends WebDriverTestBase { * * @postCondition */ - public function clearErrorLog() { + public function clearErrorLog(): void { $this->getSession()->executeScript("sessionStorage.removeItem('js_testing_log_test.errors')"); } diff --git a/core/tests/Drupal/FunctionalJavascriptTests/TableDrag/TableDragTest.php b/core/tests/Drupal/FunctionalJavascriptTests/TableDrag/TableDragTest.php index 0a3dd44e6ab..6d514865042 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/TableDrag/TableDragTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/TableDrag/TableDragTest.php @@ -589,7 +589,7 @@ class TableDragTest extends WebDriverTestBase { * @param int $repeat * (optional) How many times to press the arrow button. Defaults to 1. */ - protected function moveRowWithKeyboard(NodeElement $row, $arrow, $repeat = 1) { + protected function moveRowWithKeyboard(NodeElement $row, $arrow, $repeat = 1): void { $keys = [ 'left' => 37, 'right' => 39, @@ -627,7 +627,7 @@ class TableDragTest extends WebDriverTestBase { * @throws \Exception * Thrown when the class is not added successfully to the handle. */ - protected function markRowHandleForDragging(NodeElement $handle) { + protected function markRowHandleForDragging(NodeElement $handle): void { $class = self::DRAGGING_CSS_CLASS; $script = <<<JS document.evaluate("{$handle->getXpath()}", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null) @@ -653,7 +653,7 @@ JS; * @throws \Exception * Thrown when the dragging operations are not completed on time. */ - protected function waitUntilDraggingCompleted(NodeElement $handle) { + protected function waitUntilDraggingCompleted(NodeElement $handle): void { $class_removed = $this->getSession()->getPage()->waitFor(1, function () use ($handle) { return !$handle->hasClass($this::DRAGGING_CSS_CLASS); }); diff --git a/core/tests/Drupal/FunctionalTests/BrowserTestBaseUserAgentTest.php b/core/tests/Drupal/FunctionalTests/BrowserTestBaseUserAgentTest.php index ac65e81abe0..cf48655458b 100644 --- a/core/tests/Drupal/FunctionalTests/BrowserTestBaseUserAgentTest.php +++ b/core/tests/Drupal/FunctionalTests/BrowserTestBaseUserAgentTest.php @@ -62,7 +62,7 @@ class BrowserTestBaseUserAgentTest extends BrowserTestBase { /** * {@inheritdoc} */ - protected function prepareRequest() { + protected function prepareRequest(): void { $session = $this->getSession(); if ($this->agent) { $session->setCookie('SIMPLETEST_USER_AGENT', $this->agent); diff --git a/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileExistingSettingsTest.php b/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileExistingSettingsTest.php index ae9645dd0bd..79b9209e848 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileExistingSettingsTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileExistingSettingsTest.php @@ -31,7 +31,7 @@ class DistributionProfileExistingSettingsTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); $this->info = [ 'type' => 'profile', @@ -80,7 +80,7 @@ class DistributionProfileExistingSettingsTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpLanguage() { + protected function setUpLanguage(): void { // Make settings file not writable. $filename = $this->siteDirectory . '/settings.php'; // Make the settings file read-only. @@ -100,14 +100,14 @@ class DistributionProfileExistingSettingsTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpProfile() { + protected function setUpProfile(): void { // This step is skipped, because there is a distribution profile. } /** * {@inheritdoc} */ - protected function setUpSettings() { + protected function setUpSettings(): void { // This step should not appear, since settings.php is fully configured // already. } diff --git a/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTest.php b/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTest.php index fbbe1b2728e..76868fb17f8 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTest.php @@ -25,7 +25,7 @@ class DistributionProfileTest extends InstallerTestBase { */ protected $defaultTheme = 'stark'; - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); $this->info = [ 'type' => 'profile', @@ -49,7 +49,7 @@ class DistributionProfileTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpLanguage() { + protected function setUpLanguage(): void { // Verify that the distribution name appears. $this->assertSession()->pageTextContains($this->info['distribution']['name']); // Verify that the distribution name is used in the site title. @@ -65,7 +65,7 @@ class DistributionProfileTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpProfile() { + protected function setUpProfile(): void { // This step is skipped, because there is a distribution profile. } diff --git a/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php b/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php index 0e58711f4e3..8de136ee79b 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php @@ -35,7 +35,7 @@ class DistributionProfileTranslationQueryTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); $this->info = [ 'type' => 'profile', @@ -62,7 +62,7 @@ class DistributionProfileTranslationQueryTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function visitInstaller() { + protected function visitInstaller(): void { // Pass a different language code than the one set in the distribution // profile. This distribution language should still be used. // The unrouted URL assembler does not exist at this point, so we build the @@ -73,7 +73,7 @@ class DistributionProfileTranslationQueryTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpLanguage() { + protected function setUpLanguage(): void { // This step is skipped, because the distribution profile uses a fixed // language. } @@ -81,14 +81,14 @@ class DistributionProfileTranslationQueryTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpProfile() { + protected function setUpProfile(): void { // This step is skipped, because there is a distribution profile. } /** * {@inheritdoc} */ - protected function setUpSettings() { + protected function setUpSettings(): void { // The language should have been automatically detected, all following // screens should be translated already. $this->assertSession()->buttonExists('Save and continue de'); diff --git a/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php b/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php index 3bb2b27995d..b955773ba06 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php @@ -35,7 +35,7 @@ class DistributionProfileTranslationTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); // We set core_version_requirement to '*' for the test so that it does not // need to be updated between major versions. @@ -64,7 +64,7 @@ class DistributionProfileTranslationTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpLanguage() { + protected function setUpLanguage(): void { // This step is skipped, because the distribution profile uses a fixed // language. } @@ -72,14 +72,14 @@ class DistributionProfileTranslationTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpProfile() { + protected function setUpProfile(): void { // This step is skipped, because there is a distribution profile. } /** * {@inheritdoc} */ - protected function setUpSettings() { + protected function setUpSettings(): void { // The language should have been automatically detected, all following // screens should be translated already. $this->assertSession()->buttonExists('Save and continue de'); diff --git a/core/tests/Drupal/FunctionalTests/Installer/DrupalFlushAllCachesInInstallerTest.php b/core/tests/Drupal/FunctionalTests/Installer/DrupalFlushAllCachesInInstallerTest.php index fd868ee97b5..22165f456c4 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/DrupalFlushAllCachesInInstallerTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/DrupalFlushAllCachesInInstallerTest.php @@ -27,7 +27,7 @@ class DrupalFlushAllCachesInInstallerTest extends BrowserTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); $info = [ 'type' => 'profile', diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabaseCredentialsTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabaseCredentialsTest.php index aa80899b826..d9e47f150ee 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabaseCredentialsTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabaseCredentialsTest.php @@ -21,7 +21,7 @@ class InstallerBrokenDatabaseCredentialsTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); // Pre-configure database credentials in settings.php. $connection_info = Database::getConnectionInfo(); @@ -42,14 +42,14 @@ class InstallerBrokenDatabaseCredentialsTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpSettings() { + protected function setUpSettings(): void { // This form will never be reached. } /** * {@inheritdoc} */ - protected function setUpSite() { + protected function setUpSite(): void { // This form will never be reached. } diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabasePortSettingsTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabasePortSettingsTest.php index 6c706832f06..b766e8e6c8e 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabasePortSettingsTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabasePortSettingsTest.php @@ -21,7 +21,7 @@ class InstallerBrokenDatabasePortSettingsTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); // Pre-configure database credentials in settings.php. $connection_info = Database::getConnectionInfo(); @@ -42,14 +42,14 @@ class InstallerBrokenDatabasePortSettingsTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpSettings() { + protected function setUpSettings(): void { // This form will never be reached. } /** * {@inheritdoc} */ - protected function setUpSite() { + protected function setUpSite(): void { // This form will never be reached. } diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectorySetNoDirectoryErrorTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectorySetNoDirectoryErrorTest.php index b38dc25af6f..11803c1b83c 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectorySetNoDirectoryErrorTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectorySetNoDirectoryErrorTest.php @@ -28,7 +28,7 @@ class InstallerConfigDirectorySetNoDirectoryErrorTest extends InstallerTestBase /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); $this->configDirectory = $this->publicFilesDirectory . '/config_' . Crypt::randomBytesBase64(); $this->settings['settings']['config_sync_directory'] = (object) [ @@ -44,7 +44,7 @@ class InstallerConfigDirectorySetNoDirectoryErrorTest extends InstallerTestBase /** * Installer step: Configure settings. */ - protected function setUpSettings() { + protected function setUpSettings(): void { // This step should not appear as we had a failure prior to the settings // screen. } @@ -52,7 +52,7 @@ class InstallerConfigDirectorySetNoDirectoryErrorTest extends InstallerTestBase /** * {@inheritdoc} */ - protected function setUpRequirementsProblem() { + protected function setUpRequirementsProblem(): void { // The parent method asserts that there are no requirements errors, but // this test expects a requirements error in the test method below. // Therefore, we override this method to suppress the parent's assertions. @@ -61,7 +61,7 @@ class InstallerConfigDirectorySetNoDirectoryErrorTest extends InstallerTestBase /** * {@inheritdoc} */ - protected function setUpSite() { + protected function setUpSite(): void { // This step should not appear as we had a failure prior to the settings // screen. } diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectorySetNoDirectoryTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectorySetNoDirectoryTest.php index b8149ee6529..fc01c2eb9a9 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectorySetNoDirectoryTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectorySetNoDirectoryTest.php @@ -28,7 +28,7 @@ class InstallerConfigDirectorySetNoDirectoryTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); $this->syncDirectory = $this->publicFilesDirectory . '/config_' . Crypt::randomBytesBase64() . '/sync'; $this->settings['settings']['config_sync_directory'] = (object) [ diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerDatabaseErrorMessagesTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerDatabaseErrorMessagesTest.php index ab7258b4beb..f97483dd610 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerDatabaseErrorMessagesTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerDatabaseErrorMessagesTest.php @@ -21,7 +21,7 @@ class InstallerDatabaseErrorMessagesTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpSettings() { + protected function setUpSettings(): void { // We are creating a table here to force an error in the installer because // it will try and create the drupal_install_test table as this is part of // the standard database tests performed by the installer in @@ -43,7 +43,7 @@ class InstallerDatabaseErrorMessagesTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpSite() { + protected function setUpSite(): void { // This step should not appear as we had a failure on the settings screen. } diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerEmptySettingsTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerEmptySettingsTest.php index 1b2ee2cb249..2ccd47a0274 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerEmptySettingsTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerEmptySettingsTest.php @@ -19,7 +19,7 @@ class InstallerEmptySettingsTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); // Create an empty settings.php file. $path = $this->root . DIRECTORY_SEPARATOR . $this->siteDirectory; diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php index 2c593192293..879039b291c 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php @@ -21,7 +21,7 @@ class InstallerExistingBrokenDatabaseSettingsTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); // Pre-configure database credentials in settings.php. $connection_info = Database::getConnectionInfo(); @@ -50,14 +50,14 @@ class InstallerExistingBrokenDatabaseSettingsTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpSettings() { + protected function setUpSettings(): void { // This form will never be reached. } /** * {@inheritdoc} */ - protected function setUpRequirementsProblem() { + protected function setUpRequirementsProblem(): void { // The parent method asserts that there are no requirements errors, but // this test expects a requirements error in the test method below. // Therefore, we override this method to suppress the parent's assertions. @@ -66,7 +66,7 @@ class InstallerExistingBrokenDatabaseSettingsTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpSite() { + protected function setUpSite(): void { // This form will never be reached. } diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigDirectoryTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigDirectoryTest.php index e391e0f6692..89f7b491547 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigDirectoryTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigDirectoryTest.php @@ -26,7 +26,7 @@ class InstallerExistingConfigDirectoryTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); mkdir($this->root . DIRECTORY_SEPARATOR . $this->siteDirectory . '/config_read_only', 0444); $this->expectedFilePerms = fileperms($this->siteDirectory . '/config_read_only'); diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigExistingSettingsTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigExistingSettingsTest.php index 089fdd93680..a5553bd1fb4 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigExistingSettingsTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigExistingSettingsTest.php @@ -19,7 +19,7 @@ class InstallerExistingConfigExistingSettingsTest extends InstallerExistingConfi * Partially configures a preexisting settings.php file before invoking the * interactive installer. */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); // Pre-configure hash salt. // Any string is valid, so simply use the class name of this test. diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoConfigTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoConfigTest.php index 2d5ac5c1c37..22be7c48e39 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoConfigTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoConfigTest.php @@ -21,7 +21,7 @@ class InstallerExistingConfigNoConfigTest extends InstallerConfigDirectoryTestBa /** * Final installer step: Configure site. */ - protected function setUpSite() { + protected function setUpSite(): void { // There are errors therefore there is nothing to do here. } diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php index 4af5caa3d17..4022db2fcef 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php @@ -14,7 +14,7 @@ class InstallerExistingConfigNoSystemSiteTest extends InstallerConfigDirectoryTe /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); // File API functions are not available yet. unlink($this->siteDirectory . '/profiles/' . $this->profile . '/config/sync/system.site.yml'); @@ -23,7 +23,7 @@ class InstallerExistingConfigNoSystemSiteTest extends InstallerConfigDirectoryTe /** * {@inheritdoc} */ - public function setUpSite() { + public function setUpSite(): void { // There are errors. Therefore, there is nothing to do here. } diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php index d1a9bba36c3..4d1bf067425 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php @@ -50,7 +50,7 @@ class InstallerExistingConfigSyncDirectoryMultilingualTest extends InstallerConf /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); // Place custom local translations in the translations directory and fix up // configuration. diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileMismatchTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileMismatchTest.php index e63254cd338..7f9a0ecf60d 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileMismatchTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileMismatchTest.php @@ -36,13 +36,13 @@ class InstallerExistingConfigSyncDirectoryProfileMismatchTest extends InstallerC /** * Installer step: Configure settings. */ - protected function setUpSettings() { + protected function setUpSettings(): void { // Cause a profile mismatch by hacking the URL. $this->drupalGet(str_replace($this->profile, 'minimal', $this->getUrl())); parent::setUpSettings(); } - protected function setUpSite() { + protected function setUpSite(): void { // This step will not occur because there is an error. } diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php index ac3860b4f8f..487fa70ac1d 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php @@ -16,7 +16,7 @@ class InstallerExistingConfigTest extends InstallerConfigDirectoryTestBase { /** * {@inheritdoc} */ - protected function setUpLanguage() { + protected function setUpLanguage(): void { // Place a custom local translation in the translations directory. mkdir($this->root . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE); file_put_contents($this->root . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.fr.po', "msgid \"\"\nmsgstr \"\"\nmsgid \"Save and continue\"\nmsgstr \"Enregistrer et continuer\""); @@ -26,7 +26,7 @@ class InstallerExistingConfigTest extends InstallerConfigDirectoryTestBase { /** * {@inheritdoc} */ - public function setUpSettings() { + public function setUpSettings(): void { // The configuration is from a site installed in French. // So after selecting the profile the installer detects that the site must // be installed in French, thus we change the button translation. diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingDatabaseSettingsTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingDatabaseSettingsTest.php index 7d896c1e1d2..8717249fb67 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingDatabaseSettingsTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingDatabaseSettingsTest.php @@ -21,7 +21,7 @@ class InstallerExistingDatabaseSettingsTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); // Pre-configure database credentials in settings.php. $connection_info = Database::getConnectionInfo(); @@ -41,7 +41,7 @@ class InstallerExistingDatabaseSettingsTest extends InstallerTestBase { * contains a valid database connection already (but e.g. no config * directories yet). */ - protected function setUpSettings() { + protected function setUpSettings(): void { // All database settings should be pre-configured, except password. $values = $this->parameters['forms']['install_settings_form']; $driver = $values['driver']; diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsNoProfileTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsNoProfileTest.php index 03dc683e43c..3c075895734 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsNoProfileTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsNoProfileTest.php @@ -26,7 +26,7 @@ class InstallerExistingSettingsNoProfileTest extends InstallerTestBase { * Configures a preexisting settings.php file without an install_profile * setting before invoking the interactive installer. */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); // Pre-configure hash salt. @@ -57,7 +57,7 @@ class InstallerExistingSettingsNoProfileTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpSettings() { + protected function setUpSettings(): void { // This step should not appear, since settings.php is fully configured // already. } diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsTest.php index 8a44b6b70e6..3958b82396a 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsTest.php @@ -26,7 +26,7 @@ class InstallerExistingSettingsTest extends InstallerTestBase { * Fully configures a preexisting settings.php file before invoking the * interactive installer. */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); // Pre-configure hash salt. // Any string is valid, so simply use the class name of this test. @@ -59,7 +59,7 @@ class InstallerExistingSettingsTest extends InstallerTestBase { /** * Visits the interactive installer. */ - protected function visitInstaller() { + protected function visitInstaller(): void { // Should redirect to the installer. $this->drupalGet($GLOBALS['base_url']); // Ensure no database tables have been created yet. @@ -70,7 +70,7 @@ class InstallerExistingSettingsTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpSettings() { + protected function setUpSettings(): void { // This step should not appear, since settings.php is fully configured // already. } diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerLanguageDirectionTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerLanguageDirectionTest.php index 224e0d0a353..4e401add43a 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerLanguageDirectionTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerLanguageDirectionTest.php @@ -28,7 +28,7 @@ class InstallerLanguageDirectionTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpLanguage() { + protected function setUpLanguage(): void { // Place a custom local translation in the translations directory. mkdir($this->root . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE); file_put_contents($this->root . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.ar.po', "msgid \"\"\nmsgstr \"\"\nmsgid \"Save and continue\"\nmsgstr \"Save and continue Arabic\""); diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerLanguagePageTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerLanguagePageTest.php index a1e1c1597dd..18c8c74fa94 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerLanguagePageTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerLanguagePageTest.php @@ -23,7 +23,7 @@ class InstallerLanguagePageTest extends InstallerTestBase { /** * Installer step: Select language. */ - protected function setUpLanguage() { + protected function setUpLanguage(): void { // Place a custom local translation in the translations directory. mkdir($this->root . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE); touch($this->root . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.xoxo.po'); diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerNonDefaultDatabaseDriverTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerNonDefaultDatabaseDriverTest.php index 0eada97303b..a86621f83a2 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerNonDefaultDatabaseDriverTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerNonDefaultDatabaseDriverTest.php @@ -32,7 +32,7 @@ class InstallerNonDefaultDatabaseDriverTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpSettings() { + protected function setUpSettings(): void { $driver = Database::getConnection()->driver(); if (!in_array($driver, ['mysql', 'pgsql'])) { $this->markTestSkipped("This test does not support the {$driver} database driver."); diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerNonEnglishProfileWithoutLocaleModuleTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerNonEnglishProfileWithoutLocaleModuleTest.php index b5152b56e69..904130c3bdf 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerNonEnglishProfileWithoutLocaleModuleTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerNonEnglishProfileWithoutLocaleModuleTest.php @@ -33,7 +33,7 @@ class InstallerNonEnglishProfileWithoutLocaleModuleTest extends InstallerTestBas /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); // Create a self::PROFILE testing profile that depends on the 'language' diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerPerformanceTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerPerformanceTest.php index 37622c5e282..697bf2773ac 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerPerformanceTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerPerformanceTest.php @@ -28,7 +28,7 @@ class InstallerPerformanceTest extends BrowserTestBase { /** * {@inheritdoc} */ - protected function prepareSettings() { + protected function prepareSettings(): void { parent::prepareSettings(); PerformanceTestRecorder::registerService($this->siteDirectory . '/services.yml', FALSE); } diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerProfileRequirementsTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerProfileRequirementsTest.php index f69a5ff0bb2..f2d498d8d4e 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerProfileRequirementsTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerProfileRequirementsTest.php @@ -24,14 +24,14 @@ class InstallerProfileRequirementsTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpSettings() { + protected function setUpSettings(): void { // This form will never be reached. } /** * {@inheritdoc} */ - protected function setUpRequirementsProblem() { + protected function setUpRequirementsProblem(): void { // The parent method asserts that there are no requirements errors, but // this test expects a requirements error in the test method below. // Therefore, we override this method to suppress the parent's assertions. @@ -40,7 +40,7 @@ class InstallerProfileRequirementsTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpSite() { + protected function setUpSite(): void { // This form will never be reached. } diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerRouterTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerRouterTest.php index 127ef7f919e..e0c70d436fc 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerRouterTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerRouterTest.php @@ -28,7 +28,7 @@ class InstallerRouterTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); $info = [ 'type' => 'profile', diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerSkipPermissionHardeningTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerSkipPermissionHardeningTest.php index fe585c118f4..ef2d4063370 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerSkipPermissionHardeningTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerSkipPermissionHardeningTest.php @@ -19,7 +19,7 @@ class InstallerSkipPermissionHardeningTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); $this->settings['settings']['skip_permissions_hardening'] = (object) ['value' => TRUE, 'required' => TRUE]; } @@ -27,7 +27,7 @@ class InstallerSkipPermissionHardeningTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpSite() { + protected function setUpSite(): void { $site_directory = $this->container->getParameter('app.root') . '/' . $this->siteDirectory; $this->assertDirectoryIsWritable($site_directory); $this->assertFileIsWritable($site_directory . '/settings.php'); diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php index 2793e16c9ef..d9aa51ae0e9 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php @@ -54,7 +54,7 @@ class InstallerTest extends InstallerTestBase { /** * Installer step: Select language. */ - protected function setUpLanguage() { + protected function setUpLanguage(): void { // Test that \Drupal\Core\Render\BareHtmlPageRenderer adds assets and // metatags as expected to the first page of the installer. $this->assertSession()->responseContains("css/components/button.css"); @@ -69,7 +69,7 @@ class InstallerTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpProfile() { + protected function setUpProfile(): void { $settings_services_file = DRUPAL_ROOT . '/sites/default/default.services.yml'; // Copy the testing-specific service overrides in place. copy($settings_services_file, $this->siteDirectory . '/services.yml'); @@ -86,7 +86,7 @@ class InstallerTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpSettings() { + protected function setUpSettings(): void { // Assert that the expected title is present. $this->assertEquals('Database configuration', $this->cssSelect('main h2')[0]->getText()); @@ -101,7 +101,7 @@ class InstallerTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpSite() { + protected function setUpSite(): void { // Assert that the expected title is present. $this->assertEquals('Configure site', $this->cssSelect('main h2')[0]->getText()); @@ -117,7 +117,7 @@ class InstallerTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function visitInstaller() { + protected function visitInstaller(): void { parent::visitInstaller(); // Assert the title is correct and has the title suffix. diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationExistingFileTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationExistingFileTest.php index 77d4153f7d0..23633165b5c 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationExistingFileTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationExistingFileTest.php @@ -31,7 +31,7 @@ class InstallerTranslationExistingFileTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpLanguage() { + protected function setUpLanguage(): void { // Place custom local translations in the translations directory. mkdir(DRUPAL_ROOT . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE); $po_contents = <<<PO @@ -48,7 +48,7 @@ PO; /** * {@inheritdoc} */ - protected function setUpProfile() { + protected function setUpProfile(): void { // Do nothing, because this test only tests the language installation // step's results. } @@ -56,7 +56,7 @@ PO; /** * {@inheritdoc} */ - protected function setUpSettings() { + protected function setUpSettings(): void { // Do nothing, because this test only tests the language installation // step's results. } @@ -64,7 +64,7 @@ PO; /** * {@inheritdoc} */ - protected function setUpRequirementsProblem() { + protected function setUpRequirementsProblem(): void { // Do nothing, because this test only tests the language installation // step's results. } @@ -72,7 +72,7 @@ PO; /** * {@inheritdoc} */ - protected function setUpSite() { + protected function setUpSite(): void { // Do nothing, because this test only tests the language installation // step's results. } diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageForeignTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageForeignTest.php index 79b6506979a..052ae5e01f0 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageForeignTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageForeignTest.php @@ -26,7 +26,7 @@ class InstallerTranslationMultipleLanguageForeignTest extends InstallerTranslati /** * {@inheritdoc} */ - protected function setUpLanguage() { + protected function setUpLanguage(): void { parent::setUpLanguage(); $this->translations['Save and continue'] = 'Save and continue de'; } diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageNonInteractiveTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageNonInteractiveTest.php index 9463ef7090c..8a47151e7d4 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageNonInteractiveTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageNonInteractiveTest.php @@ -30,7 +30,7 @@ class InstallerTranslationMultipleLanguageNonInteractiveTest extends BrowserTest /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); // Place custom local translations in the translations directory. mkdir(DRUPAL_ROOT . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE); @@ -130,7 +130,7 @@ PO; /** * Helper function to verify that the expected strings are translated. */ - protected function verifyImportedStringsTranslated() { + protected function verifyImportedStringsTranslated(): void { $test_samples = ['Save and continue', 'Anonymous', 'Language']; $langcodes = ['de', 'es']; diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php index 0f9f0676cef..b7cf373a332 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php @@ -26,7 +26,7 @@ class InstallerTranslationMultipleLanguageTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpLanguage() { + protected function setUpLanguage(): void { // Place custom local translations in the translations directory. mkdir(DRUPAL_ROOT . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE); file_put_contents(DRUPAL_ROOT . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.de.po', $this->getPo('de')); @@ -167,7 +167,7 @@ PO; /** * Helper function to verify that the expected strings are translated. */ - protected function verifyImportedStringsTranslated() { + protected function verifyImportedStringsTranslated(): void { $test_samples = ['Save and continue', 'Anonymous', 'Language']; $langcodes = ['de', 'es']; diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationNonStandardFilenamesTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationNonStandardFilenamesTest.php index 748e7dccdb9..f8be98693f5 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationNonStandardFilenamesTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationNonStandardFilenamesTest.php @@ -16,7 +16,7 @@ class InstallerTranslationNonStandardFilenamesTest extends InstallerTranslationM /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { BrowserTestBase::prepareEnvironment(); // Place custom local translations in the translations directory. mkdir(DRUPAL_ROOT . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE); @@ -27,7 +27,7 @@ class InstallerTranslationNonStandardFilenamesTest extends InstallerTranslationM /** * {@inheritdoc} */ - protected function prepareSettings() { + protected function prepareSettings(): void { parent::prepareSettings(); $settings['config']['locale.settings']['translation']['default_filename'] = (object) [ 'value' => '%project.%language.po', diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationQueryTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationQueryTest.php index 03b42c2ffd3..5cacdc594b9 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationQueryTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationQueryTest.php @@ -28,7 +28,7 @@ class InstallerTranslationQueryTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function visitInstaller() { + protected function visitInstaller(): void { // Place a custom local translation in the translations directory. mkdir($this->root . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE); file_put_contents($this->root . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.de.po', $this->getPo('de')); @@ -49,7 +49,7 @@ class InstallerTranslationQueryTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpLanguage() { + protected function setUpLanguage(): void { // The language was preset by passing a query parameter in the URL, so no // explicit language selection is necessary. } diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationTest.php index 7cc32bd6e08..c0313aab7e6 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationTest.php @@ -29,7 +29,7 @@ class InstallerTranslationTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpLanguage() { + protected function setUpLanguage(): void { // Place a custom local translation in the translations directory. mkdir($this->root . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE); file_put_contents($this->root . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.de.po', $this->getPo('de')); @@ -48,7 +48,7 @@ class InstallerTranslationTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpSettings() { + protected function setUpSettings(): void { // We are creating a table here to force an error in the installer because // it will try and create the drupal_install_test table as this is part of // the standard database tests performed by the installer in diff --git a/core/tests/Drupal/FunctionalTests/Installer/MultipleDistributionsProfileTest.php b/core/tests/Drupal/FunctionalTests/Installer/MultipleDistributionsProfileTest.php index bcab6db5caf..60dc1ffdae0 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/MultipleDistributionsProfileTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/MultipleDistributionsProfileTest.php @@ -28,7 +28,7 @@ class MultipleDistributionsProfileTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); // Create two distributions. foreach (['distribution_one', 'distribution_two'] as $name) { @@ -55,7 +55,7 @@ class MultipleDistributionsProfileTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpLanguage() { + protected function setUpLanguage(): void { // Verify that the distribution name appears. $this->assertSession()->pageTextContains('distribution_one'); // Verify that the requested theme is used. @@ -69,7 +69,7 @@ class MultipleDistributionsProfileTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpProfile() { + protected function setUpProfile(): void { // This step is skipped, because there is a distribution profile. } diff --git a/core/tests/Drupal/FunctionalTests/Installer/SingleVisibleProfileTest.php b/core/tests/Drupal/FunctionalTests/Installer/SingleVisibleProfileTest.php index 7f2d7c35fa8..35761c78069 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/SingleVisibleProfileTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/SingleVisibleProfileTest.php @@ -30,7 +30,7 @@ class SingleVisibleProfileTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); $profiles = ['standard', 'demo_umami']; foreach ($profiles as $profile) { @@ -50,7 +50,7 @@ class SingleVisibleProfileTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpProfile() { + protected function setUpProfile(): void { // This step is skipped, because there is only one visible profile. } diff --git a/core/tests/Drupal/FunctionalTests/Installer/StandardInstallerTest.php b/core/tests/Drupal/FunctionalTests/Installer/StandardInstallerTest.php index ac997d6ab1e..20714d76e9c 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/StandardInstallerTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/StandardInstallerTest.php @@ -28,7 +28,7 @@ class StandardInstallerTest extends ConfigAfterInstallerTestBase { /** * {@inheritdoc} */ - protected function setUpSite() { + protected function setUpSite(): void { // Test that the correct theme is being used. $this->assertSession()->responseNotContains('olivero'); $this->assertSession()->responseContains('css/theme/install-page.css'); diff --git a/core/tests/Drupal/FunctionalTests/Installer/SuperUserAccessInstallTest.php b/core/tests/Drupal/FunctionalTests/Installer/SuperUserAccessInstallTest.php index dd99caf01fd..527a4326d26 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/SuperUserAccessInstallTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/SuperUserAccessInstallTest.php @@ -34,7 +34,7 @@ class SuperUserAccessInstallTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function prepareEnvironment() { + protected function prepareEnvironment(): void { parent::prepareEnvironment(); $info = [ 'type' => 'profile', @@ -56,7 +56,7 @@ class SuperUserAccessInstallTest extends InstallerTestBase { /** * {@inheritdoc} */ - protected function setUpSite() { + protected function setUpSite(): void { if ($this->providedData()['super_user_policy'] === FALSE && empty($this->providedData()['expected_roles'])) { $this->assertSession()->pageTextContains('Site account'); $this->assertSession()->pageTextNotContains('Site maintenance account'); diff --git a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php index 5957f9f951a..b8c5dbde1ee 100644 --- a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php +++ b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php @@ -22,7 +22,7 @@ class UpdatePathTestBaseTest extends UpdatePathTestBase { /** * {@inheritdoc} */ - protected function setDatabaseDumpFiles() { + protected function setDatabaseDumpFiles(): void { $this->databaseDumpFiles[] = __DIR__ . '/../../../../modules/system/tests/fixtures/update/drupal-10.3.0.bare.standard.php.gz'; $this->databaseDumpFiles[] = __DIR__ . '/../../../../modules/system/tests/fixtures/update/drupal-8.update-test-schema-enabled.php'; $this->databaseDumpFiles[] = __DIR__ . '/../../../../modules/system/tests/fixtures/update/drupal-8.update-test-semver-update-n-enabled.php'; diff --git a/core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php b/core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php index 853d3e3afe0..c628f661f39 100644 --- a/core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php +++ b/core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php @@ -192,7 +192,7 @@ class DefaultConfigTest extends KernelTestBase { * @param string $type * The extension type to test. */ - protected function doTestsOnConfigStorage(StorageInterface $default_config_storage, $extension, string $type = 'module') { + protected function doTestsOnConfigStorage(StorageInterface $default_config_storage, $extension, string $type = 'module'): void { /** @var \Drupal\Core\Config\ConfigManagerInterface $config_manager */ $config_manager = $this->container->get('config.manager'); diff --git a/core/tests/Drupal/KernelTests/Core/Asset/LibraryDiscoveryIntegrationTest.php b/core/tests/Drupal/KernelTests/Core/Asset/LibraryDiscoveryIntegrationTest.php index 9967b1f5521..c8212ff05a4 100644 --- a/core/tests/Drupal/KernelTests/Core/Asset/LibraryDiscoveryIntegrationTest.php +++ b/core/tests/Drupal/KernelTests/Core/Asset/LibraryDiscoveryIntegrationTest.php @@ -274,7 +274,7 @@ class LibraryDiscoveryIntegrationTest extends KernelTestBase { * @param string $theme_name * The name of the theme to be activated. */ - protected function activateTheme($theme_name) { + protected function activateTheme($theme_name): void { $this->container->get('theme_installer')->install([$theme_name]); /** @var \Drupal\Core\Theme\ThemeInitializationInterface $theme_initializer */ diff --git a/core/tests/Drupal/KernelTests/Core/Asset/ResolvedLibraryDefinitionsFilesMatchTest.php b/core/tests/Drupal/KernelTests/Core/Asset/ResolvedLibraryDefinitionsFilesMatchTest.php index 186121a181f..b4fdc8fc853 100644 --- a/core/tests/Drupal/KernelTests/Core/Asset/ResolvedLibraryDefinitionsFilesMatchTest.php +++ b/core/tests/Drupal/KernelTests/Core/Asset/ResolvedLibraryDefinitionsFilesMatchTest.php @@ -177,7 +177,7 @@ class ResolvedLibraryDefinitionsFilesMatchTest extends KernelTestBase { * An array of library definitions, keyed by extension, then by library, and * so on. */ - protected function verifyLibraryFilesExist($library_definitions) { + protected function verifyLibraryFilesExist($library_definitions): void { foreach ($library_definitions as $extension => $libraries) { foreach ($libraries as $library_name => $library) { if (in_array("$extension/$library_name", $this->librariesToSkip)) { diff --git a/core/tests/Drupal/KernelTests/Core/Bootstrap/ShutdownFunctionTest.php b/core/tests/Drupal/KernelTests/Core/Bootstrap/ShutdownFunctionTest.php index ab4223b0193..df1d020dea4 100644 --- a/core/tests/Drupal/KernelTests/Core/Bootstrap/ShutdownFunctionTest.php +++ b/core/tests/Drupal/KernelTests/Core/Bootstrap/ShutdownFunctionTest.php @@ -51,7 +51,7 @@ class ShutdownFunctionTest extends KernelTestBase { /** * Tests shutdown functions by registering another shutdown function. */ - public function shutdownOne() { + public function shutdownOne(): void { drupal_register_shutdown_function([$this, 'shutdownTwo']); $this->shutDownOneCalled = TRUE; } @@ -59,7 +59,7 @@ class ShutdownFunctionTest extends KernelTestBase { /** * Tests shutdown functions by being registered during shutdown. */ - public function shutdownTwo() { + public function shutdownTwo(): void { $this->shutDownTwoCalled = TRUE; } diff --git a/core/tests/Drupal/KernelTests/Core/Cache/CacheCollectorTest.php b/core/tests/Drupal/KernelTests/Core/Cache/CacheCollectorTest.php index a6e24cddbd1..f957c63480c 100644 --- a/core/tests/Drupal/KernelTests/Core/Cache/CacheCollectorTest.php +++ b/core/tests/Drupal/KernelTests/Core/Cache/CacheCollectorTest.php @@ -20,7 +20,7 @@ class CacheCollectorTest extends KernelTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); // Change container to database cache backends. $container diff --git a/core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTagTest.php b/core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTagTest.php index 369e18b4536..30483c7391e 100644 --- a/core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTagTest.php +++ b/core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTagTest.php @@ -25,7 +25,7 @@ class DatabaseBackendTagTest extends KernelTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); // Change container to database cache backends. $container diff --git a/core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php b/core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php index 0414b6e6fd1..9ff9b1d488c 100644 --- a/core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php +++ b/core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php @@ -50,7 +50,7 @@ class EndOfTransactionQueriesTest extends KernelTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); $container->register('serializer', PhpSerialize::class); diff --git a/core/tests/Drupal/KernelTests/Core/Common/DrupalFlushAllCachesTest.php b/core/tests/Drupal/KernelTests/Core/Common/DrupalFlushAllCachesTest.php index bacbc6d1d1f..47c65db6a7b 100644 --- a/core/tests/Drupal/KernelTests/Core/Common/DrupalFlushAllCachesTest.php +++ b/core/tests/Drupal/KernelTests/Core/Common/DrupalFlushAllCachesTest.php @@ -65,7 +65,7 @@ class DrupalFlushAllCachesTest extends KernelTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); $this->containerBuilds++; } diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php index bec3d636414..53b4f1052da 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php @@ -56,7 +56,7 @@ class ConfigImporterMissingContentTest extends KernelTestBase implements LoggerI /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); $container->register('logger.ConfigImporterMissingContentTest', __CLASS__)->addTag('logger'); $container->set('logger.ConfigImporterMissingContentTest', $this); diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php index c6deb011e52..1f71c65aeec 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php @@ -1056,7 +1056,7 @@ class ConfigImporterTest extends KernelTestBase { * @param \Drupal\Core\Config\ConfigImporter $importer * The config importer. */ - public static function customStep(array &$context, ConfigImporter $importer) { + public static function customStep(array &$context, ConfigImporter $importer): void { $context['is_syncing'] = \Drupal::isConfigSyncing(); } diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php index 66c977c4414..16778130d18 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php @@ -276,7 +276,7 @@ class ConfigInstallTest extends KernelTestBase { * @param array $modules * The module names. */ - protected function installModules(array $modules) { + protected function installModules(array $modules): void { $this->container->get('module_installer')->install($modules); $this->container = \Drupal::getContainer(); } diff --git a/core/tests/Drupal/KernelTests/Core/Config/Storage/CachedStorageTest.php b/core/tests/Drupal/KernelTests/Core/Config/Storage/CachedStorageTest.php index f3a06135d9d..8a5f81a25c8 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/Storage/CachedStorageTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/Storage/CachedStorageTest.php @@ -60,7 +60,7 @@ class CachedStorageTest extends ConfigStorageTestBase { /** * {@inheritdoc} */ - protected function insert($name, $data) { + protected function insert($name, $data): void { $this->fileStorage->write($name, $data); $this->cache->set($name, $data); } @@ -68,7 +68,7 @@ class CachedStorageTest extends ConfigStorageTestBase { /** * {@inheritdoc} */ - protected function update($name, $data) { + protected function update($name, $data): void { $this->fileStorage->write($name, $data); $this->cache->set($name, $data); } @@ -76,7 +76,7 @@ class CachedStorageTest extends ConfigStorageTestBase { /** * {@inheritdoc} */ - protected function delete($name) { + protected function delete($name): void { $this->cache->delete($name); unlink($this->fileStorage->getFilePath($name)); } diff --git a/core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php b/core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php index 9124c85b7de..7521d5d713b 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php @@ -30,15 +30,15 @@ class DatabaseStorageTest extends ConfigStorageTestBase { return unserialize($data); } - protected function insert($name, $data) { + protected function insert($name, $data): void { Database::getConnection()->insert('config')->fields(['name' => $name, 'data' => $data])->execute(); } - protected function update($name, $data) { + protected function update($name, $data): void { Database::getConnection()->update('config')->fields(['data' => $data])->condition('name', $name)->execute(); } - protected function delete($name) { + protected function delete($name): void { Database::getConnection()->delete('config')->condition('name', $name)->execute(); } diff --git a/core/tests/Drupal/KernelTests/Core/Config/Storage/FileStorageTest.php b/core/tests/Drupal/KernelTests/Core/Config/Storage/FileStorageTest.php index 8d63645761e..b1e40b5fb6b 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/Storage/FileStorageTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/Storage/FileStorageTest.php @@ -43,15 +43,15 @@ class FileStorageTest extends ConfigStorageTestBase { return Yaml::decode($data); } - protected function insert($name, $data) { + protected function insert($name, $data): void { file_put_contents($this->storage->getFilePath($name), $data); } - protected function update($name, $data) { + protected function update($name, $data): void { file_put_contents($this->storage->getFilePath($name), $data); } - protected function delete($name) { + protected function delete($name): void { unlink($this->storage->getFilePath($name)); } diff --git a/core/tests/Drupal/KernelTests/Core/Config/Storage/ManagedStorageTest.php b/core/tests/Drupal/KernelTests/Core/Config/Storage/ManagedStorageTest.php index 094f08b8454..e5ac4dcc88b 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/Storage/ManagedStorageTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/Storage/ManagedStorageTest.php @@ -42,21 +42,21 @@ class ManagedStorageTest extends ConfigStorageTestBase implements StorageManager /** * {@inheritdoc} */ - protected function insert($name, $data) { + protected function insert($name, $data): void { $this->storage->write($name, $data); } /** * {@inheritdoc} */ - protected function update($name, $data) { + protected function update($name, $data): void { $this->storage->write($name, $data); } /** * {@inheritdoc} */ - protected function delete($name) { + protected function delete($name): void { $this->storage->delete($name); } diff --git a/core/tests/Drupal/KernelTests/Core/Config/Storage/MemoryStorageTest.php b/core/tests/Drupal/KernelTests/Core/Config/Storage/MemoryStorageTest.php index 3848b8eacc7..6729edc076b 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/Storage/MemoryStorageTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/Storage/MemoryStorageTest.php @@ -31,21 +31,21 @@ class MemoryStorageTest extends ConfigStorageTestBase { /** * {@inheritdoc} */ - protected function insert($name, $data) { + protected function insert($name, $data): void { $this->storage->write($name, $data); } /** * {@inheritdoc} */ - protected function update($name, $data) { + protected function update($name, $data): void { $this->storage->write($name, $data); } /** * {@inheritdoc} */ - protected function delete($name) { + protected function delete($name): void { $this->storage->delete($name); } diff --git a/core/tests/Drupal/KernelTests/Core/Config/Storage/StorageReplaceDataWrapperTest.php b/core/tests/Drupal/KernelTests/Core/Config/Storage/StorageReplaceDataWrapperTest.php index 0688e3e3df7..d5918cb60f5 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/Storage/StorageReplaceDataWrapperTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/Storage/StorageReplaceDataWrapperTest.php @@ -32,21 +32,21 @@ class StorageReplaceDataWrapperTest extends ConfigStorageTestBase { /** * {@inheritdoc} */ - protected function insert($name, $data) { + protected function insert($name, $data): void { $this->storage->write($name, $data); } /** * {@inheritdoc} */ - protected function update($name, $data) { + protected function update($name, $data): void { $this->storage->write($name, $data); } /** * {@inheritdoc} */ - protected function delete($name) { + protected function delete($name): void { $this->storage->delete($name); } diff --git a/core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php b/core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php index af2eb923547..e0e57ab3f2c 100644 --- a/core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php +++ b/core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php @@ -42,7 +42,7 @@ class DatelistElementFormTest extends KernelTestBase implements FormInterface, T /** * {@inheritdoc} */ - public function datelistDateCallbackTrusted(array &$element, FormStateInterface $form_state, ?DrupalDateTime $date = NULL) { + public function datelistDateCallbackTrusted(array &$element, FormStateInterface $form_state, ?DrupalDateTime $date = NULL): void { $element['datelistDateCallbackExecuted'] = [ '#value' => TRUE, ]; @@ -52,7 +52,7 @@ class DatelistElementFormTest extends KernelTestBase implements FormInterface, T /** * {@inheritdoc} */ - public function datelistDateCallback(array &$element, FormStateInterface $form_state, ?DrupalDateTime $date = NULL) { + public function datelistDateCallback(array &$element, FormStateInterface $form_state, ?DrupalDateTime $date = NULL): void { $element['datelistDateCallbackExecuted'] = [ '#value' => TRUE, ]; diff --git a/core/tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php b/core/tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php index fc89c7eaf96..05f101f47cb 100644 --- a/core/tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php +++ b/core/tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php @@ -42,7 +42,7 @@ class DatetimeElementFormTest extends KernelTestBase implements FormInterface, T /** * {@inheritdoc} */ - public function datetimeDateCallbackTrusted(array &$element, FormStateInterface $form_state, ?DrupalDateTime $date = NULL) { + public function datetimeDateCallbackTrusted(array &$element, FormStateInterface $form_state, ?DrupalDateTime $date = NULL): void { $element['datetimeDateCallbackExecuted'] = [ '#value' => TRUE, ]; @@ -52,7 +52,7 @@ class DatetimeElementFormTest extends KernelTestBase implements FormInterface, T /** * {@inheritdoc} */ - public static function datetimeDateCallback(array &$element, FormStateInterface $form_state, ?DrupalDateTime $date = NULL) { + public static function datetimeDateCallback(array &$element, FormStateInterface $form_state, ?DrupalDateTime $date = NULL): void { $element['datetimeDateCallbackExecuted'] = [ '#value' => TRUE, ]; @@ -62,7 +62,7 @@ class DatetimeElementFormTest extends KernelTestBase implements FormInterface, T /** * {@inheritdoc} */ - public function datetimeTimeCallbackTrusted(array &$element, FormStateInterface $form_state, ?DrupalDateTime $date = NULL) { + public function datetimeTimeCallbackTrusted(array &$element, FormStateInterface $form_state, ?DrupalDateTime $date = NULL): void { $element['timeCallbackExecuted'] = [ '#value' => TRUE, ]; @@ -72,7 +72,7 @@ class DatetimeElementFormTest extends KernelTestBase implements FormInterface, T /** * {@inheritdoc} */ - public static function datetimeTimeCallback(array &$element, FormStateInterface $form_state, ?DrupalDateTime $date = NULL) { + public static function datetimeTimeCallback(array &$element, FormStateInterface $form_state, ?DrupalDateTime $date = NULL): void { $element['timeCallbackExecuted'] = [ '#value' => TRUE, ]; diff --git a/core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php b/core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php index b335c7997c9..f5deb5e33e9 100644 --- a/core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php +++ b/core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php @@ -37,7 +37,7 @@ class DrupalKernelTest extends KernelTestBase { /** * {@inheritdoc} */ - protected function bootKernel() { + protected function bootKernel(): void { // Do not boot the kernel, because we are testing aspects of this process. } diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php index 0514af5a46c..6f1f4f13b1f 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php @@ -544,7 +544,7 @@ class EntityDecoupledTranslationRevisionsTest extends EntityKernelTestBase { * @param \Drupal\Core\Entity\ContentEntityInterface $entity * An entity object. */ - protected function doTestInternalProperties(ContentEntityInterface $entity) { + protected function doTestInternalProperties(ContentEntityInterface $entity): void { $this->assertFalse($entity->isValidationRequired()); $entity->setValidationRequired(TRUE); $this->assertTrue($entity->isValidationRequired()); diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php index 20d72e14f30..98ee398abeb 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php @@ -147,7 +147,7 @@ class EntityFieldTest extends EntityKernelTestBase { * @param string $entity_type * The entity type to run the tests with. */ - protected function doTestReadWrite($entity_type) { + protected function doTestReadWrite($entity_type): void { $entity = $this->createTestEntity($entity_type); $langcode = 'en'; @@ -413,7 +413,7 @@ class EntityFieldTest extends EntityKernelTestBase { * @param string $entity_type * The entity type to run the tests with. */ - protected function doTestSave($entity_type) { + protected function doTestSave($entity_type): void { $langcode_key = $this->entityTypeManager->getDefinition($entity_type)->getKey('langcode'); $entity = $this->createTestEntity($entity_type); $entity->save(); @@ -450,7 +450,7 @@ class EntityFieldTest extends EntityKernelTestBase { * @param string $entity_type * The entity type to run the tests with. */ - protected function doTestIntrospection($entity_type) { + protected function doTestIntrospection($entity_type): void { // Test getting metadata upfront. The entity types used for this test have // a default bundle that is the same as the entity type. $definitions = \Drupal::service('entity_field.manager')->getFieldDefinitions($entity_type, $entity_type); @@ -554,7 +554,7 @@ class EntityFieldTest extends EntityKernelTestBase { * @param string $entity_type * The entity type to run the tests with. */ - protected function doTestIterator($entity_type) { + protected function doTestIterator($entity_type): void { $entity = $this->createTestEntity($entity_type); foreach ($entity as $name => $field) { @@ -593,7 +593,7 @@ class EntityFieldTest extends EntityKernelTestBase { * @param string $entity_type * The entity type to run the tests with. */ - protected function doTestDataStructureInterfaces($entity_type) { + protected function doTestDataStructureInterfaces($entity_type): void { $entity = $this->createTestEntity($entity_type); // Test using the whole tree of typed data by navigating through the tree of @@ -628,7 +628,7 @@ class EntityFieldTest extends EntityKernelTestBase { /** * Gets all contained strings recursively. */ - public function getContainedStrings(TypedDataInterface $wrapper, $depth, array &$strings) { + public function getContainedStrings(TypedDataInterface $wrapper, $depth, array &$strings): void { if ($wrapper instanceof StringInterface) { $strings[] = $wrapper->getValue(); @@ -943,7 +943,7 @@ class EntityFieldTest extends EntityKernelTestBase { * @param string $entity_type * The entity type to run the tests with. */ - protected function doTestComputedProperties($entity_type) { + protected function doTestComputedProperties($entity_type): void { $entity = $this->createTestEntity($entity_type); $entity->field_test_text->value = "The <strong>text</strong> text to filter."; $entity->field_test_text->format = filter_default_format(); diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityRepositoryTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityRepositoryTest.php index 99118165d80..5de40bc6506 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityRepositoryTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityRepositoryTest.php @@ -255,7 +255,7 @@ class EntityRepositoryTest extends KernelTestBase { * @param string $method_name * An entity repository method name. */ - protected function doTestLanguageFallback($method_name) { + protected function doTestLanguageFallback($method_name): void { $entity_type_id = 'entity_test_mulrev'; $en_contexts = $this->getLanguageContexts('en'); $it_contexts = $this->getLanguageContexts('it'); diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntitySchemaTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntitySchemaTest.php index 54ea3a80c34..441472be1f1 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntitySchemaTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntitySchemaTest.php @@ -90,7 +90,7 @@ class EntitySchemaTest extends EntityKernelTestBase { * @param bool $alter * Whether the original definition should be altered or not. */ - protected function updateEntityType($alter) { + protected function updateEntityType($alter): void { $this->state->set('entity_schema_update', $alter); $updated_entity_type = $this->getUpdatedEntityTypeDefinition($alter, $alter); $updated_field_storage_definitions = $this->getUpdatedFieldStorageDefinitions($alter, $alter); @@ -294,7 +294,7 @@ class EntitySchemaTest extends EntityKernelTestBase { /** * {@inheritdoc} */ - protected function refreshServices() { + protected function refreshServices(): void { parent::refreshServices(); $this->database = $this->container->get('database'); } diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php index 835f92b7b91..375064f0d0d 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php @@ -35,7 +35,7 @@ class EntityTranslationTest extends EntityLanguageTestBase { * @param string $entity_type * The entity type to run the tests with. */ - protected function doTestEntityLanguageMethods($entity_type) { + protected function doTestEntityLanguageMethods($entity_type): void { $langcode_key = $this->entityTypeManager->getDefinition($entity_type)->getKey('langcode'); $entity = $this->container->get('entity_type.manager') ->getStorage($entity_type) @@ -155,7 +155,7 @@ class EntityTranslationTest extends EntityLanguageTestBase { * @param string $entity_type * The entity type to run the tests with. */ - protected function doTestMultilingualProperties($entity_type) { + protected function doTestMultilingualProperties($entity_type): void { $langcode_key = $this->entityTypeManager->getDefinition($entity_type)->getKey('langcode'); $default_langcode_key = $this->entityTypeManager->getDefinition($entity_type)->getKey('default_langcode'); $name = $this->randomMachineName(); @@ -318,7 +318,7 @@ class EntityTranslationTest extends EntityLanguageTestBase { * @param string $entity_type * The entity type to run the tests with. */ - protected function doTestEntityTranslationAPI($entity_type) { + protected function doTestEntityTranslationAPI($entity_type): void { $default_langcode = $this->langcodes[0]; $langcode = $this->langcodes[1]; $langcode_key = $this->entityTypeManager->getDefinition($entity_type)->getKey('langcode'); @@ -586,7 +586,7 @@ class EntityTranslationTest extends EntityLanguageTestBase { * @param string $entity_type * The entity type to run the tests with. */ - protected function doTestLanguageFallback($entity_type) { + protected function doTestLanguageFallback($entity_type): void { /** @var \Drupal\Core\Render\RendererInterface $renderer */ $renderer = $this->container->get('renderer'); @@ -727,7 +727,7 @@ class EntityTranslationTest extends EntityLanguageTestBase { * @param string $entity_type * The entity type to run the tests with. */ - protected function doTestLanguageChange($entity_type) { + protected function doTestLanguageChange($entity_type): void { $langcode_key = $this->entityTypeManager->getDefinition($entity_type)->getKey('langcode'); $controller = $this->entityTypeManager->getStorage($entity_type); $langcode = $this->langcodes[0]; diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityValidationTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityValidationTest.php index f6c248edf46..b2ef4be208b 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityValidationTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityValidationTest.php @@ -126,7 +126,7 @@ class EntityValidationTest extends EntityKernelTestBase { * @param string $entity_type * The entity type to run the tests with. */ - protected function checkValidation($entity_type) { + protected function checkValidation($entity_type): void { $entity = $this->createTestEntity($entity_type); $violations = $entity->validate(); $this->assertEquals(0, $violations->count(), 'Validation passes.'); diff --git a/core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php b/core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php index 6799472cd3e..42ea0392141 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php @@ -132,7 +132,7 @@ class FieldableEntityDefinitionUpdateTest extends EntityKernelTestBase { * @param bool $translatable * Whether the entity type is translatable or not. */ - protected function insertData($revisionable, $translatable) { + protected function insertData($revisionable, $translatable): void { // Add three test entities in order to make the "data copy" step run at // least three times. /** @var \Drupal\Core\Entity\TranslatableRevisionableStorageInterface|\Drupal\Core\Entity\EntityStorageInterface $storage */ diff --git a/core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php b/core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php index 467b225134e..d560fd3eee6 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php @@ -194,7 +194,7 @@ class RevisionableContentEntityBaseTest extends EntityKernelTestBase { * @param string $log_message * The log message of the new revision. */ - protected function createRevision(EntityInterface $entity, UserInterface $user, $timestamp, $log_message) { + protected function createRevision(EntityInterface $entity, UserInterface $user, $timestamp, $log_message): void { $entity->setNewRevision(TRUE); $entity->setRevisionCreationTime($timestamp); $entity->setRevisionUserId($user->id()); diff --git a/core/tests/Drupal/KernelTests/Core/EventSubscriber/ExceptionLoggingSubscriberTest.php b/core/tests/Drupal/KernelTests/Core/EventSubscriber/ExceptionLoggingSubscriberTest.php index 785a52c981b..0d188a75887 100644 --- a/core/tests/Drupal/KernelTests/Core/EventSubscriber/ExceptionLoggingSubscriberTest.php +++ b/core/tests/Drupal/KernelTests/Core/EventSubscriber/ExceptionLoggingSubscriberTest.php @@ -92,7 +92,7 @@ class ExceptionLoggingSubscriberTest extends KernelTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); $container ->register($this->testLogServiceName, BufferingLogger::class) diff --git a/core/tests/Drupal/KernelTests/Core/Form/FormDefaultHandlersTest.php b/core/tests/Drupal/KernelTests/Core/Form/FormDefaultHandlersTest.php index b092803e22e..2afbd5914ae 100644 --- a/core/tests/Drupal/KernelTests/Core/Form/FormDefaultHandlersTest.php +++ b/core/tests/Drupal/KernelTests/Core/Form/FormDefaultHandlersTest.php @@ -36,7 +36,7 @@ class FormDefaultHandlersTest extends KernelTestBase implements FormInterface { /** * {@inheritdoc} */ - public function customValidateForm(array &$form, FormStateInterface $form_state) { + public function customValidateForm(array &$form, FormStateInterface $form_state): void { $test_handlers = $form_state->get('test_handlers'); $test_handlers['validate'][] = __FUNCTION__; $form_state->set('test_handlers', $test_handlers); @@ -45,7 +45,7 @@ class FormDefaultHandlersTest extends KernelTestBase implements FormInterface { /** * {@inheritdoc} */ - public function validateForm(array &$form, FormStateInterface $form_state) { + public function validateForm(array &$form, FormStateInterface $form_state): void { $test_handlers = $form_state->get('test_handlers'); $test_handlers['validate'][] = __FUNCTION__; $form_state->set('test_handlers', $test_handlers); @@ -54,7 +54,7 @@ class FormDefaultHandlersTest extends KernelTestBase implements FormInterface { /** * {@inheritdoc} */ - public function customSubmitForm(array &$form, FormStateInterface $form_state) { + public function customSubmitForm(array &$form, FormStateInterface $form_state): void { $test_handlers = $form_state->get('test_handlers'); $test_handlers['submit'][] = __FUNCTION__; $form_state->set('test_handlers', $test_handlers); @@ -63,7 +63,7 @@ class FormDefaultHandlersTest extends KernelTestBase implements FormInterface { /** * {@inheritdoc} */ - public function submitForm(array &$form, FormStateInterface $form_state) { + public function submitForm(array &$form, FormStateInterface $form_state): void { $test_handlers = $form_state->get('test_handlers'); $test_handlers['submit'][] = __FUNCTION__; $form_state->set('test_handlers', $test_handlers); diff --git a/core/tests/Drupal/KernelTests/Core/Form/TriggeringElementProgrammedTest.php b/core/tests/Drupal/KernelTests/Core/Form/TriggeringElementProgrammedTest.php index dd145c87804..20e188141a3 100644 --- a/core/tests/Drupal/KernelTests/Core/Form/TriggeringElementProgrammedTest.php +++ b/core/tests/Drupal/KernelTests/Core/Form/TriggeringElementProgrammedTest.php @@ -54,7 +54,7 @@ class TriggeringElementProgrammedTest extends KernelTestBase implements FormInte /** * {@inheritdoc} */ - public function validateForm(array &$form, FormStateInterface $form_state) { + public function validateForm(array &$form, FormStateInterface $form_state): void { // Verify that the only submit button was recognized as triggering_element. $this->assertEquals($form['actions']['submit']['#array_parents'], $form_state->getTriggeringElement()['#array_parents']); } diff --git a/core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageExpirableTest.php b/core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageExpirableTest.php index db21af44ddf..d6de4c555c0 100644 --- a/core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageExpirableTest.php +++ b/core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageExpirableTest.php @@ -30,7 +30,7 @@ class DatabaseStorageExpirableTest extends StorageTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); $parameter[KeyValueFactory::DEFAULT_SETTING] = 'keyvalue.expirable.database'; diff --git a/core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageTest.php b/core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageTest.php index c187deed612..213632d0dde 100644 --- a/core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageTest.php +++ b/core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageTest.php @@ -27,7 +27,7 @@ class DatabaseStorageTest extends StorageTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); $parameter[KeyValueFactory::DEFAULT_SETTING] = 'keyvalue.database'; diff --git a/core/tests/Drupal/KernelTests/Core/KeyValueStore/MemoryStorageTest.php b/core/tests/Drupal/KernelTests/Core/KeyValueStore/MemoryStorageTest.php index e7679bfe2c3..034ccbf8885 100644 --- a/core/tests/Drupal/KernelTests/Core/KeyValueStore/MemoryStorageTest.php +++ b/core/tests/Drupal/KernelTests/Core/KeyValueStore/MemoryStorageTest.php @@ -17,7 +17,7 @@ class MemoryStorageTest extends StorageTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); $container->register('keyvalue.memory', 'Drupal\Core\KeyValueStore\KeyValueMemoryFactory'); diff --git a/core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php b/core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php index 2c739858ac6..baa01d730b2 100644 --- a/core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php +++ b/core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php @@ -55,14 +55,14 @@ class MenuTreeStorageTest extends KernelTestBase { /** * Ensures that there are no menu links by default. */ - protected function doTestEmptyStorage() { + protected function doTestEmptyStorage(): void { $this->assertEquals(0, $this->treeStorage->countMenuLinks()); } /** * Ensures that table gets created on the fly. */ - protected function doTestTable() { + protected function doTestTable(): void { // Test that we can create a tree storage with an arbitrary table name and // that selecting from the storage creates the table. $tree_storage = new MenuTreeStorage($this->container->get('database'), $this->container->get('cache.menu'), $this->container->get('cache_tags.invalidator'), 'test_menu_tree'); @@ -377,7 +377,7 @@ class MenuTreeStorageTest extends KernelTestBase { /** * Adds a link with the given ID and supply defaults. */ - protected function addMenuLink($id, $parent = '', $route_name = 'test', $route_parameters = [], $menu_name = 'tools', $extra = []) { + protected function addMenuLink($id, $parent = '', $route_name = 'test', $route_parameters = [], $menu_name = 'tools', $extra = []): void { $link = [ 'id' => $id, 'menu_name' => $menu_name, @@ -399,7 +399,7 @@ class MenuTreeStorageTest extends KernelTestBase { * @param string $new_parent * The ID of the new parent link. */ - protected function moveMenuLink($id, $new_parent) { + protected function moveMenuLink($id, $new_parent): void { $menu_link = $this->treeStorage->load($id); $menu_link['parent'] = $new_parent; $this->treeStorage->save($menu_link); diff --git a/core/tests/Drupal/KernelTests/Core/Plugin/Condition/ConditionTestDualUserTest.php b/core/tests/Drupal/KernelTests/Core/Plugin/Condition/ConditionTestDualUserTest.php index 239e76243a9..868be4066b8 100644 --- a/core/tests/Drupal/KernelTests/Core/Plugin/Condition/ConditionTestDualUserTest.php +++ b/core/tests/Drupal/KernelTests/Core/Plugin/Condition/ConditionTestDualUserTest.php @@ -57,7 +57,7 @@ class ConditionTestDualUserTest extends KernelTestBase { /** * Tests with both contexts mapped to the same user. */ - protected function doTestIdenticalUser() { + protected function doTestIdenticalUser(): void { /** @var \Drupal\Core\Condition\ConditionPluginBase $condition */ $condition = \Drupal::service('plugin.manager.condition') ->createInstance('condition_test_dual_user') @@ -74,7 +74,7 @@ class ConditionTestDualUserTest extends KernelTestBase { /** * Tests with each context mapped to different users. */ - protected function doTestDifferentUser() { + protected function doTestDifferentUser(): void { /** @var \Drupal\Core\Condition\ConditionPluginBase $condition */ $condition = \Drupal::service('plugin.manager.condition') ->createInstance('condition_test_dual_user') diff --git a/core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php b/core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php index 9cf82a7c3bb..34b1c04e37e 100644 --- a/core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php +++ b/core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php @@ -119,7 +119,7 @@ class TestContextAwarePlugin extends PluginBase implements ContextAwarePluginInt /** * {@inheritdoc} */ - public function setContext($name, ComponentContextInterface $context) { + public function setContext($name, ComponentContextInterface $context): void { $this->setContextTrait($name, $context); $this->setContextCalled = TRUE; } diff --git a/core/tests/Drupal/KernelTests/Core/Queue/QueueSerializationTest.php b/core/tests/Drupal/KernelTests/Core/Queue/QueueSerializationTest.php index 5eef98fc4d6..98c5d0bf23c 100644 --- a/core/tests/Drupal/KernelTests/Core/Queue/QueueSerializationTest.php +++ b/core/tests/Drupal/KernelTests/Core/Queue/QueueSerializationTest.php @@ -67,7 +67,7 @@ class QueueSerializationTest extends KernelTestBase implements FormInterface { /** * {@inheritdoc} */ - public function submitForm(array &$form, FormStateInterface $form_state) { + public function submitForm(array &$form, FormStateInterface $form_state): void { $form_state->setRebuild(); } diff --git a/core/tests/Drupal/KernelTests/Core/Queue/QueueTest.php b/core/tests/Drupal/KernelTests/Core/Queue/QueueTest.php index 9b91a911174..bf224ef7ae4 100644 --- a/core/tests/Drupal/KernelTests/Core/Queue/QueueTest.php +++ b/core/tests/Drupal/KernelTests/Core/Queue/QueueTest.php @@ -50,7 +50,7 @@ class QueueTest extends KernelTestBase { * @param \Drupal\Core\Queue\QueueInterface $queue2 * An instantiated queue object. */ - protected function runQueueTest($queue1, $queue2) { + protected function runQueueTest($queue1, $queue2): void { // Create four items. $data = []; for ($i = 0; $i < 4; $i++) { diff --git a/core/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php b/core/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php index 49a1863a1c5..c49c1bf2fbe 100644 --- a/core/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php +++ b/core/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php @@ -60,7 +60,7 @@ class RenderCacheTest extends KernelTestBase { * @param string[] $contexts * List of cache contexts to use. */ - protected function doTestUser1WithContexts($contexts) { + protected function doTestUser1WithContexts($contexts): void { // Test that user 1 does not share the cache with other users who have the // same roles, even when using a role-based cache context. $user1 = $this->createUser(); diff --git a/core/tests/Drupal/KernelTests/Core/ServiceProvider/ServiceProviderTest.php b/core/tests/Drupal/KernelTests/Core/ServiceProvider/ServiceProviderTest.php index ad69cae4a43..adf4d58e9ae 100644 --- a/core/tests/Drupal/KernelTests/Core/ServiceProvider/ServiceProviderTest.php +++ b/core/tests/Drupal/KernelTests/Core/ServiceProvider/ServiceProviderTest.php @@ -25,7 +25,7 @@ class ServiceProviderTest extends KernelTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); // Undo cache_factory override done in parent because it can hide caching // issues in container build time. diff --git a/core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php b/core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php index d9c90d8aafa..5a7690e138e 100644 --- a/core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php +++ b/core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php @@ -54,7 +54,7 @@ class TranslationStringTest extends KernelTestBase { /** * Reboots the kernel to set custom translations in Settings. */ - protected function rebootAndPrepareSettings() { + protected function rebootAndPrepareSettings(): void { // Reboot the container so that different services are injected and the new // settings are picked. $kernel = $this->container->get('kernel'); diff --git a/core/tests/Drupal/KernelTests/Core/Theme/FrontMatterTest.php b/core/tests/Drupal/KernelTests/Core/Theme/FrontMatterTest.php index 888db8a0cd7..14a6fcd5fe4 100644 --- a/core/tests/Drupal/KernelTests/Core/Theme/FrontMatterTest.php +++ b/core/tests/Drupal/KernelTests/Core/Theme/FrontMatterTest.php @@ -42,7 +42,7 @@ class FrontMatterTest extends KernelTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); $definition = new Definition(FilesystemLoader::class, [[sys_get_temp_dir()]]); diff --git a/core/tests/Drupal/KernelTests/Core/Theme/Stable9TemplateOverrideTest.php b/core/tests/Drupal/KernelTests/Core/Theme/Stable9TemplateOverrideTest.php index 36602f4f1d2..aa6f76ff69c 100644 --- a/core/tests/Drupal/KernelTests/Core/Theme/Stable9TemplateOverrideTest.php +++ b/core/tests/Drupal/KernelTests/Core/Theme/Stable9TemplateOverrideTest.php @@ -64,7 +64,7 @@ class Stable9TemplateOverrideTest extends KernelTestBase { /** * Installs all core modules. */ - protected function installAllModules() { + protected function installAllModules(): void { // Enable all core modules. $all_modules = $this->container->get('extension.list.module')->getList(); $all_modules = array_filter($all_modules, function ($module) { diff --git a/core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php b/core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php index e06b19b7ad5..1a939760dc4 100644 --- a/core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php +++ b/core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php @@ -28,7 +28,7 @@ class ThemeInstallerTest extends KernelTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); // Some test methods involve ModuleHandler operations, which attempt to // rebuild and dump routes. diff --git a/core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php b/core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php index 01e6fefd169..c14d7ab6227 100644 --- a/core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php +++ b/core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php @@ -183,7 +183,7 @@ class TwigEnvironmentTest extends KernelTestBase { /** * {@inheritdoc} */ - public function register(ContainerBuilder $container) { + public function register(ContainerBuilder $container): void { parent::register($container); $definition = new Definition('Twig\Loader\FilesystemLoader', [[sys_get_temp_dir()]]); diff --git a/core/tests/Drupal/KernelTests/Core/Validation/UuidValidatorTest.php b/core/tests/Drupal/KernelTests/Core/Validation/UuidValidatorTest.php index 4120bfd6e4a..7c7d6aa0e39 100644 --- a/core/tests/Drupal/KernelTests/Core/Validation/UuidValidatorTest.php +++ b/core/tests/Drupal/KernelTests/Core/Validation/UuidValidatorTest.php @@ -47,7 +47,7 @@ class UuidValidatorTest extends KernelTestBase { /** * @see \Drupal\Core\Validation\Plugin\Validation\Constraint\UriHostConstraint */ - public function testUriHost() { + public function testUriHost(): void { $typed_config_manager = \Drupal::service('config.typed'); /** @var \Drupal\Core\Config\Schema\TypedConfigInterface $typed_config */ $typed_config = $typed_config_manager->get('config_test.validation'); diff --git a/core/tests/Drupal/KernelTests/KernelTestBaseShutdownTest.php b/core/tests/Drupal/KernelTests/KernelTestBaseShutdownTest.php index 4b99b24b1aa..4337f6e080b 100644 --- a/core/tests/Drupal/KernelTests/KernelTestBaseShutdownTest.php +++ b/core/tests/Drupal/KernelTests/KernelTestBaseShutdownTest.php @@ -54,7 +54,7 @@ class KernelTestBaseShutdownTest extends KernelTestBase { /** * Registers that this shutdown function has been called. */ - public function shutdownFunction() { + public function shutdownFunction(): void { self::$shutdownCalled[] = 'shutdownFunction'; drupal_register_shutdown_function([$this, 'shutdownFunction2']); } @@ -62,7 +62,7 @@ class KernelTestBaseShutdownTest extends KernelTestBase { /** * Registers that this shutdown function has been called. */ - public function shutdownFunction2() { + public function shutdownFunction2(): void { self::$shutdownCalled[] = 'shutdownFunction2'; } diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php index e9fadc854cf..a977a4144cd 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php @@ -28,7 +28,7 @@ use PHPUnit\Framework\TestCase; */ class DocParserTest extends TestCase { - public function testNestedArraysWithNestedAnnotation() + public function testNestedArraysWithNestedAnnotation(): void { $parser = $this->createTestParser(); @@ -48,7 +48,7 @@ class DocParserTest extends TestCase $this->assertInstanceOf(Name::class, $nestedArray['key']); } - public function testBasicAnnotations() + public function testBasicAnnotations(): void { $parser = $this->createTestParser(); @@ -114,7 +114,7 @@ DOCBLOCK; $this->assertNull($annot->value); } - public function testDefaultValueAnnotations() + public function testDefaultValueAnnotations(): void { $parser = $this->createTestParser(); @@ -136,7 +136,7 @@ DOCBLOCK; $this->assertEquals('bar', $annot->foo); } - public function testNamespacedAnnotations() + public function testNamespacedAnnotations(): void { $parser = new DocParser; $parser->setIgnoreNotImportedAnnotations(true); @@ -163,7 +163,7 @@ DOCBLOCK; /** * @group debug */ - public function testTypicalMethodDocBlock() + public function testTypicalMethodDocBlock(): void { $parser = $this->createTestParser(); @@ -193,7 +193,7 @@ DOCBLOCK; } - public function testAnnotationWithoutConstructor() + public function testAnnotationWithoutConstructor(): void { $parser = $this->createTestParser(); @@ -318,7 +318,7 @@ DOCBLOCK; $this->assertInstanceOf(SomeAnnotationClassNameWithoutConstructorAndProperties::class, $result[0]); } - public function testAnnotationTarget() + public function testAnnotationTarget(): void { $parser = new DocParser; @@ -534,7 +534,7 @@ DOCBLOCK; /** * @dataProvider getAnnotationVarTypeProviderValid */ - public function testAnnotationWithVarType($attribute, $value) + public function testAnnotationWithVarType($attribute, $value): void { $parser = $this->createTestParser(); $context = 'property SomeClassName::$invalidProperty.'; @@ -551,7 +551,7 @@ DOCBLOCK; /** * @dataProvider getAnnotationVarTypeProviderInvalid */ - public function testAnnotationWithVarTypeError($attribute,$type,$value,$given) + public function testAnnotationWithVarTypeError($attribute,$type,$value,$given): void { $parser = $this->createTestParser(); $context = 'property SomeClassName::invalidProperty.'; @@ -570,7 +570,7 @@ DOCBLOCK; /** * @dataProvider getAnnotationVarTypeArrayProviderInvalid */ - public function testAnnotationWithVarTypeArrayError($attribute,$type,$value,$given) + public function testAnnotationWithVarTypeArrayError($attribute,$type,$value,$given): void { $parser = $this->createTestParser(); $context = 'property SomeClassName::invalidProperty.'; @@ -588,7 +588,7 @@ DOCBLOCK; /** * @dataProvider getAnnotationVarTypeProviderValid */ - public function testAnnotationWithAttributes($attribute, $value) + public function testAnnotationWithAttributes($attribute, $value): void { $parser = $this->createTestParser(); $context = 'property SomeClassName::$invalidProperty.'; @@ -606,7 +606,7 @@ DOCBLOCK; /** * @dataProvider getAnnotationVarTypeProviderInvalid */ - public function testAnnotationWithAttributesError($attribute,$type,$value,$given) + public function testAnnotationWithAttributesError($attribute,$type,$value,$given): void { $parser = $this->createTestParser(); $context = 'property SomeClassName::invalidProperty.'; @@ -625,7 +625,7 @@ DOCBLOCK; /** * @dataProvider getAnnotationVarTypeArrayProviderInvalid */ - public function testAnnotationWithAttributesWithVarTypeArrayError($attribute,$type,$value,$given) + public function testAnnotationWithAttributesWithVarTypeArrayError($attribute,$type,$value,$given): void { $parser = $this->createTestParser(); $context = 'property SomeClassName::invalidProperty.'; @@ -640,7 +640,7 @@ DOCBLOCK; } } - public function testAnnotationWithRequiredAttributes() + public function testAnnotationWithRequiredAttributes(): void { $parser = $this->createTestParser(); $context = 'property SomeClassName::invalidProperty.'; @@ -674,7 +674,7 @@ DOCBLOCK; } - public function testAnnotationWithRequiredAttributesWithoutContructor() + public function testAnnotationWithRequiredAttributesWithoutContructor(): void { $parser = $this->createTestParser(); $context = 'property SomeClassName::invalidProperty.'; @@ -708,7 +708,7 @@ DOCBLOCK; } - public function testAnnotationEnumeratorException() + public function testAnnotationEnumeratorException(): void { $this->expectException('\Doctrine\Common\Annotations\AnnotationException'); $this->expectExceptionMessage('Attribute "value" of @Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationEnum declared on property SomeClassName::invalidProperty. accepts only [ONE, TWO, THREE], but got FOUR.'); @@ -722,7 +722,7 @@ DOCBLOCK; $parser->parse($docblock, $context); } - public function testAnnotationEnumeratorLiteralException() + public function testAnnotationEnumeratorLiteralException(): void { $this->expectException('\Doctrine\Common\Annotations\AnnotationException'); $this->expectExceptionMessage('Attribute "value" of @Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationEnumLiteral declared on property SomeClassName::invalidProperty. accepts only [AnnotationEnumLiteral::ONE, AnnotationEnumLiteral::TWO, AnnotationEnumLiteral::THREE], but got 4.'); @@ -736,7 +736,7 @@ DOCBLOCK; $parser->parse($docblock, $context); } - public function testAnnotationEnumInvalidTypeDeclarationException() + public function testAnnotationEnumInvalidTypeDeclarationException(): void { $this->expectException('\InvalidArgumentException'); $this->expectExceptionMessage('@Enum supports only scalar values "array" given.'); @@ -748,7 +748,7 @@ DOCBLOCK; $parser->parse($docblock); } - public function testAnnotationEnumInvalidLiteralDeclarationException() + public function testAnnotationEnumInvalidLiteralDeclarationException(): void { $this->expectException('\InvalidArgumentException'); $this->expectExceptionMessage('Undefined enumerator value "3" for literal "AnnotationEnumLiteral::THREE".'); @@ -866,7 +866,7 @@ DOCBLOCK; /** * @dataProvider getConstantsProvider */ - public function testSupportClassConstants($docblock, $expected) + public function testSupportClassConstants($docblock, $expected): void { $parser = $this->createTestParser(); $parser->setImports(array( @@ -880,7 +880,7 @@ DOCBLOCK; $this->assertEquals($expected, $annotation->value); } - public function testWithoutConstructorWhenIsNotDefaultValue() + public function testWithoutConstructorWhenIsNotDefaultValue(): void { $this->expectException('\Doctrine\Common\Annotations\AnnotationException'); $this->expectExceptionMessage('The annotation @SomeAnnotationClassNameWithoutConstructorAndProperties declared on does not accept any values, but got {"value":"Foo"}.'); @@ -897,7 +897,7 @@ DOCBLOCK; $parser->parse($docblock); } - public function testWithoutConstructorWhenHasNoProperties() + public function testWithoutConstructorWhenHasNoProperties(): void { $this->expectException('\Doctrine\Common\Annotations\AnnotationException'); $this->expectExceptionMessage('The annotation @SomeAnnotationClassNameWithoutConstructorAndProperties declared on does not accept any values, but got {"value":"Foo"}.'); @@ -913,7 +913,7 @@ DOCBLOCK; $parser->parse($docblock); } - public function testAnnotationTargetSyntaxError() + public function testAnnotationTargetSyntaxError(): void { $this->expectException('\Doctrine\Common\Annotations\AnnotationException'); $this->expectExceptionMessage('Expected namespace separator or identifier, got \')\' at position 24 in class @Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationWithTargetSyntaxError.'); @@ -930,7 +930,7 @@ DOCBLOCK; $parser->parse($docblock,$context); } - public function testAnnotationWithInvalidTargetDeclarationError() + public function testAnnotationWithInvalidTargetDeclarationError(): void { $this->expectException('\InvalidArgumentException'); $this->expectExceptionMessage('Invalid Target "Foo". Available targets: [ALL, CLASS, METHOD, PROPERTY, FUNCTION, ANNOTATION]'); @@ -947,7 +947,7 @@ DOCBLOCK; $parser->parse($docblock,$context); } - public function testAnnotationWithTargetEmptyError() + public function testAnnotationWithTargetEmptyError(): void { $this->expectException('\InvalidArgumentException'); $this->expectExceptionMessage('@Target expects either a string value, or an array of strings, "NULL" given.'); @@ -967,7 +967,7 @@ DOCBLOCK; /** * @group DDC-575 */ - public function testRegressionDDC575() + public function testRegressionDDC575(): void { $parser = $this->createTestParser(); @@ -1000,7 +1000,7 @@ DOCBLOCK; /** * @group DDC-77 */ - public function testAnnotationWithoutClassIsIgnoredWithoutWarning() + public function testAnnotationWithoutClassIsIgnoredWithoutWarning(): void { $parser = new DocParser(); $parser->setIgnoreNotImportedAnnotations(true); @@ -1012,7 +1012,7 @@ DOCBLOCK; /** * @group DCOM-168 */ - public function testNotAnAnnotationClassIsIgnoredWithoutWarning() + public function testNotAnAnnotationClassIsIgnoredWithoutWarning(): void { $parser = new DocParser(); $parser->setIgnoreNotImportedAnnotations(true); @@ -1022,7 +1022,7 @@ DOCBLOCK; $this->assertCount(0, $result); } - public function testAnnotationDontAcceptSingleQuotes() + public function testAnnotationDontAcceptSingleQuotes(): void { $this->expectException('\Doctrine\Common\Annotations\AnnotationException'); $this->expectExceptionMessage('Expected PlainValue, got \'\'\' at position 10.'); @@ -1034,7 +1034,7 @@ DOCBLOCK; /** * @group DCOM-41 */ - public function testAnnotationDoesNotThrowExceptionWhenAtSignIsNotFollowedByIdentifier() + public function testAnnotationDoesNotThrowExceptionWhenAtSignIsNotFollowedByIdentifier(): void { $parser = new DocParser(); $result = $parser->parse("'@'"); @@ -1045,7 +1045,7 @@ DOCBLOCK; /** * @group DCOM-41 */ - public function testAnnotationThrowsExceptionWhenAtSignIsNotFollowedByIdentifierInNestedAnnotation() + public function testAnnotationThrowsExceptionWhenAtSignIsNotFollowedByIdentifierInNestedAnnotation(): void { $this->expectException('\Doctrine\Common\Annotations\AnnotationException'); @@ -1056,7 +1056,7 @@ DOCBLOCK; /** * @group DCOM-56 */ - public function testAutoloadAnnotation() + public function testAutoloadAnnotation(): void { self::assertFalse( class_exists('Drupal\Tests\Component\Annotation\Doctrine\Fixture\Annotation\Autoload', false), @@ -1089,7 +1089,7 @@ DOCBLOCK; /** * @group DDC-78 */ - public function testSyntaxErrorWithContextDescription() + public function testSyntaxErrorWithContextDescription(): void { $this->expectException('\Doctrine\Common\Annotations\AnnotationException'); $this->expectExceptionMessage('Expected PlainValue, got \'\'\' at position 10 in class \Drupal\Tests\Component\Annotation\Doctrine\Name'); @@ -1101,7 +1101,7 @@ DOCBLOCK; /** * @group DDC-183 */ - public function testSyntaxErrorWithUnknownCharacters() + public function testSyntaxErrorWithUnknownCharacters(): void { $docblock = <<<DOCBLOCK /** @@ -1128,7 +1128,7 @@ DOCBLOCK; /** * @group DCOM-14 */ - public function testIgnorePHPDocThrowTag() + public function testIgnorePHPDocThrowTag(): void { $docblock = <<<DOCBLOCK /** @@ -1151,7 +1151,7 @@ DOCBLOCK; /** * @group DCOM-38 */ - public function testCastInt() + public function testCastInt(): void { $parser = $this->createTestParser(); @@ -1163,7 +1163,7 @@ DOCBLOCK; /** * @group DCOM-38 */ - public function testCastNegativeInt() + public function testCastNegativeInt(): void { $parser = $this->createTestParser(); @@ -1175,7 +1175,7 @@ DOCBLOCK; /** * @group DCOM-38 */ - public function testCastFloat() + public function testCastFloat(): void { $parser = $this->createTestParser(); @@ -1187,7 +1187,7 @@ DOCBLOCK; /** * @group DCOM-38 */ - public function testCastNegativeFloat() + public function testCastNegativeFloat(): void { $parser = $this->createTestParser(); @@ -1200,7 +1200,7 @@ DOCBLOCK; $this->assertIsFloat($annot->value); } - public function testSetValuesException() + public function testSetValuesException(): void { $this->expectException('\Doctrine\Common\Annotations\AnnotationException'); $this->expectExceptionMessage('[Creation Error] The annotation @SomeAnnotationClassNameWithoutConstructor declared on some class does not have a property named "invalidaProperty". Available properties: data, name'); @@ -1214,7 +1214,7 @@ DOCBLOCK; $this->createTestParser()->parse($docblock, 'some class'); } - public function testInvalidIdentifierInAnnotation() + public function testInvalidIdentifierInAnnotation(): void { $this->expectException('\Doctrine\Common\Annotations\AnnotationException'); $this->expectExceptionMessage('[Syntax Error] Expected Doctrine\Common\Annotations\DocLexer::T_IDENTIFIER or Doctrine\Common\Annotations\DocLexer::T_TRUE or Doctrine\Common\Annotations\DocLexer::T_FALSE or Doctrine\Common\Annotations\DocLexer::T_NULL, got \'3.42\' at position 5.'); @@ -1223,7 +1223,7 @@ DOCBLOCK; $parser->parse('@Foo\3.42'); } - public function testTrailingCommaIsAllowed() + public function testTrailingCommaIsAllowed(): void { $parser = $this->createTestParser(); @@ -1235,7 +1235,7 @@ DOCBLOCK; $this->assertEquals(array('Foo', 'Bar'), $annots[0]->value); } - public function testDefaultAnnotationValueIsNotOverwritten() + public function testDefaultAnnotationValueIsNotOverwritten(): void { $parser = $this->createTestParser(); @@ -1244,7 +1244,7 @@ DOCBLOCK; $this->assertEquals('bar', $annots[0]->foo); } - public function testArrayWithColon() + public function testArrayWithColon(): void { $parser = $this->createTestParser(); @@ -1253,7 +1253,7 @@ DOCBLOCK; $this->assertEquals(array('foo' => 'bar'), $annots[0]->value); } - public function testInvalidContantName() + public function testInvalidContantName(): void { $this->expectException('\Doctrine\Common\Annotations\AnnotationException'); $this->expectExceptionMessage('[Semantical Error] Couldn\'t find constant foo.'); @@ -1265,7 +1265,7 @@ DOCBLOCK; /** * Tests parsing empty arrays. */ - public function testEmptyArray() + public function testEmptyArray(): void { $parser = $this->createTestParser(); @@ -1274,7 +1274,7 @@ DOCBLOCK; $this->assertEquals(array('foo' => array()), $annots[0]->value); } - public function testKeyHasNumber() + public function testKeyHasNumber(): void { $parser = $this->createTestParser(); $annots = $parser->parse('@SettingsAnnotation(foo="test", bar2="test")'); @@ -1286,7 +1286,7 @@ DOCBLOCK; /** * @group 44 */ - public function testSupportsEscapedQuotedValues() + public function testSupportsEscapedQuotedValues(): void { $result = $this->createTestParser()->parse('@Drupal\Tests\Component\Annotation\Doctrine\Name(foo="""bar""")'); diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/StaticReflectionParserTest.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/StaticReflectionParserTest.php index 85a99f3c353..ab5d242262d 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/StaticReflectionParserTest.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/StaticReflectionParserTest.php @@ -34,7 +34,7 @@ class StaticReflectionParserTest extends TestCase { * ["UsedAsQualified", "Drupal\\Tests\\Component\\Annotation\\Doctrine\\Fixtures\\ExtraAttributes\\ExampleParentAttribute", true] * ["Qualified", "Drupal\\Tests\\Component\\Annotation\\Doctrine\\Fixtures\\ExtraAttributes\\ExampleParentAttribute", true] */ - public function testAttribute(string $class, string $attribute_class, bool $expected) { + public function testAttribute(string $class, string $attribute_class, bool $expected): void { $finder = MockFileFinder::create(__DIR__ . '/Fixtures/Attribute/' . $class . '.php'); $parser = new StaticReflectionParser('\\Drupal\\Tests\\Component\\Annotation\\Doctrine\\Fixtures\\Attribute\\' . $class, $finder); $this->assertSame($expected, $parser->hasClassAttribute($attribute_class), "'$class' has attribute that is a '$attribute_class'"); diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Test.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Test.php index aeba0b743ad..8751bb468f4 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Test.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Test.php @@ -28,7 +28,7 @@ class DCOM58Test extends TestCase include __DIR__ .'/DCOM58Entity.php'; } - public function testIssueGlobalNamespace() + public function testIssueGlobalNamespace(): void { $docblock = "@Entity"; $parser = new DocParser(); @@ -42,7 +42,7 @@ class DCOM58Test extends TestCase $this->assertInstanceOf("Drupal\Tests\Component\Annotation\Doctrine\Ticket\Doctrine\ORM\Mapping\Entity", $annots[0]); } - public function testIssueNamespaces() + public function testIssueNamespaces(): void { $docblock = "@Entity"; $parser = new DocParser(); @@ -54,7 +54,7 @@ class DCOM58Test extends TestCase $this->assertInstanceOf("Drupal\Tests\Component\Annotation\Doctrine\Ticket\Doctrine\ORM\Entity", $annots[0]); } - public function testIssueMultipleNamespaces() + public function testIssueMultipleNamespaces(): void { $docblock = "@Entity"; $parser = new DocParser(); @@ -67,7 +67,7 @@ class DCOM58Test extends TestCase $this->assertInstanceOf("Drupal\Tests\Component\Annotation\Doctrine\Ticket\Doctrine\ORM\Mapping\Entity", $annots[0]); } - public function testIssueWithNamespacesOrImports() + public function testIssueWithNamespacesOrImports(): void { $docblock = "@Entity"; $parser = new DocParser(); @@ -79,7 +79,7 @@ class DCOM58Test extends TestCase } - public function testIssueSimpleAnnotationReader() + public function testIssueSimpleAnnotationReader(): void { $reader = new SimpleAnnotationReader(); $reader->addNamespace('Drupal\Tests\Component\Annotation\Doctrine\Ticket\Doctrine\ORM\Mapping'); diff --git a/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php b/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php index 446a59c207f..6d179de5c4b 100644 --- a/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php +++ b/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php @@ -1196,7 +1196,7 @@ class MockService { * @param \Symfony\Component\DependencyInjection\ContainerInterface $container * The container to inject via setter injection. */ - public function setContainer(ContainerInterface $container) { + public function setContainer(ContainerInterface $container): void { $this->container = $container; } @@ -1236,7 +1236,7 @@ class MockService { * @param string $some_other_parameter * The setter injected parameter. */ - public function setOtherConfigParameter($some_other_parameter) { + public function setOtherConfigParameter($some_other_parameter): void { $this->someOtherParameter = $some_other_parameter; } diff --git a/core/tests/Drupal/Tests/Component/Render/FormattableMarkupTest.php b/core/tests/Drupal/Tests/Component/Render/FormattableMarkupTest.php index d3451194895..7962148796e 100644 --- a/core/tests/Drupal/Tests/Component/Render/FormattableMarkupTest.php +++ b/core/tests/Drupal/Tests/Component/Render/FormattableMarkupTest.php @@ -66,7 +66,7 @@ class FormattableMarkupTest extends TestCase { * @param string $error_message * The error message. */ - public function errorHandler($error_number, $error_message) { + public function errorHandler($error_number, $error_message): void { $this->lastErrorNumber = $error_number; $this->lastErrorMessage = $error_message; } diff --git a/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php b/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php index 20862c77e43..fe6222df3ce 100644 --- a/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php @@ -519,7 +519,7 @@ class AccessManagerTest extends UnitTestCase { /** * Adds a default access check service to the container and the access manager. */ - protected function setupAccessChecker() { + protected function setupAccessChecker(): void { $this->container->register('test_access_default', DefaultAccessCheck::class); $this->checkProvider->addCheckService('test_access_default', 'access', ['_access']); } diff --git a/core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php b/core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php index 9282dc94d48..23b35e7589a 100644 --- a/core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php +++ b/core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php @@ -65,7 +65,7 @@ class CsrfTokenGeneratorTest extends UnitTestCase { /** * Set up default expectations on the mocks. */ - protected function setupDefaultExpectations() { + protected function setupDefaultExpectations(): void { $key = Crypt::randomBytesBase64(); $this->privateKey->expects($this->any()) ->method('get') diff --git a/core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php b/core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php index 13ba2d41ad3..e5348e1a4b0 100644 --- a/core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php +++ b/core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php @@ -875,7 +875,7 @@ class TestLibraryDiscoveryParser extends LibraryDiscoveryParser { return $this->validUris[$source] ?? FALSE; } - public function setFileValidUri($source, $valid) { + public function setFileValidUri($source, $valid): void { $this->validUris[$source] = $valid; } diff --git a/core/tests/Drupal/Tests/Core/Cache/VariationCacheTest.php b/core/tests/Drupal/Tests/Core/Cache/VariationCacheTest.php index de4625ccf65..279f92729a2 100644 --- a/core/tests/Drupal/Tests/Core/Cache/VariationCacheTest.php +++ b/core/tests/Drupal/Tests/Core/Cache/VariationCacheTest.php @@ -635,7 +635,7 @@ class VariationCacheTest extends UnitTestCase { * @param \Drupal\Core\Cache\CacheableMetadata $initial_cacheability * The initial cacheability that should be used. */ - protected function setVariationCacheItem($data, CacheableMetadata $cacheability, CacheableMetadata $initial_cacheability) { + protected function setVariationCacheItem($data, CacheableMetadata $cacheability, CacheableMetadata $initial_cacheability): void { $this->variationCache->set($this->cacheKeys, $data, $cacheability, $initial_cacheability); } @@ -649,7 +649,7 @@ class VariationCacheTest extends UnitTestCase { * @param \Drupal\Core\Cache\CacheableMetadata $initial_cacheability * The initial cacheability that should be used. */ - protected function assertVariationCacheItem($data, CacheableMetadata $cacheability, CacheableMetadata $initial_cacheability) { + protected function assertVariationCacheItem($data, CacheableMetadata $cacheability, CacheableMetadata $initial_cacheability): void { $cache_item = $this->variationCache->get($this->cacheKeys, $initial_cacheability); $this->assertNotFalse($cache_item, 'Variable data was stored and retrieved successfully.'); $this->assertEquals($data, $cache_item->data, 'Variable cache item contains the right data.'); @@ -662,7 +662,7 @@ class VariationCacheTest extends UnitTestCase { * @param \Drupal\Core\Cache\CacheableMetadata $initial_cacheability * The initial cacheability that should be used. */ - protected function assertVariationCacheMiss(CacheableMetadata $initial_cacheability) { + protected function assertVariationCacheMiss(CacheableMetadata $initial_cacheability): void { $this->assertFalse($this->variationCache->get($this->cacheKeys, $initial_cacheability), 'Nothing could be retrieved for the active cache contexts.'); } @@ -677,7 +677,7 @@ class VariationCacheTest extends UnitTestCase { * (optional) The cacheability that should have been used. Does not apply * when checking for cache redirects. */ - protected function assertCacheBackendItem(string $cid, $data, ?CacheableMetadata $cacheability = NULL) { + protected function assertCacheBackendItem(string $cid, $data, ?CacheableMetadata $cacheability = NULL): void { $cache_backend_item = $this->memoryBackend->get($cid); $this->assertNotFalse($cache_backend_item, 'The data was stored and retrieved successfully.'); $this->assertEquals($data, $cache_backend_item->data, 'Cache item contains the right data.'); diff --git a/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php index 03c2aa85c9f..ea6f6a73783 100644 --- a/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php +++ b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php @@ -733,7 +733,7 @@ class TestConfigEntityWithPluginCollections extends ConfigEntityBaseWithPluginCo protected array $the_plugin_collection_config = []; - public function setPluginManager(PluginManagerInterface $plugin_manager) { + public function setPluginManager(PluginManagerInterface $plugin_manager): void { $this->pluginManager = $plugin_manager; } diff --git a/core/tests/Drupal/Tests/Core/Config/ReadOnlyStorageTest.php b/core/tests/Drupal/Tests/Core/Config/ReadOnlyStorageTest.php index 7d5dc0eed6b..13342b0112c 100644 --- a/core/tests/Drupal/Tests/Core/Config/ReadOnlyStorageTest.php +++ b/core/tests/Drupal/Tests/Core/Config/ReadOnlyStorageTest.php @@ -183,7 +183,7 @@ class ReadOnlyStorageTest extends UnitTestCase { * @param array $config * The config keys, keyed by the collection. */ - protected function setRandomFixtureConfig($config) { + protected function setRandomFixtureConfig($config): void { // Erase previous fixture. foreach (array_merge([StorageInterface::DEFAULT_COLLECTION], $this->memory->getAllCollectionNames()) as $collection) { $this->memory->createCollection($collection)->deleteAll(); diff --git a/core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php b/core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php index a9f0a881ce1..899f3ba0bc0 100644 --- a/core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php +++ b/core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php @@ -294,7 +294,7 @@ class StorageComparerTest extends UnitTestCase { * @param string $prefix * The prefix for random names to make sure they are unique. */ - protected function generateRandomData(StorageInterface $storage, string $prefix = '') { + protected function generateRandomData(StorageInterface $storage, string $prefix = ''): void { $generator = $this->getRandomGenerator(); for ($i = 0; $i < rand(2, 10); $i++) { $storage->write($prefix . $this->randomMachineName(), (array) $generator->object()); diff --git a/core/tests/Drupal/Tests/Core/Config/StorageCopyTraitTest.php b/core/tests/Drupal/Tests/Core/Config/StorageCopyTraitTest.php index ef2e486a54d..8a64287ea0f 100644 --- a/core/tests/Drupal/Tests/Core/Config/StorageCopyTraitTest.php +++ b/core/tests/Drupal/Tests/Core/Config/StorageCopyTraitTest.php @@ -101,7 +101,7 @@ class StorageCopyTraitTest extends UnitTestCase { * @param bool $collections * Add random collections or not. */ - protected function generateRandomData(StorageInterface $storage, $collections = TRUE) { + protected function generateRandomData(StorageInterface $storage, $collections = TRUE): void { $generator = $this->getRandomGenerator(); for ($i = 0; $i < rand(2, 10); $i++) { $storage->write($this->randomMachineName(), (array) $generator->object()); @@ -179,7 +179,7 @@ class TestStorage extends MemoryStorage { * This method allows us to create invalid configurations. The method * ::write() only allows values of the type array. */ - public function setValue($name, $value) { + public function setValue($name, $value): void { $this->config[$this->collection][$name] = $value; } diff --git a/core/tests/Drupal/Tests/Core/CronTest.php b/core/tests/Drupal/Tests/Core/CronTest.php index 6326f4c38d6..40ae8fb1743 100644 --- a/core/tests/Drupal/Tests/Core/CronTest.php +++ b/core/tests/Drupal/Tests/Core/CronTest.php @@ -167,7 +167,7 @@ class CronTest extends UnitTestCase { /** * Resets the testing state. */ - protected function resetTestingState() { + protected function resetTestingState(): void { $this->queue->deleteQueue(); $this->state->set('cron_test.message_logged', FALSE); $this->state->set('cron_test.requeue_count', NULL); diff --git a/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php b/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php index e01add01477..7018c36463a 100644 --- a/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php +++ b/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php @@ -162,14 +162,14 @@ class FakeAutoloader { * @param bool $prepend * Whether to prepend the autoloader or not */ - public function register($prepend = FALSE) { + public function register($prepend = FALSE): void { spl_autoload_register([$this, 'loadClass'], TRUE, $prepend); } /** * Deregisters this instance as an autoloader. */ - public function unregister() { + public function unregister(): void { spl_autoload_unregister([$this, 'loadClass']); } diff --git a/core/tests/Drupal/Tests/Core/DrupalTest.php b/core/tests/Drupal/Tests/Core/DrupalTest.php index a009151df0b..a7394a51d5c 100644 --- a/core/tests/Drupal/Tests/Core/DrupalTest.php +++ b/core/tests/Drupal/Tests/Core/DrupalTest.php @@ -466,7 +466,7 @@ class DrupalTest extends UnitTestCase { * @param mixed $return * The value to return from the mocked container get() method. */ - protected function setMockContainerService($service_name, $return = NULL) { + protected function setMockContainerService($service_name, $return = NULL): void { $expects = $this->container->expects($this->once()) ->method('get') ->with($service_name) diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php index 8a56ad19a8a..e573bf54d35 100644 --- a/core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php @@ -190,7 +190,7 @@ class EntityFieldManagerTest extends UnitTestCase { * @param \Drupal\Core\Entity\EntityTypeInterface[]|\Prophecy\Prophecy\ProphecyInterface[] $definitions * (optional) An array of entity type definitions. */ - protected function setUpEntityTypeDefinitions($definitions = []) { + protected function setUpEntityTypeDefinitions($definitions = []): void { foreach ($definitions as $key => $entity_type) { // \Drupal\Core\Entity\EntityTypeInterface::getLinkTemplates() is called // by \Drupal\Core\Entity\EntityTypeManager::processDefinition() so it must diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php index 1c34d09d194..f39f861070c 100644 --- a/core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php @@ -439,7 +439,7 @@ class EntityResolverManagerTest extends UnitTestCase { /** * Creates the entity type manager mock returning entity type objects. */ - protected function setupEntityTypes() { + protected function setupEntityTypes(): void { $definition = $this->createMock('Drupal\Core\Entity\EntityTypeInterface'); $definition->expects($this->any()) ->method('getClass') diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php index 55742942e03..2a3f2c8eb78 100644 --- a/core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php @@ -112,7 +112,7 @@ class EntityTypeBundleInfoTest extends UnitTestCase { * @param \Drupal\Core\Entity\EntityTypeInterface[]|\Prophecy\Prophecy\ProphecyInterface[] $definitions * (optional) An array of entity type definitions. */ - protected function setUpEntityTypeDefinitions($definitions = []) { + protected function setUpEntityTypeDefinitions($definitions = []): void { foreach ($definitions as $key => $entity_type) { // \Drupal\Core\Entity\EntityTypeInterface::getLinkTemplates() is called // by \Drupal\Core\Entity\EntityTypeManager::processDefinition() so it diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php index 3cd018285c0..ab84e16880d 100644 --- a/core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php @@ -95,7 +95,7 @@ class EntityTypeManagerTest extends UnitTestCase { * @param \Drupal\Core\Entity\EntityTypeInterface[]|\Prophecy\Prophecy\ProphecyInterface[] $definitions * (optional) An array of entity type definitions. */ - protected function setUpEntityTypeDefinitions($definitions = []) { + protected function setUpEntityTypeDefinitions($definitions = []): void { $class = get_class($this->createMock(EntityInterface::class)); foreach ($definitions as $key => $entity_type) { // \Drupal\Core\Entity\EntityTypeInterface::getLinkTemplates() is called @@ -486,7 +486,7 @@ class TestEntityTypeManager extends EntityTypeManager { * @param \Drupal\Component\Plugin\Discovery\DiscoveryInterface $discovery * The discovery object. */ - public function setDiscovery(DiscoveryInterface $discovery) { + public function setDiscovery(DiscoveryInterface $discovery): void { $this->discovery = $discovery; } diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityTypeRepositoryTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityTypeRepositoryTest.php index a5d46ebb761..9d410bd17da 100644 --- a/core/tests/Drupal/Tests/Core/Entity/EntityTypeRepositoryTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/EntityTypeRepositoryTest.php @@ -61,7 +61,7 @@ class EntityTypeRepositoryTest extends UnitTestCase { * @param \Drupal\Core\Entity\EntityTypeInterface[]|\Prophecy\Prophecy\ProphecyInterface[] $definitions * (optional) An array of entity type definitions. */ - protected function setUpEntityTypeDefinitions($definitions = []) { + protected function setUpEntityTypeDefinitions($definitions = []): void { foreach ($definitions as $key => $entity_type) { // \Drupal\Core\Entity\EntityTypeInterface::getLinkTemplates() is called // by \Drupal\Core\Entity\EntityTypeManager::processDefinition() so it must diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php index 199c79e8f69..c1c1f58894e 100644 --- a/core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php @@ -230,7 +230,7 @@ class EntityUnitTest extends UnitTestCase { /** * Setup for the tests of the ::load() method. */ - public function setupTestLoad() { + public function setupTestLoad(): void { // Base our mocked entity on a real entity class so we can test if calling // EntityBase::load() on the base class will bubble up to an actual entity. $this->entityTypeId = 'entity_test_mul'; diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php index 022928797ae..271af88f2ce 100644 --- a/core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php @@ -530,7 +530,7 @@ class EntityUrlTest extends UnitTestCase { * @param string $link_template * The link template to register. */ - protected function registerLinkTemplate($link_template) { + protected function registerLinkTemplate($link_template): void { $link_templates = [ // The path is actually never used because we never invoke the URL // generator but perform assertions on the URL object directly. @@ -545,7 +545,7 @@ class EntityUrlTest extends UnitTestCase { * @param array $bundle_info * The bundle information to register. */ - protected function registerBundleInfo($bundle_info) { + protected function registerBundleInfo($bundle_info): void { $this->entityTypeBundleInfo ->getBundleInfo(static::ENTITY_TYPE_ID) ->willReturn([static::ENTITY_TYPE_ID => $bundle_info]); diff --git a/core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php b/core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php index d7c944852d2..d66a3746206 100644 --- a/core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php @@ -101,7 +101,7 @@ class KeyValueEntityStorageTest extends UnitTestCase { * @param string $uuid_key * (optional) The entity key used for the UUID. Defaults to 'uuid'. */ - protected function setUpKeyValueEntityStorage($uuid_key = 'uuid') { + protected function setUpKeyValueEntityStorage($uuid_key = 'uuid'): void { $this->entityType->expects($this->atLeastOnce()) ->method('getKey') ->willReturnMap([ diff --git a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php index e37afd82ab2..56af7a64cd1 100644 --- a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php @@ -1337,7 +1337,7 @@ class SqlContentEntityStorageSchemaTest extends UnitTestCase { * (optional) An associative array describing the expected entity schema to * be created. Defaults to expecting nothing. */ - protected function setUpStorageSchema(array $expected = []) { + protected function setUpStorageSchema(array $expected = []): void { $this->entityTypeManager ->getDefinition($this->entityType->id()) ->willReturn($this->entityType); @@ -1419,7 +1419,7 @@ class SqlContentEntityStorageSchemaTest extends UnitTestCase { * The schema array of the field definition, as returned from * FieldStorageDefinitionInterface::getSchema(). */ - public function setUpStorageDefinition($field_name, array $schema) { + public function setUpStorageDefinition($field_name, array $schema): void { $this->storageDefinitions[$field_name] = $this->createMock('Drupal\Tests\Core\Field\TestBaseFieldDefinitionInterface'); $this->storageDefinitions[$field_name]->expects($this->any()) ->method('isBaseField') diff --git a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php index 3b36cdb3a34..fe60e94d80c 100644 --- a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php @@ -1156,7 +1156,7 @@ class SqlContentEntityStorageTest extends UnitTestCase { /** * Sets up the content entity database storage. */ - protected function setUpEntityStorage() { + protected function setUpEntityStorage(): void { $this->connection = $this->getMockBuilder('Drupal\Core\Database\Connection') ->disableOriginalConstructor() ->getMock(); @@ -1448,7 +1448,7 @@ class SqlContentEntityStorageTest extends UnitTestCase { /** * Sets up the module handler with no implementations. */ - protected function setUpModuleHandlerNoImplementations() { + protected function setUpModuleHandlerNoImplementations(): void { $this->moduleHandler->expects($this->any()) ->method('invokeAllWith') ->willReturnMap([ diff --git a/core/tests/Drupal/Tests/Core/Extension/ExtensionDiscoveryTest.php b/core/tests/Drupal/Tests/Core/Extension/ExtensionDiscoveryTest.php index eeedcf4f92b..7526cd575fd 100644 --- a/core/tests/Drupal/Tests/Core/Extension/ExtensionDiscoveryTest.php +++ b/core/tests/Drupal/Tests/Core/Extension/ExtensionDiscoveryTest.php @@ -194,7 +194,7 @@ class ExtensionDiscoveryTest extends UnitTestCase { * @param string $content * The contents of the file. */ - protected function addFileToFilesystemStructure(array &$filesystem_structure, array $pieces, $content) { + protected function addFileToFilesystemStructure(array &$filesystem_structure, array $pieces, $content): void { $piece = array_shift($pieces); if ($pieces !== []) { $filesystem_structure += [$piece => []]; diff --git a/core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php b/core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php index d0142c9035f..36e1c4b080c 100644 --- a/core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php +++ b/core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php @@ -337,11 +337,11 @@ class TestExtension extends ExtensionList { * @param \Drupal\Core\Extension\ExtensionDiscovery $extension_discovery * The extension discovery class. */ - public function setExtensionDiscovery(ExtensionDiscovery $extension_discovery) { + public function setExtensionDiscovery(ExtensionDiscovery $extension_discovery): void { $this->extensionDiscovery = $extension_discovery; } - public function setInstalledExtensions(array $extension_names) { + public function setInstalledExtensions(array $extension_names): void { $this->installedExtensions = $extension_names; } diff --git a/core/tests/Drupal/Tests/Core/Extension/ThemeExtensionListTest.php b/core/tests/Drupal/Tests/Core/Extension/ThemeExtensionListTest.php index 37cfa0f62c1..e58a86b1a09 100644 --- a/core/tests/Drupal/Tests/Core/Extension/ThemeExtensionListTest.php +++ b/core/tests/Drupal/Tests/Core/Extension/ThemeExtensionListTest.php @@ -259,7 +259,7 @@ trait SettableDiscoveryExtensionListTrait { * @param \Drupal\Core\Extension\ExtensionDiscovery $discovery * The extension discovery. */ - public function setExtensionDiscovery(ExtensionDiscovery $discovery) { + public function setExtensionDiscovery(ExtensionDiscovery $discovery): void { $this->extensionDiscovery = $discovery; } diff --git a/core/tests/Drupal/Tests/Core/Extension/ThemeHandlerTest.php b/core/tests/Drupal/Tests/Core/Extension/ThemeHandlerTest.php index 7003c974640..2196741063c 100644 --- a/core/tests/Drupal/Tests/Core/Extension/ThemeHandlerTest.php +++ b/core/tests/Drupal/Tests/Core/Extension/ThemeHandlerTest.php @@ -132,14 +132,14 @@ class StubThemeHandler extends ThemeHandler { /** * {@inheritdoc} */ - protected function clearCssCache() { + protected function clearCssCache(): void { $this->clearedCssCache = TRUE; } /** * {@inheritdoc} */ - protected function themeRegistryRebuild() { + protected function themeRegistryRebuild(): void { $this->registryRebuild = TRUE; } diff --git a/core/tests/Drupal/Tests/Core/Field/FieldDefinitionListenerTest.php b/core/tests/Drupal/Tests/Core/Field/FieldDefinitionListenerTest.php index 7486fb1c3b8..8b54cdc470f 100644 --- a/core/tests/Drupal/Tests/Core/Field/FieldDefinitionListenerTest.php +++ b/core/tests/Drupal/Tests/Core/Field/FieldDefinitionListenerTest.php @@ -78,7 +78,7 @@ class FieldDefinitionListenerTest extends UnitTestCase { * @param \Drupal\Core\Entity\EntityTypeInterface[]|\Prophecy\Prophecy\ProphecyInterface[] $definitions * (optional) An array of entity type definitions. */ - protected function setUpEntityTypeManager($definitions = []) { + protected function setUpEntityTypeManager($definitions = []): void { foreach ($definitions as $key => $entity_type) { // \Drupal\Core\Entity\EntityTypeInterface::getLinkTemplates() is called // by \Drupal\Core\Entity\EntityTypeManager::processDefinition() so it must diff --git a/core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php b/core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php index 7b99fc5a2c1..7299a0a6cac 100644 --- a/core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php +++ b/core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php @@ -1031,7 +1031,7 @@ class TestFormWithPredefinedForm extends TestForm { */ protected $form; - public function setForm($form) { + public function setForm($form): void { $this->form = $form; } diff --git a/core/tests/Drupal/Tests/Core/Layout/LayoutPluginManagerTest.php b/core/tests/Drupal/Tests/Core/Layout/LayoutPluginManagerTest.php index 3388c7a3010..2aa049926dc 100644 --- a/core/tests/Drupal/Tests/Core/Layout/LayoutPluginManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Layout/LayoutPluginManagerTest.php @@ -382,7 +382,7 @@ EOS; /** * Sets up the filesystem with YAML files and annotated plugins. */ - protected function setUpFilesystem() { + protected function setUpFilesystem(): void { $module_a_provided_layout = <<<'EOS' module_a_provided_layout: label: 1 column layout diff --git a/core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php b/core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php index 4184a022d69..e1e15cf4be2 100644 --- a/core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php @@ -111,7 +111,7 @@ class MailManagerTest extends UnitTestCase { /** * Sets up the mail manager for testing. */ - protected function setUpMailManager($interface = []) { + protected function setUpMailManager($interface = []): void { // Use the provided config for system.mail.interface settings. $this->configFactory = $this->getConfigFactoryStub([ 'system.mail' => [ @@ -206,7 +206,7 @@ class TestMailManager extends MailManager { * @param \Drupal\Component\Plugin\Discovery\DiscoveryInterface $discovery * The discovery object. */ - public function setDiscovery(DiscoveryInterface $discovery) { + public function setDiscovery(DiscoveryInterface $discovery): void { $this->discovery = $discovery; } diff --git a/core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php b/core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php index 00663971b36..cc81534dbe1 100644 --- a/core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php +++ b/core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php @@ -61,7 +61,7 @@ class ContextualLinkDefaultTest extends UnitTestCase { $this->stringTranslation = $this->createMock('Drupal\Core\StringTranslation\TranslationInterface'); } - protected function setupContextualLinkDefault() { + protected function setupContextualLinkDefault(): void { $this->contextualLinkDefault = new ContextualLinkDefault($this->config, $this->pluginId, $this->pluginDefinition); } diff --git a/core/tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php b/core/tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php index 761eb3b1503..10090a0cee6 100644 --- a/core/tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php +++ b/core/tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php @@ -118,7 +118,7 @@ class DefaultMenuLinkTreeManipulatorsTest extends UnitTestCase { * * With link 6 being the only external link. */ - protected function mockTree() { + protected function mockTree(): void { $this->links = [ 1 => MenuLinkMock::create(['id' => 'test.example1', 'route_name' => 'example1', 'title' => 'foo', 'parent' => '']), 2 => MenuLinkMock::create(['id' => 'test.example2', 'route_name' => 'example2', 'title' => 'bar', 'parent' => 'test.example1', 'route_parameters' => ['foo' => 'bar']]), diff --git a/core/tests/Drupal/Tests/Core/Menu/LocalActionDefaultTest.php b/core/tests/Drupal/Tests/Core/Menu/LocalActionDefaultTest.php index 85d1c6989da..97704b2d0a7 100644 --- a/core/tests/Drupal/Tests/Core/Menu/LocalActionDefaultTest.php +++ b/core/tests/Drupal/Tests/Core/Menu/LocalActionDefaultTest.php @@ -72,7 +72,7 @@ class LocalActionDefaultTest extends UnitTestCase { /** * Setups the local action default. */ - protected function setupLocalActionDefault() { + protected function setupLocalActionDefault(): void { $this->localActionDefault = new LocalActionDefault($this->config, $this->pluginId, $this->pluginDefinition, $this->routeProvider); } diff --git a/core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php b/core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php index 8548e3cee16..69d4c22ba36 100644 --- a/core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php +++ b/core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php @@ -74,7 +74,7 @@ class LocalTaskDefaultTest extends UnitTestCase { /** * Setups the local task default. */ - protected function setupLocalTaskDefault() { + protected function setupLocalTaskDefault(): void { $this->localTaskBase = new TestLocalTaskDefault($this->config, $this->pluginId, $this->pluginDefinition); $this->localTaskBase ->setRouteProvider($this->routeProvider); diff --git a/core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php b/core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php index 8b19d2f0b28..4b9504eb3b3 100644 --- a/core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php @@ -240,7 +240,7 @@ class LocalTaskManagerTest extends UnitTestCase { /** * Setups the local task manager for the test. */ - protected function setupLocalTaskManager() { + protected function setupLocalTaskManager(): void { $request_stack = new RequestStack(); $request_stack->push($this->request); $module_handler = $this->createMock('Drupal\Core\Extension\ModuleHandlerInterface'); @@ -324,7 +324,7 @@ class LocalTaskManagerTest extends UnitTestCase { * @param \PHPUnit\Framework\MockObject\MockObject $mock_plugin * The mock plugin. */ - protected function setupFactory($mock_plugin) { + protected function setupFactory($mock_plugin): void { $map = []; foreach ($this->getLocalTaskFixtures() as $info) { $map[] = [$info['id'], [], $mock_plugin]; @@ -433,7 +433,7 @@ class LocalTaskManagerTest extends UnitTestCase { $this->assertEqualsCanonicalizing(['context.example1', 'context.example2', 'route', 'user.permissions'], $cacheability->getCacheContexts()); } - protected function setupFactoryAndLocalTaskPlugins(array $definitions, $active_plugin_id) { + protected function setupFactoryAndLocalTaskPlugins(array $definitions, $active_plugin_id): void { $map = []; $access_manager_map = []; @@ -466,7 +466,7 @@ class LocalTaskManagerTest extends UnitTestCase { ->willReturnMap($map); } - protected function setupNullCacheabilityMetadataValidation() { + protected function setupNullCacheabilityMetadataValidation(): void { $container = \Drupal::hasContainer() ? \Drupal::getContainer() : new ContainerBuilder(); $cache_context_manager = $this->prophesize(CacheContextsManager::class); diff --git a/core/tests/Drupal/Tests/Core/ParamConverter/EntityConverterTest.php b/core/tests/Drupal/Tests/Core/ParamConverter/EntityConverterTest.php index e0043a8467d..80c66b5dea2 100644 --- a/core/tests/Drupal/Tests/Core/ParamConverter/EntityConverterTest.php +++ b/core/tests/Drupal/Tests/Core/ParamConverter/EntityConverterTest.php @@ -65,7 +65,7 @@ class EntityConverterTest extends UnitTestCase { * @param object[] $service_map * An associative array of service instances keyed by service name. */ - protected function setUpMocks($service_map = []) { + protected function setUpMocks($service_map = []): void { $entity = $this->createMock(ContentEntityInterface::class); $entity->expects($this->any()) ->method('getEntityTypeId') diff --git a/core/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php b/core/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php index a7de9884d9c..0e09ee0cce5 100644 --- a/core/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php +++ b/core/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php @@ -154,7 +154,7 @@ class CategorizingPluginManager extends DefaultPluginManager implements Categori /** * {@inheritdoc} */ - public function processDefinition(&$definition, $plugin_id) { + public function processDefinition(&$definition, $plugin_id): void { parent::processDefinition($definition, $plugin_id); $this->processDefinitionCategory($definition); } diff --git a/core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php b/core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php index fef689c098c..88c2a42eea6 100644 --- a/core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php +++ b/core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php @@ -136,7 +136,7 @@ class ContextTest extends UnitTestCase { * @param mixed $default_value * The default value to assign to the mock context definition. */ - protected function setUpDefaultValue($default_value = NULL) { + protected function setUpDefaultValue($default_value = NULL): void { $mock_data_definition = $this->createMock('Drupal\Core\TypedData\DataDefinitionInterface'); $this->contextDefinition = $this->createMock('Drupal\Core\Plugin\Context\ContextDefinitionInterface'); diff --git a/core/tests/Drupal/Tests/Core/Plugin/DefaultSingleLazyPluginCollectionTest.php b/core/tests/Drupal/Tests/Core/Plugin/DefaultSingleLazyPluginCollectionTest.php index c428a9c78db..78d3a823004 100644 --- a/core/tests/Drupal/Tests/Core/Plugin/DefaultSingleLazyPluginCollectionTest.php +++ b/core/tests/Drupal/Tests/Core/Plugin/DefaultSingleLazyPluginCollectionTest.php @@ -18,7 +18,7 @@ class DefaultSingleLazyPluginCollectionTest extends LazyPluginCollectionTestBase /** * {@inheritdoc} */ - protected function setupPluginCollection(?InvocationOrder $create_count = NULL) { + protected function setupPluginCollection(?InvocationOrder $create_count = NULL): void { $definitions = $this->getPluginDefinitions(); $this->pluginInstances['apple'] = new ConfigurablePlugin(['id' => 'apple', 'key' => 'value'], 'apple', $definitions['apple']); $this->pluginInstances['banana'] = new ConfigurablePlugin(['id' => 'banana', 'key' => 'other_value'], 'banana', $definitions['banana']); @@ -111,7 +111,7 @@ class ConfigurablePlugin extends PluginBase implements ConfigurableInterface { return $this->configuration; } - public function setConfiguration(array $configuration) { + public function setConfiguration(array $configuration): void { $this->configuration = $configuration; } diff --git a/core/tests/Drupal/Tests/Core/Plugin/PluginDependencyTraitTest.php b/core/tests/Drupal/Tests/Core/Plugin/PluginDependencyTraitTest.php index ac07454f576..8008a80c946 100644 --- a/core/tests/Drupal/Tests/Core/Plugin/PluginDependencyTraitTest.php +++ b/core/tests/Drupal/Tests/Core/Plugin/PluginDependencyTraitTest.php @@ -181,11 +181,11 @@ class TestPluginDependency { protected $themeHandler; - public function setModuleHandler(ModuleHandlerInterface $module_handler) { + public function setModuleHandler(ModuleHandlerInterface $module_handler): void { $this->moduleHandler = $module_handler; } - public function setThemeHandler(ThemeHandlerInterface $theme_handler) { + public function setThemeHandler(ThemeHandlerInterface $theme_handler): void { $this->themeHandler = $theme_handler; } diff --git a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php index 6a2a73fb241..cd720518007 100644 --- a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php +++ b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php @@ -550,7 +550,7 @@ class RendererPlaceholdersTest extends RendererTestBase { * * @internal */ - protected function assertPlaceholderRenderCache($cache_keys, array $expected_data) { + protected function assertPlaceholderRenderCache($cache_keys, array $expected_data): void { if ($cache_keys !== FALSE) { $cached = $this->memoryCache->get($cache_keys, CacheableMetadata::createFromRenderArray($expected_data)); $cached_element = $cached->data; diff --git a/core/tests/Drupal/Tests/Core/Routing/AccessAwareRouterTest.php b/core/tests/Drupal/Tests/Core/Routing/AccessAwareRouterTest.php index 1b7aaa74881..8587efbf478 100644 --- a/core/tests/Drupal/Tests/Core/Routing/AccessAwareRouterTest.php +++ b/core/tests/Drupal/Tests/Core/Routing/AccessAwareRouterTest.php @@ -64,7 +64,7 @@ class AccessAwareRouterTest extends UnitTestCase { /** * Sets up a chain router with matchRequest. */ - protected function setupRouter() { + protected function setupRouter(): void { $this->router = $this->getMockBuilder('Drupal\Core\Routing\Router') ->disableOriginalConstructor() ->getMock(); diff --git a/core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php b/core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php index 199262f3f3f..60a7e0c9573 100644 --- a/core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php +++ b/core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php @@ -48,7 +48,7 @@ class RedirectDestinationTest extends UnitTestCase { $this->redirectDestination = new RedirectDestination($this->requestStack, $this->urlGenerator); } - protected function setupUrlGenerator() { + protected function setupUrlGenerator(): void { $this->urlGenerator->expects($this->any()) ->method('generateFromRoute') ->willReturnCallback(function ($route, $parameters, $options) { diff --git a/core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php b/core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php index 325a0319b48..d70ad9153d2 100644 --- a/core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php +++ b/core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php @@ -339,7 +339,7 @@ class TestRouteBuilder extends RouteBuilder { * @param \Drupal\Core\Discovery\YamlDiscovery $yaml_discovery * The YAML discovery to set. */ - public function setYamlDiscovery(YamlDiscovery $yaml_discovery) { + public function setYamlDiscovery(YamlDiscovery $yaml_discovery): void { $this->yamlDiscovery = $yaml_discovery; } diff --git a/core/tests/Drupal/Tests/Core/Security/RequestSanitizerTest.php b/core/tests/Drupal/Tests/Core/Security/RequestSanitizerTest.php index a82325167dc..0ac65036e28 100644 --- a/core/tests/Drupal/Tests/Core/Security/RequestSanitizerTest.php +++ b/core/tests/Drupal/Tests/Core/Security/RequestSanitizerTest.php @@ -356,7 +356,7 @@ class RequestSanitizerTest extends UnitTestCase { * @param string $errstr * The error message. */ - public function errorHandler($errno, $errstr) { + public function errorHandler($errno, $errstr): void { $this->errors[] = compact('errno', 'errstr'); } diff --git a/core/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php b/core/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php index 84af0968d8e..913efa25b55 100644 --- a/core/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php +++ b/core/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php @@ -103,7 +103,7 @@ class ReverseProxyMiddlewareTest extends UnitTestCase { * The expected bit value returned by * \Symfony\Component\HttpFoundation\Request::getTrustedHeaderSet() */ - protected function trustedHeadersAreSet(Settings $settings, $expected_trusted_header_set) { + protected function trustedHeadersAreSet(Settings $settings, $expected_trusted_header_set): void { $middleware = new ReverseProxyMiddleware($this->mockHttpKernel, $settings); $request = new Request(); diff --git a/core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php b/core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php index f3aca4a2466..ad8ecc0f70b 100644 --- a/core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php +++ b/core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php @@ -43,7 +43,7 @@ class TranslatableMarkupTest extends UnitTestCase { * @param string $error_message * The error message. */ - public function errorHandler($error_number, $error_message) { + public function errorHandler($error_number, $error_message): void { $this->lastErrorNumber = $error_number; $this->lastErrorMessage = $error_message; } diff --git a/core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php b/core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php index e872be58494..357565b76c7 100644 --- a/core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php +++ b/core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php @@ -231,7 +231,7 @@ EOT; $this->assertEmpty($info['description']); } - protected function setupVfsWithTestClasses() { + protected function setupVfsWithTestClasses(): void { vfsStream::setup('drupal'); $test_file = <<<EOF diff --git a/core/tests/Drupal/Tests/Core/Update/UpdateRegistryTest.php b/core/tests/Drupal/Tests/Core/Update/UpdateRegistryTest.php index 9c8f72087e1..ae79e1cda41 100644 --- a/core/tests/Drupal/Tests/Core/Update/UpdateRegistryTest.php +++ b/core/tests/Drupal/Tests/Core/Update/UpdateRegistryTest.php @@ -39,7 +39,7 @@ class UpdateRegistryTest extends UnitTestCase { /** * Sets up some extensions with some update functions. */ - protected function setupBasicExtensions() { + protected function setupBasicExtensions(): void { $info_a = <<<'EOS' type: module name: Module A diff --git a/core/tests/Drupal/Tests/Core/UrlTest.php b/core/tests/Drupal/Tests/Core/UrlTest.php index 1693234623d..840b570db8a 100644 --- a/core/tests/Drupal/Tests/Core/UrlTest.php +++ b/core/tests/Drupal/Tests/Core/UrlTest.php @@ -829,7 +829,7 @@ class TestUrl extends Url { * @param \Drupal\Core\Access\AccessManagerInterface $access_manager * The access manager. */ - public function setAccessManager(AccessManagerInterface $access_manager) { + public function setAccessManager(AccessManagerInterface $access_manager): void { $this->accessManager = $access_manager; } diff --git a/core/tests/Drupal/Tests/Core/Utility/TokenTest.php b/core/tests/Drupal/Tests/Core/Utility/TokenTest.php index df3ede5da3b..68e5633bf14 100644 --- a/core/tests/Drupal/Tests/Core/Utility/TokenTest.php +++ b/core/tests/Drupal/Tests/Core/Utility/TokenTest.php @@ -334,7 +334,7 @@ class TokenTest extends UnitTestCase { /** * Sets up the token library to return site tokens. */ - protected function setupSiteTokens() { + protected function setupSiteTokens(): void { // The site name is plain text, but the slogan is markup. $tokens = [ '[site:name]' => 'Your <best> buys', diff --git a/core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php b/core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php index 06c212486ce..b8ba4752fb4 100644 --- a/core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php +++ b/core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php @@ -200,7 +200,7 @@ class UnroutedUrlAssemblerTest extends UnitTestCase { * @param bool $subdir * TRUE to use a subdir. */ - protected function setupRequestStack($subdir) { + protected function setupRequestStack($subdir): void { $server = []; if ($subdir) { // Setup a fake request which looks like a Drupal installed under the diff --git a/core/tests/Drupal/Tests/PhpCs/SortTest.php b/core/tests/Drupal/Tests/PhpCs/SortTest.php index ec8b04eb5af..f9b0abf8083 100644 --- a/core/tests/Drupal/Tests/PhpCs/SortTest.php +++ b/core/tests/Drupal/Tests/PhpCs/SortTest.php @@ -81,7 +81,7 @@ class SortTest extends TestCase { * @param null|string $column * The column of the value or NULL. */ - private function assertSorted(array $input, ?string $column = NULL) { + private function assertSorted(array $input, ?string $column = NULL): void { $input_sorted = $input; if ($column === NULL) { |