From f7644084d40c4cefb8f563788da4220cadcae76d Mon Sep 17 00:00:00 2001
From: Wouter Wolters <typo3@wouterwolters.nl>
Date: Sun, 28 Nov 2021 13:41:21 +0100
Subject: [PATCH] [TASK] Adapt UnitTests to changed property types in
 UnitTestCase

Adapt to a patch in typo3/testing-framework.

composer req --dev typo3/testing-framework:dev-main

Resolves: #96121
Releases: main
Change-Id: I59d6ecc92c70e75ecbb797de18110925942b8027
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72340
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
---
 composer.lock                                             | 8 ++++----
 .../Tests/Unit/Middleware/AdminPanelInitiatorTest.php     | 2 +-
 .../Tests/Unit/Controller/EditDocumentControllerTest.php  | 2 +-
 .../backend/Tests/Unit/Controller/LoginControllerTest.php | 2 +-
 .../Unit/Form/FormDataProvider/SiteResolvingTest.php      | 2 +-
 .../Tests/Unit/Form/FormDataProvider/TcaGroupTest.php     | 2 +-
 .../Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php | 2 +-
 .../backend/Tests/Unit/Form/InlineStackProcessorTest.php  | 2 +-
 .../backend/Tests/Unit/Utility/BackendUtilityTest.php     | 2 +-
 typo3/sysext/backend/Tests/Unit/View/ArrayBrowserTest.php | 2 +-
 .../Tests/Unit/View/BackendLayout/BackendLayoutTest.php   | 2 +-
 .../Unit/Authentication/AuthenticationServiceTest.php     | 2 +-
 .../Tests/Unit/Authentication/Mfa/Provider/TotpTest.php   | 2 +-
 .../core/Tests/Unit/Cache/Backend/AbstractBackendTest.php | 2 +-
 .../core/Tests/Unit/Cache/Backend/ApcuBackendTest.php     | 2 +-
 .../core/Tests/Unit/Cache/Backend/FileBackendTest.php     | 2 +-
 .../Unit/Cache/Backend/TransientMemoryBackendTest.php     | 2 +-
 .../Tests/Unit/Cache/Backend/Typo3DatabaseBackendTest.php | 2 +-
 .../Unit/Configuration/FlexForm/FlexFormToolsTest.php     | 2 +-
 .../Tests/Unit/Configuration/SiteConfigurationTest.php    | 2 +-
 .../ConditionMatching/AbstractConditionMatcherTest.php    | 2 +-
 .../core/Tests/Unit/DataHandling/DataHandlerTest.php      | 2 +-
 .../core/Tests/Unit/DataHandling/SlugHelperTest.php       | 2 +-
 .../SoftReference/AbstractSoftReferenceParserTest.php     | 2 +-
 .../Restriction/FrontendRestrictionContainerTest.php      | 2 +-
 .../Restriction/FrontendWorkspaceRestrictionTest.php      | 2 +-
 .../Unit/Database/Schema/Parser/TableBuilderTest.php      | 2 +-
 .../core/Tests/Unit/Database/Schema/SqlReaderTest.php     | 2 +-
 typo3/sysext/core/Tests/Unit/Error/ErrorHandlerTest.php   | 2 +-
 .../Tests/Unit/Error/ProductionExceptionHandlerTest.php   | 2 +-
 typo3/sysext/core/Tests/Unit/Html/RteHtmlParserTest.php   | 2 +-
 .../core/Tests/Unit/Imaging/GraphicalFunctionsTest.php    | 2 +-
 typo3/sysext/core/Tests/Unit/Imaging/IconFactoryTest.php  | 2 +-
 .../sysext/core/Tests/Unit/Imaging/ImageDimensionTest.php | 2 +-
 typo3/sysext/core/Tests/Unit/Localization/LocalesTest.php | 2 +-
 .../Unit/Localization/TcaSystemLanguageCollectorTest.php  | 2 +-
 typo3/sysext/core/Tests/Unit/Mail/FileSpoolTest.php       | 2 +-
 typo3/sysext/core/Tests/Unit/Mail/MailMessageTest.php     | 2 +-
 typo3/sysext/core/Tests/Unit/Mail/MailerTest.php          | 2 +-
 .../sysext/core/Tests/Unit/Mail/TransportFactoryTest.php  | 2 +-
 .../Tests/Unit/MetaTag/MetaTagManagerRegistryTest.php     | 2 +-
 .../core/Tests/Unit/Resource/Driver/LocalDriverTest.php   | 4 ++--
 typo3/sysext/core/Tests/Unit/Resource/FileTest.php        | 2 +-
 typo3/sysext/core/Tests/Unit/Resource/FolderTest.php      | 2 +-
 .../sysext/core/Tests/Unit/Resource/ProcessedFileTest.php | 2 +-
 .../Unit/Resource/Processing/ProcessorRegistryTest.php    | 2 +-
 .../core/Tests/Unit/Resource/RelativeCssPathFixerTest.php | 2 +-
 .../Unit/Resource/ResourceCompressorIntegrationTest.php   | 2 +-
 .../core/Tests/Unit/Resource/ResourceCompressorTest.php   | 2 +-
 .../core/Tests/Unit/Resource/ResourceFactoryTest.php      | 4 ++--
 .../core/Tests/Unit/Resource/ResourceStorageTest.php      | 2 +-
 typo3/sysext/core/Tests/Unit/Routing/PageRouterTest.php   | 2 +-
 .../core/Tests/Unit/Service/FlexFormServiceTest.php       | 2 +-
 .../Tests/Unit/Service/MarkerBasedTemplateServiceTest.php | 2 +-
 .../TypoScript/Parser/ConstantConfigurationParserTest.php | 2 +-
 .../Tests/Unit/Utility/ExtensionManagementUtilityTest.php | 2 +-
 .../sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php | 4 ++--
 typo3/sysext/core/Tests/Unit/Utility/MailUtilityTest.php  | 2 +-
 .../Tests/Unit/Utility/PathUtilityPublicPathsTest.php     | 2 +-
 typo3/sysext/core/Tests/Unit/Utility/PathUtilityTest.php  | 2 +-
 .../Utility/ExtensionManagementUtilityTest.php            | 2 +-
 .../UnitDeprecated/Utility/PathUtilityPublicPathsTest.php | 2 +-
 .../dashboard/Tests/Unit/DashboardPresetRegistryTest.php  | 2 +-
 .../dashboard/Tests/Unit/WidgetGroupRegistryTest.php      | 2 +-
 typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php  | 2 +-
 .../Configuration/AbstractConfigurationManagerTest.php    | 2 +-
 .../Tests/Unit/Mvc/Controller/ActionControllerTest.php    | 2 +-
 typo3/sysext/extbase/Tests/Unit/Mvc/View/JsonViewTest.php | 2 +-
 .../extbase/Tests/Unit/Mvc/Web/Routing/UriBuilderTest.php | 2 +-
 .../extbase/Tests/Unit/Object/Container/ContainerTest.php | 2 +-
 .../Persistence/Generic/Storage/Typo3DbBackendTest.php    | 2 +-
 .../extbase/Tests/Unit/Reflection/ObjectAccessTest.php    | 2 +-
 .../extbase/Tests/Unit/Service/ExtensionServiceTest.php   | 2 +-
 .../extbase/Tests/Unit/Service/ImageScriptServiceTest.php | 2 +-
 .../UnitDeprecated/Object/Container/ContainerTest.php     | 2 +-
 .../Tests/UnitDeprecated/SignalSlot/DispatcherTest.php    | 2 +-
 .../Tests/Unit/Utility/InstallUtilityTest.php             | 4 ++--
 .../felogin/Tests/Unit/Redirect/RedirectHandlerTest.php   | 2 +-
 .../felogin/Tests/Unit/Service/RecoveryServiceTest.php    | 2 +-
 .../Tests/Unit/Validation/RedirectUrlValidatorTest.php    | 4 ++--
 .../Tests/Unit/Controller/FormEditorControllerTest.php    | 2 +-
 .../Tests/Unit/Controller/FormManagerControllerTest.php   | 2 +-
 .../Configuration/FormDefinitionConversionServiceTest.php | 2 +-
 .../Tests/Unit/Domain/Finishers/RedirectFinisherTest.php  | 2 +-
 .../Unit/Domain/FormElements/AbstractSectionTest.php      | 2 +-
 .../Unit/Domain/Renderable/RenderableVariantTest.php      | 2 +-
 .../form/Tests/Unit/Domain/Runtime/FormRuntimeTest.php    | 2 +-
 .../Tests/Unit/Hooks/DataStructureIdentifierHookTest.php  | 2 +-
 .../form/Tests/Unit/Mvc/Configuration/YamlSourceTest.php  | 2 +-
 .../Mvc/Property/PropertyMappingConfigurationTest.php     | 2 +-
 .../TypeConverter/FormDefinitionArrayConverterTest.php    | 2 +-
 .../form/Tests/Unit/Service/TranslationServiceTest.php    | 2 +-
 .../Authentication/FrontendUserAuthenticationTest.php     | 2 +-
 .../Tests/Unit/ContentObject/CaseContentObjectTest.php    | 2 +-
 .../Unit/ContentObject/ContentObjectRendererTest.php      | 4 ++--
 .../Exception/ProductionExceptionHandlerTest.php          | 2 +-
 .../Tests/Unit/ContentObject/FilesContentObjectTest.php   | 2 +-
 .../Unit/ContentObject/FluidTemplateContentObjectTest.php | 2 +-
 .../Tests/Unit/ContentObject/ImageContentObjectTest.php   | 2 +-
 .../Tests/Unit/Controller/ErrorControllerTest.php         | 2 +-
 .../Unit/Controller/TypoScriptFrontendControllerTest.php  | 2 +-
 .../frontend/Tests/Unit/Http/RequestHandlerTest.php       | 2 +-
 .../Tests/Unit/Middleware/PageArgumentValidatorTest.php   | 2 +-
 .../frontend/Tests/Unit/Middleware/PageResolverTest.php   | 2 +-
 .../Unit/Middleware/SiteBaseRedirectResolverTest.php      | 2 +-
 .../frontend/Tests/Unit/Middleware/SiteResolverTest.php   | 2 +-
 .../frontend/Tests/Unit/Plugin/AbstractPluginTest.php     | 2 +-
 .../Tests/Unit/Resource/FilePathSanitizerTest.php         | 2 +-
 .../Tests/Unit/Typolink/AbstractTypolinkBuilderTest.php   | 4 ++--
 .../ContentObject/ContentObjectRendererTest.php           | 4 ++--
 typo3/sysext/impexp/Tests/Unit/ExportTest.php             | 2 +-
 typo3/sysext/indexed_search/Tests/Unit/IndexerTest.php    | 2 +-
 .../install/Tests/Unit/Service/CoreVersionServiceTest.php | 2 +-
 .../install/Tests/Unit/Service/EnableFileServiceTest.php  | 2 +-
 .../Tests/Functional/Service/IntegrityServiceTest.php     | 2 +-
 .../redirects/Tests/Unit/Service/RedirectServiceTest.php  | 2 +-
 .../Unit/Task/CachingFrameworkGarbageCollectionTest.php   | 2 +-
 .../Unit/XmlSitemap/PagesXmlSitemapDataProviderTest.php   | 2 +-
 .../Tests/Unit/Controller/Remote/RemoteServerTest.php     | 2 +-
 119 files changed, 130 insertions(+), 130 deletions(-)

diff --git a/composer.lock b/composer.lock
index f6ee442d6017..1cd4ce087b60 100644
--- a/composer.lock
+++ b/composer.lock
@@ -8213,12 +8213,12 @@
             "source": {
                 "type": "git",
                 "url": "https://github.com/TYPO3/testing-framework.git",
-                "reference": "6e8bc19810f1760dd757a9197b0edc0af6ab39f9"
+                "reference": "e6ad4beaca4e982864c7de1da8746aed1e3f932b"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/TYPO3/testing-framework/zipball/6e8bc19810f1760dd757a9197b0edc0af6ab39f9",
-                "reference": "6e8bc19810f1760dd757a9197b0edc0af6ab39f9",
+                "url": "https://api.github.com/repos/TYPO3/testing-framework/zipball/e6ad4beaca4e982864c7de1da8746aed1e3f932b",
+                "reference": "e6ad4beaca4e982864c7de1da8746aed1e3f932b",
                 "shasum": ""
             },
             "require": {
@@ -8274,7 +8274,7 @@
                 "issues": "https://github.com/TYPO3/testing-framework/issues",
                 "source": "https://github.com/TYPO3/testing-framework/tree/main"
             },
-            "time": "2021-11-27T12:47:48+00:00"
+            "time": "2021-11-30T09:50:17+00:00"
         }
     ],
     "aliases": [],
diff --git a/typo3/sysext/adminpanel/Tests/Unit/Middleware/AdminPanelInitiatorTest.php b/typo3/sysext/adminpanel/Tests/Unit/Middleware/AdminPanelInitiatorTest.php
index 137a911ff2fc..68a73ceb39c3 100644
--- a/typo3/sysext/adminpanel/Tests/Unit/Middleware/AdminPanelInitiatorTest.php
+++ b/typo3/sysext/adminpanel/Tests/Unit/Middleware/AdminPanelInitiatorTest.php
@@ -39,7 +39,7 @@ class AdminPanelInitiatorTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/backend/Tests/Unit/Controller/EditDocumentControllerTest.php b/typo3/sysext/backend/Tests/Unit/Controller/EditDocumentControllerTest.php
index 7ca75d732917..efd9decf14a1 100644
--- a/typo3/sysext/backend/Tests/Unit/Controller/EditDocumentControllerTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Controller/EditDocumentControllerTest.php
@@ -38,7 +38,7 @@ class EditDocumentControllerTest extends UnitTestCase
     /**
      * @var bool
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/backend/Tests/Unit/Controller/LoginControllerTest.php b/typo3/sysext/backend/Tests/Unit/Controller/LoginControllerTest.php
index 6d2a129d6556..a8db5d7009ee 100644
--- a/typo3/sysext/backend/Tests/Unit/Controller/LoginControllerTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Controller/LoginControllerTest.php
@@ -39,7 +39,7 @@ class LoginControllerTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var LoginController|MockObject|AccessibleObjectInterface
diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/SiteResolvingTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/SiteResolvingTest.php
index 08b65e381c48..5b77417b0867 100644
--- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/SiteResolvingTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/SiteResolvingTest.php
@@ -30,7 +30,7 @@ class SiteResolvingTest extends UnitTestCase
 {
     use ProphecyTrait;
 
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaGroupTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaGroupTest.php
index 9042a62a9883..ac0a090ca2ae 100644
--- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaGroupTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaGroupTest.php
@@ -38,7 +38,7 @@ class TcaGroupTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php
index 84835d777958..aa963ed044d7 100644
--- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php
@@ -51,7 +51,7 @@ class TcaSelectTreeItemsTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * Setup a mock database connection with expectations for
diff --git a/typo3/sysext/backend/Tests/Unit/Form/InlineStackProcessorTest.php b/typo3/sysext/backend/Tests/Unit/Form/InlineStackProcessorTest.php
index 7a7a967119e8..e6e2062093fc 100644
--- a/typo3/sysext/backend/Tests/Unit/Form/InlineStackProcessorTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Form/InlineStackProcessorTest.php
@@ -34,7 +34,7 @@ class InlineStackProcessorTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     public function setUp(): void
     {
diff --git a/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php b/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php
index 171b2e1b207a..713680ce0b82 100644
--- a/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php
@@ -44,7 +44,7 @@ class BackendUtilityTest extends UnitTestCase
     /**
      * @var bool
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     ///////////////////////////////////////
     // Tests concerning calcAge
diff --git a/typo3/sysext/backend/Tests/Unit/View/ArrayBrowserTest.php b/typo3/sysext/backend/Tests/Unit/View/ArrayBrowserTest.php
index 4f37cc6564de..f02fe7d9ba97 100644
--- a/typo3/sysext/backend/Tests/Unit/View/ArrayBrowserTest.php
+++ b/typo3/sysext/backend/Tests/Unit/View/ArrayBrowserTest.php
@@ -25,7 +25,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
 
 class ArrayBrowserTest extends UnitTestCase
 {
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     ///////////////////////////////
     // Tests concerning depthKeys
diff --git a/typo3/sysext/backend/Tests/Unit/View/BackendLayout/BackendLayoutTest.php b/typo3/sysext/backend/Tests/Unit/View/BackendLayout/BackendLayoutTest.php
index 86d8e6b771a0..c27f455d3da2 100644
--- a/typo3/sysext/backend/Tests/Unit/View/BackendLayout/BackendLayoutTest.php
+++ b/typo3/sysext/backend/Tests/Unit/View/BackendLayout/BackendLayoutTest.php
@@ -32,7 +32,7 @@ class BackendLayoutTest extends UnitTestCase
 {
     use ProphecyTrait;
 
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/core/Tests/Unit/Authentication/AuthenticationServiceTest.php b/typo3/sysext/core/Tests/Unit/Authentication/AuthenticationServiceTest.php
index 25476cdbb386..ad71079fbdeb 100644
--- a/typo3/sysext/core/Tests/Unit/Authentication/AuthenticationServiceTest.php
+++ b/typo3/sysext/core/Tests/Unit/Authentication/AuthenticationServiceTest.php
@@ -33,7 +33,7 @@ class AuthenticationServiceTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * Date provider for processLoginReturnsCorrectData
diff --git a/typo3/sysext/core/Tests/Unit/Authentication/Mfa/Provider/TotpTest.php b/typo3/sysext/core/Tests/Unit/Authentication/Mfa/Provider/TotpTest.php
index c85eb5c44ca1..1cfd72c4de4e 100644
--- a/typo3/sysext/core/Tests/Unit/Authentication/Mfa/Provider/TotpTest.php
+++ b/typo3/sysext/core/Tests/Unit/Authentication/Mfa/Provider/TotpTest.php
@@ -28,7 +28,7 @@ class TotpTest extends UnitTestCase
 {
     protected string $secret;
     protected int $timestamp = 1613652061;
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected function setUp(): void
     {
diff --git a/typo3/sysext/core/Tests/Unit/Cache/Backend/AbstractBackendTest.php b/typo3/sysext/core/Tests/Unit/Cache/Backend/AbstractBackendTest.php
index 523913fd2687..73c12e7f8c4f 100644
--- a/typo3/sysext/core/Tests/Unit/Cache/Backend/AbstractBackendTest.php
+++ b/typo3/sysext/core/Tests/Unit/Cache/Backend/AbstractBackendTest.php
@@ -25,7 +25,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
  */
 class AbstractBackendTest extends UnitTestCase
 {
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/core/Tests/Unit/Cache/Backend/ApcuBackendTest.php b/typo3/sysext/core/Tests/Unit/Cache/Backend/ApcuBackendTest.php
index aeb8ae2e286e..2b0659757a04 100644
--- a/typo3/sysext/core/Tests/Unit/Cache/Backend/ApcuBackendTest.php
+++ b/typo3/sysext/core/Tests/Unit/Cache/Backend/ApcuBackendTest.php
@@ -32,7 +32,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
  */
 class ApcuBackendTest extends UnitTestCase
 {
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * Set up
diff --git a/typo3/sysext/core/Tests/Unit/Cache/Backend/FileBackendTest.php b/typo3/sysext/core/Tests/Unit/Cache/Backend/FileBackendTest.php
index b9291a142cf4..7221b8322fa7 100644
--- a/typo3/sysext/core/Tests/Unit/Cache/Backend/FileBackendTest.php
+++ b/typo3/sysext/core/Tests/Unit/Cache/Backend/FileBackendTest.php
@@ -35,7 +35,7 @@ class FileBackendTest extends UnitTestCase
 {
     use ProphecyTrait;
 
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * Sets up this testcase
diff --git a/typo3/sysext/core/Tests/Unit/Cache/Backend/TransientMemoryBackendTest.php b/typo3/sysext/core/Tests/Unit/Cache/Backend/TransientMemoryBackendTest.php
index 9d5be0b5f25a..0f3666e5fe0b 100644
--- a/typo3/sysext/core/Tests/Unit/Cache/Backend/TransientMemoryBackendTest.php
+++ b/typo3/sysext/core/Tests/Unit/Cache/Backend/TransientMemoryBackendTest.php
@@ -27,7 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
  */
 class TransientMemoryBackendTest extends UnitTestCase
 {
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/core/Tests/Unit/Cache/Backend/Typo3DatabaseBackendTest.php b/typo3/sysext/core/Tests/Unit/Cache/Backend/Typo3DatabaseBackendTest.php
index 220f3646d508..aa690f9b4799 100644
--- a/typo3/sysext/core/Tests/Unit/Cache/Backend/Typo3DatabaseBackendTest.php
+++ b/typo3/sysext/core/Tests/Unit/Cache/Backend/Typo3DatabaseBackendTest.php
@@ -35,7 +35,7 @@ class Typo3DatabaseBackendTest extends UnitTestCase
 {
     use ProphecyTrait;
 
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/core/Tests/Unit/Configuration/FlexForm/FlexFormToolsTest.php b/typo3/sysext/core/Tests/Unit/Configuration/FlexForm/FlexFormToolsTest.php
index db23a11314e6..60de9e9fa7a6 100644
--- a/typo3/sysext/core/Tests/Unit/Configuration/FlexForm/FlexFormToolsTest.php
+++ b/typo3/sysext/core/Tests/Unit/Configuration/FlexForm/FlexFormToolsTest.php
@@ -64,7 +64,7 @@ class FlexFormToolsTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * Set up
diff --git a/typo3/sysext/core/Tests/Unit/Configuration/SiteConfigurationTest.php b/typo3/sysext/core/Tests/Unit/Configuration/SiteConfigurationTest.php
index c65886291b13..a17abb10fbe0 100644
--- a/typo3/sysext/core/Tests/Unit/Configuration/SiteConfigurationTest.php
+++ b/typo3/sysext/core/Tests/Unit/Configuration/SiteConfigurationTest.php
@@ -32,7 +32,7 @@ class SiteConfigurationTest extends UnitTestCase
 {
     use ProphecyTrait;
 
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected ?SiteConfiguration $siteConfiguration;
 
diff --git a/typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcherTest.php b/typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcherTest.php
index c661ca4099e8..1a936cb136ad 100644
--- a/typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcherTest.php
+++ b/typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcherTest.php
@@ -44,7 +44,7 @@ class AbstractConditionMatcherTest extends UnitTestCase
 {
     use ProphecyTrait;
 
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
     /**
      * @var AbstractConditionMatcher|\PHPUnit\Framework\MockObject\MockObject|\TYPO3\TestingFramework\Core\AccessibleObjectInterface
diff --git a/typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php b/typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php
index 3f7f57c0fe27..743ed0ddef03 100644
--- a/typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php
+++ b/typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php
@@ -44,7 +44,7 @@ class DataHandlerTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * A backup of registered singleton instances
diff --git a/typo3/sysext/core/Tests/Unit/DataHandling/SlugHelperTest.php b/typo3/sysext/core/Tests/Unit/DataHandling/SlugHelperTest.php
index f25729273d12..0bc7b0de50ab 100644
--- a/typo3/sysext/core/Tests/Unit/DataHandling/SlugHelperTest.php
+++ b/typo3/sysext/core/Tests/Unit/DataHandling/SlugHelperTest.php
@@ -25,7 +25,7 @@ class SlugHelperTest extends UnitTestCase
     /**
      * @var bool
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @return array
diff --git a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/AbstractSoftReferenceParserTest.php b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/AbstractSoftReferenceParserTest.php
index 119221d3dd26..28a33d753235 100644
--- a/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/AbstractSoftReferenceParserTest.php
+++ b/typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/AbstractSoftReferenceParserTest.php
@@ -39,7 +39,7 @@ abstract class AbstractSoftReferenceParserTest extends UnitTestCase
 {
     use ProphecyTrait;
 
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected function getParserByKey($softrefKey): SoftReferenceParserInterface
     {
diff --git a/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendRestrictionContainerTest.php b/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendRestrictionContainerTest.php
index 2c04c68b4cde..5d41ebb11f07 100644
--- a/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendRestrictionContainerTest.php
+++ b/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendRestrictionContainerTest.php
@@ -27,7 +27,7 @@ use TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication;
 
 class FrontendRestrictionContainerTest extends AbstractRestrictionTestCase
 {
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     public function frontendStatesDataProvider(): array
     {
diff --git a/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendWorkspaceRestrictionTest.php b/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendWorkspaceRestrictionTest.php
index f6bdf06ba687..b5dc6e7d6508 100644
--- a/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendWorkspaceRestrictionTest.php
+++ b/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendWorkspaceRestrictionTest.php
@@ -24,7 +24,7 @@ use TYPO3\CMS\Core\Database\Query\Restriction\FrontendWorkspaceRestriction;
  */
 class FrontendWorkspaceRestrictionTest extends AbstractRestrictionTestCase
 {
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/core/Tests/Unit/Database/Schema/Parser/TableBuilderTest.php b/typo3/sysext/core/Tests/Unit/Database/Schema/Parser/TableBuilderTest.php
index 8b065b0ce54b..ce57c228802b 100644
--- a/typo3/sysext/core/Tests/Unit/Database/Schema/Parser/TableBuilderTest.php
+++ b/typo3/sysext/core/Tests/Unit/Database/Schema/Parser/TableBuilderTest.php
@@ -40,7 +40,7 @@ class TableBuilderTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected ?Table $table;
 
diff --git a/typo3/sysext/core/Tests/Unit/Database/Schema/SqlReaderTest.php b/typo3/sysext/core/Tests/Unit/Database/Schema/SqlReaderTest.php
index 247fad21ff3a..c486a73cb5bc 100644
--- a/typo3/sysext/core/Tests/Unit/Database/Schema/SqlReaderTest.php
+++ b/typo3/sysext/core/Tests/Unit/Database/Schema/SqlReaderTest.php
@@ -33,7 +33,7 @@ class SqlReaderTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/core/Tests/Unit/Error/ErrorHandlerTest.php b/typo3/sysext/core/Tests/Unit/Error/ErrorHandlerTest.php
index 0b34fd49f2ed..e19baa5f4707 100644
--- a/typo3/sysext/core/Tests/Unit/Error/ErrorHandlerTest.php
+++ b/typo3/sysext/core/Tests/Unit/Error/ErrorHandlerTest.php
@@ -41,7 +41,7 @@ class ErrorHandlerTest extends UnitTestCase
     protected const DEFAULT_ERROR_HANDLER_LEVELS = E_ALL & ~(E_STRICT | E_NOTICE | E_COMPILE_WARNING | E_COMPILE_ERROR | E_CORE_WARNING | E_CORE_ERROR | E_PARSE | E_ERROR);
     protected const DEFAULT_EXCEPTIONAL_ERROR_LEVELS = E_ALL & ~(E_STRICT | E_NOTICE | E_COMPILE_WARNING | E_COMPILE_ERROR | E_CORE_WARNING | E_CORE_ERROR | E_PARSE | E_ERROR | E_DEPRECATED | E_USER_DEPRECATED | E_WARNING | E_USER_ERROR | E_USER_NOTICE | E_USER_WARNING);
 
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * Sets up this test case.
diff --git a/typo3/sysext/core/Tests/Unit/Error/ProductionExceptionHandlerTest.php b/typo3/sysext/core/Tests/Unit/Error/ProductionExceptionHandlerTest.php
index d3efa25199d7..0debde8369e6 100644
--- a/typo3/sysext/core/Tests/Unit/Error/ProductionExceptionHandlerTest.php
+++ b/typo3/sysext/core/Tests/Unit/Error/ProductionExceptionHandlerTest.php
@@ -32,7 +32,7 @@ class ProductionExceptionHandlerTest extends UnitTestCase
 {
     use ProphecyTrait;
 
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var \TYPO3\CMS\Core\Error\ProductionExceptionHandler|\PHPUnit\Framework\MockObject\MockObject
diff --git a/typo3/sysext/core/Tests/Unit/Html/RteHtmlParserTest.php b/typo3/sysext/core/Tests/Unit/Html/RteHtmlParserTest.php
index 65cbbb8ad23a..0501d607a6bf 100644
--- a/typo3/sysext/core/Tests/Unit/Html/RteHtmlParserTest.php
+++ b/typo3/sysext/core/Tests/Unit/Html/RteHtmlParserTest.php
@@ -29,7 +29,7 @@ class RteHtmlParserTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected array $procOptions = ['overruleMode' => 'default'];
 
diff --git a/typo3/sysext/core/Tests/Unit/Imaging/GraphicalFunctionsTest.php b/typo3/sysext/core/Tests/Unit/Imaging/GraphicalFunctionsTest.php
index 2aa7d749aa4e..a543430aa2c0 100644
--- a/typo3/sysext/core/Tests/Unit/Imaging/GraphicalFunctionsTest.php
+++ b/typo3/sysext/core/Tests/Unit/Imaging/GraphicalFunctionsTest.php
@@ -22,7 +22,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
 
 class GraphicalFunctionsTest extends UnitTestCase
 {
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * Dataprovider for getScaleForImage
diff --git a/typo3/sysext/core/Tests/Unit/Imaging/IconFactoryTest.php b/typo3/sysext/core/Tests/Unit/Imaging/IconFactoryTest.php
index 4c5cbc97b056..992403af8ddc 100644
--- a/typo3/sysext/core/Tests/Unit/Imaging/IconFactoryTest.php
+++ b/typo3/sysext/core/Tests/Unit/Imaging/IconFactoryTest.php
@@ -41,7 +41,7 @@ class IconFactoryTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var IconFactory
diff --git a/typo3/sysext/core/Tests/Unit/Imaging/ImageDimensionTest.php b/typo3/sysext/core/Tests/Unit/Imaging/ImageDimensionTest.php
index c0e1f8a3a969..aed9f0267010 100644
--- a/typo3/sysext/core/Tests/Unit/Imaging/ImageDimensionTest.php
+++ b/typo3/sysext/core/Tests/Unit/Imaging/ImageDimensionTest.php
@@ -32,7 +32,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
  */
 class ImageDimensionTest extends UnitTestCase
 {
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     public function givenProcessingInstructionsCalculatesCorrectDimensionDataProvider(): array
     {
diff --git a/typo3/sysext/core/Tests/Unit/Localization/LocalesTest.php b/typo3/sysext/core/Tests/Unit/Localization/LocalesTest.php
index 1ad95356a83e..e803bbdd13e5 100644
--- a/typo3/sysext/core/Tests/Unit/Localization/LocalesTest.php
+++ b/typo3/sysext/core/Tests/Unit/Localization/LocalesTest.php
@@ -26,7 +26,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
  */
 class LocalesTest extends UnitTestCase
 {
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var string
diff --git a/typo3/sysext/core/Tests/Unit/Localization/TcaSystemLanguageCollectorTest.php b/typo3/sysext/core/Tests/Unit/Localization/TcaSystemLanguageCollectorTest.php
index c6788f493618..961c5bd2c69e 100644
--- a/typo3/sysext/core/Tests/Unit/Localization/TcaSystemLanguageCollectorTest.php
+++ b/typo3/sysext/core/Tests/Unit/Localization/TcaSystemLanguageCollectorTest.php
@@ -37,7 +37,7 @@ class TcaSystemLanguageCollectorTest extends UnitTestCase
     /**
      * @var bool
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     public function setUp(): void
     {
diff --git a/typo3/sysext/core/Tests/Unit/Mail/FileSpoolTest.php b/typo3/sysext/core/Tests/Unit/Mail/FileSpoolTest.php
index 6f581c63a0f7..d370d0668c75 100644
--- a/typo3/sysext/core/Tests/Unit/Mail/FileSpoolTest.php
+++ b/typo3/sysext/core/Tests/Unit/Mail/FileSpoolTest.php
@@ -33,7 +33,7 @@ class FileSpoolTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected ?FileSpool $subject;
 
diff --git a/typo3/sysext/core/Tests/Unit/Mail/MailMessageTest.php b/typo3/sysext/core/Tests/Unit/Mail/MailMessageTest.php
index 98224b711b0a..bd1f9075dba3 100644
--- a/typo3/sysext/core/Tests/Unit/Mail/MailMessageTest.php
+++ b/typo3/sysext/core/Tests/Unit/Mail/MailMessageTest.php
@@ -30,7 +30,7 @@ class MailMessageTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected ?MailMessage $subject;
 
diff --git a/typo3/sysext/core/Tests/Unit/Mail/MailerTest.php b/typo3/sysext/core/Tests/Unit/Mail/MailerTest.php
index 3aed5869e2f9..0445a55014ad 100644
--- a/typo3/sysext/core/Tests/Unit/Mail/MailerTest.php
+++ b/typo3/sysext/core/Tests/Unit/Mail/MailerTest.php
@@ -44,7 +44,7 @@ class MailerTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var Mailer
diff --git a/typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php b/typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php
index 5752fbcddeb9..ccb3ab8f469b 100644
--- a/typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php
+++ b/typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php
@@ -48,7 +48,7 @@ class TransportFactoryTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected function getSubject(&$eventDispatcher): TransportFactory
     {
diff --git a/typo3/sysext/core/Tests/Unit/MetaTag/MetaTagManagerRegistryTest.php b/typo3/sysext/core/Tests/Unit/MetaTag/MetaTagManagerRegistryTest.php
index ea3ab6c5e21e..e3637398b6b8 100644
--- a/typo3/sysext/core/Tests/Unit/MetaTag/MetaTagManagerRegistryTest.php
+++ b/typo3/sysext/core/Tests/Unit/MetaTag/MetaTagManagerRegistryTest.php
@@ -32,7 +32,7 @@ class MetaTagManagerRegistryTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php b/typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php
index 2eb25ce176ce..3938512e77ae 100644
--- a/typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php
+++ b/typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php
@@ -38,12 +38,12 @@ class LocalDriverTest extends BaseTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var bool Reset changed Environment
      */
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
     protected ?LocalDriver $localDriver;
     protected array $testDirs = [];
diff --git a/typo3/sysext/core/Tests/Unit/Resource/FileTest.php b/typo3/sysext/core/Tests/Unit/Resource/FileTest.php
index fe8e725e7f6a..d6087a42cc6c 100644
--- a/typo3/sysext/core/Tests/Unit/Resource/FileTest.php
+++ b/typo3/sysext/core/Tests/Unit/Resource/FileTest.php
@@ -35,7 +35,7 @@ class FileTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var ResourceStorage
diff --git a/typo3/sysext/core/Tests/Unit/Resource/FolderTest.php b/typo3/sysext/core/Tests/Unit/Resource/FolderTest.php
index eb5cd55efa19..c382b93c84cc 100644
--- a/typo3/sysext/core/Tests/Unit/Resource/FolderTest.php
+++ b/typo3/sysext/core/Tests/Unit/Resource/FolderTest.php
@@ -33,7 +33,7 @@ class FolderTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected string $basedir = 'basedir';
 
diff --git a/typo3/sysext/core/Tests/Unit/Resource/ProcessedFileTest.php b/typo3/sysext/core/Tests/Unit/Resource/ProcessedFileTest.php
index 09ed6b1c03be..6212c3d59ee8 100644
--- a/typo3/sysext/core/Tests/Unit/Resource/ProcessedFileTest.php
+++ b/typo3/sysext/core/Tests/Unit/Resource/ProcessedFileTest.php
@@ -34,7 +34,7 @@ class ProcessedFileTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var MockObject|Folder
diff --git a/typo3/sysext/core/Tests/Unit/Resource/Processing/ProcessorRegistryTest.php b/typo3/sysext/core/Tests/Unit/Resource/Processing/ProcessorRegistryTest.php
index 6beb2becabaf..c26c566f599f 100644
--- a/typo3/sysext/core/Tests/Unit/Resource/Processing/ProcessorRegistryTest.php
+++ b/typo3/sysext/core/Tests/Unit/Resource/Processing/ProcessorRegistryTest.php
@@ -30,7 +30,7 @@ class ProcessorRegistryTest extends UnitTestCase
 {
     use ProphecyTrait;
 
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/core/Tests/Unit/Resource/RelativeCssPathFixerTest.php b/typo3/sysext/core/Tests/Unit/Resource/RelativeCssPathFixerTest.php
index a1a3d3ae6023..d553a925ce1f 100644
--- a/typo3/sysext/core/Tests/Unit/Resource/RelativeCssPathFixerTest.php
+++ b/typo3/sysext/core/Tests/Unit/Resource/RelativeCssPathFixerTest.php
@@ -27,7 +27,7 @@ class RelativeCssPathFixerTest extends BaseTestCase
     /**
      * @var bool Restore Environment after tests
      */
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
     /**
      * @return array
diff --git a/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorIntegrationTest.php b/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorIntegrationTest.php
index 5dd80407cc4e..012c2bb9f092 100644
--- a/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorIntegrationTest.php
+++ b/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorIntegrationTest.php
@@ -29,7 +29,7 @@ class ResourceCompressorIntegrationTest extends BaseTestCase
     /**
      * @var bool Restore Environment after tests
      */
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
     protected ?TestableResourceCompressor $resourceCompressor;
     protected ?string $fixtureDir;
diff --git a/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorTest.php b/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorTest.php
index 3b2300f7cd80..5fa452efe65e 100644
--- a/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorTest.php
+++ b/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorTest.php
@@ -31,7 +31,7 @@ class ResourceCompressorTest extends BaseTestCase
     /**
      * @var bool Restore Environment after tests
      */
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
     /**
      * @var ResourceCompressor|MockObject|AccessibleObjectInterface
diff --git a/typo3/sysext/core/Tests/Unit/Resource/ResourceFactoryTest.php b/typo3/sysext/core/Tests/Unit/Resource/ResourceFactoryTest.php
index 340d11da5d74..3bf4abb94265 100644
--- a/typo3/sysext/core/Tests/Unit/Resource/ResourceFactoryTest.php
+++ b/typo3/sysext/core/Tests/Unit/Resource/ResourceFactoryTest.php
@@ -33,9 +33,9 @@ class ResourceFactoryTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
     /**
      * @var ResourceFactory
diff --git a/typo3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php b/typo3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php
index af71c73f789b..5eced5e71b60 100644
--- a/typo3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php
+++ b/typo3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php
@@ -49,7 +49,7 @@ class ResourceStorageTest extends BaseTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var ResourceStorage|MockObject
diff --git a/typo3/sysext/core/Tests/Unit/Routing/PageRouterTest.php b/typo3/sysext/core/Tests/Unit/Routing/PageRouterTest.php
index 62452e265fa6..bbd2782b7e49 100644
--- a/typo3/sysext/core/Tests/Unit/Routing/PageRouterTest.php
+++ b/typo3/sysext/core/Tests/Unit/Routing/PageRouterTest.php
@@ -36,7 +36,7 @@ class PageRouterTest extends UnitTestCase
     /**
      * @var bool
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/core/Tests/Unit/Service/FlexFormServiceTest.php b/typo3/sysext/core/Tests/Unit/Service/FlexFormServiceTest.php
index 48f9883ccbf2..c39f7b9c2b7d 100644
--- a/typo3/sysext/core/Tests/Unit/Service/FlexFormServiceTest.php
+++ b/typo3/sysext/core/Tests/Unit/Service/FlexFormServiceTest.php
@@ -31,7 +31,7 @@ class FlexFormServiceTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/core/Tests/Unit/Service/MarkerBasedTemplateServiceTest.php b/typo3/sysext/core/Tests/Unit/Service/MarkerBasedTemplateServiceTest.php
index 84ca31661f87..28368ba44acf 100644
--- a/typo3/sysext/core/Tests/Unit/Service/MarkerBasedTemplateServiceTest.php
+++ b/typo3/sysext/core/Tests/Unit/Service/MarkerBasedTemplateServiceTest.php
@@ -38,7 +38,7 @@ class MarkerBasedTemplateServiceTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * Set up
diff --git a/typo3/sysext/core/Tests/Unit/TypoScript/Parser/ConstantConfigurationParserTest.php b/typo3/sysext/core/Tests/Unit/TypoScript/Parser/ConstantConfigurationParserTest.php
index d36244bd139c..849867a7bbae 100644
--- a/typo3/sysext/core/Tests/Unit/TypoScript/Parser/ConstantConfigurationParserTest.php
+++ b/typo3/sysext/core/Tests/Unit/TypoScript/Parser/ConstantConfigurationParserTest.php
@@ -24,7 +24,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
 
 class ConstantConfigurationParserTest extends UnitTestCase
 {
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
     /**
      * @test
diff --git a/typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php
index 9652de287705..24afc4b3c4d4 100644
--- a/typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php
+++ b/typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php
@@ -44,7 +44,7 @@ class ExtensionManagementUtilityTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected ?PackageManager $backUpPackageManager;
 
diff --git a/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php
index 8cf303e84cc3..e8aaf16c1403 100644
--- a/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php
+++ b/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php
@@ -56,12 +56,12 @@ class GeneralUtilityTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var bool Restore Environment after tests
      */
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
     protected ?PackageManager $backupPackageManager;
 
diff --git a/typo3/sysext/core/Tests/Unit/Utility/MailUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/MailUtilityTest.php
index b12ebac531b2..ed7b1cd4a645 100644
--- a/typo3/sysext/core/Tests/Unit/Utility/MailUtilityTest.php
+++ b/typo3/sysext/core/Tests/Unit/Utility/MailUtilityTest.php
@@ -28,7 +28,7 @@ class MailUtilityTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/core/Tests/Unit/Utility/PathUtilityPublicPathsTest.php b/typo3/sysext/core/Tests/Unit/Utility/PathUtilityPublicPathsTest.php
index c7a8a699b4ec..06cb6694e046 100644
--- a/typo3/sysext/core/Tests/Unit/Utility/PathUtilityPublicPathsTest.php
+++ b/typo3/sysext/core/Tests/Unit/Utility/PathUtilityPublicPathsTest.php
@@ -27,7 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
  */
 class PathUtilityPublicPathsTest extends UnitTestCase
 {
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
     protected array $serverBackup;
 
diff --git a/typo3/sysext/core/Tests/Unit/Utility/PathUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/PathUtilityTest.php
index 3a3e98831e45..4e6bfc88f3d5 100644
--- a/typo3/sysext/core/Tests/Unit/Utility/PathUtilityTest.php
+++ b/typo3/sysext/core/Tests/Unit/Utility/PathUtilityTest.php
@@ -31,7 +31,7 @@ class PathUtilityTest extends UnitTestCase
      * Restore Environment after the test
      * @var bool
      */
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
     /**
      * @param array $paths
diff --git a/typo3/sysext/core/Tests/UnitDeprecated/Utility/ExtensionManagementUtilityTest.php b/typo3/sysext/core/Tests/UnitDeprecated/Utility/ExtensionManagementUtilityTest.php
index b31f07d50e15..00cc61af3abc 100644
--- a/typo3/sysext/core/Tests/UnitDeprecated/Utility/ExtensionManagementUtilityTest.php
+++ b/typo3/sysext/core/Tests/UnitDeprecated/Utility/ExtensionManagementUtilityTest.php
@@ -28,7 +28,7 @@ class ExtensionManagementUtilityTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/core/Tests/UnitDeprecated/Utility/PathUtilityPublicPathsTest.php b/typo3/sysext/core/Tests/UnitDeprecated/Utility/PathUtilityPublicPathsTest.php
index 56eac433c58c..55456eb2f7aa 100644
--- a/typo3/sysext/core/Tests/UnitDeprecated/Utility/PathUtilityPublicPathsTest.php
+++ b/typo3/sysext/core/Tests/UnitDeprecated/Utility/PathUtilityPublicPathsTest.php
@@ -27,7 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
  */
 class PathUtilityPublicPathsTest extends UnitTestCase
 {
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
     protected array $serverBackup;
 
diff --git a/typo3/sysext/dashboard/Tests/Unit/DashboardPresetRegistryTest.php b/typo3/sysext/dashboard/Tests/Unit/DashboardPresetRegistryTest.php
index ed98a1597e99..b736e019fe8d 100644
--- a/typo3/sysext/dashboard/Tests/Unit/DashboardPresetRegistryTest.php
+++ b/typo3/sysext/dashboard/Tests/Unit/DashboardPresetRegistryTest.php
@@ -27,7 +27,7 @@ class DashboardPresetRegistryTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /** @var DashboardPresetRegistry  */
     protected $subject;
diff --git a/typo3/sysext/dashboard/Tests/Unit/WidgetGroupRegistryTest.php b/typo3/sysext/dashboard/Tests/Unit/WidgetGroupRegistryTest.php
index 7a8a00c8dd3f..b68dfdf972d5 100644
--- a/typo3/sysext/dashboard/Tests/Unit/WidgetGroupRegistryTest.php
+++ b/typo3/sysext/dashboard/Tests/Unit/WidgetGroupRegistryTest.php
@@ -27,7 +27,7 @@ class WidgetGroupRegistryTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /** @var WidgetGroupRegistry  */
     protected $subject;
diff --git a/typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php b/typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php
index 4147e4acbefa..d3af86030781 100644
--- a/typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php
+++ b/typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php
@@ -33,7 +33,7 @@ class WidgetRegistryTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected WidgetRegistry $subject;
 
diff --git a/typo3/sysext/extbase/Tests/Unit/Configuration/AbstractConfigurationManagerTest.php b/typo3/sysext/extbase/Tests/Unit/Configuration/AbstractConfigurationManagerTest.php
index e93dbe740d74..1344f94a86b4 100644
--- a/typo3/sysext/extbase/Tests/Unit/Configuration/AbstractConfigurationManagerTest.php
+++ b/typo3/sysext/extbase/Tests/Unit/Configuration/AbstractConfigurationManagerTest.php
@@ -29,7 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
  */
 class AbstractConfigurationManagerTest extends UnitTestCase
 {
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var AbstractConfigurationManager|MockObject|AccessibleObjectInterface
diff --git a/typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php b/typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php
index 926ba01b487d..d710e2a0b7bd 100644
--- a/typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php
+++ b/typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php
@@ -56,7 +56,7 @@ class ActionControllerTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var ActionController|MockObject|AccessibleObjectInterface
diff --git a/typo3/sysext/extbase/Tests/Unit/Mvc/View/JsonViewTest.php b/typo3/sysext/extbase/Tests/Unit/Mvc/View/JsonViewTest.php
index b580ce95c8a0..26f0610b1ce9 100644
--- a/typo3/sysext/extbase/Tests/Unit/Mvc/View/JsonViewTest.php
+++ b/typo3/sysext/extbase/Tests/Unit/Mvc/View/JsonViewTest.php
@@ -30,7 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
  */
 class JsonViewTest extends UnitTestCase
 {
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var JsonView
diff --git a/typo3/sysext/extbase/Tests/Unit/Mvc/Web/Routing/UriBuilderTest.php b/typo3/sysext/extbase/Tests/Unit/Mvc/Web/Routing/UriBuilderTest.php
index 4bfbd824b2d1..d3f9ebb5c99c 100644
--- a/typo3/sysext/extbase/Tests/Unit/Mvc/Web/Routing/UriBuilderTest.php
+++ b/typo3/sysext/extbase/Tests/Unit/Mvc/Web/Routing/UriBuilderTest.php
@@ -49,7 +49,7 @@ class UriBuilderTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var ConfigurationManagerInterface
diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/ContainerTest.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/ContainerTest.php
index a409cc0fb45a..36f7792aa526 100644
--- a/typo3/sysext/extbase/Tests/Unit/Object/Container/ContainerTest.php
+++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/ContainerTest.php
@@ -46,7 +46,7 @@ class ContainerTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var Container
diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php
index 1d915634ba02..3d889243ecf6 100644
--- a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php
+++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php
@@ -54,7 +54,7 @@ class Typo3DbBackendTest extends UnitTestCase
      * Due to nested PageRepository / FrontendRestriction Container issues, the Context object is set
      * @var bool
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @return array
diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/ObjectAccessTest.php b/typo3/sysext/extbase/Tests/Unit/Reflection/ObjectAccessTest.php
index c5f83b486ad8..c99f8ab93c94 100644
--- a/typo3/sysext/extbase/Tests/Unit/Reflection/ObjectAccessTest.php
+++ b/typo3/sysext/extbase/Tests/Unit/Reflection/ObjectAccessTest.php
@@ -35,7 +35,7 @@ class ObjectAccessTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected DummyClassWithGettersAndSetters $dummyObject;
 
diff --git a/typo3/sysext/extbase/Tests/Unit/Service/ExtensionServiceTest.php b/typo3/sysext/extbase/Tests/Unit/Service/ExtensionServiceTest.php
index 87cb52ecd7b8..9657ffc0c93d 100644
--- a/typo3/sysext/extbase/Tests/Unit/Service/ExtensionServiceTest.php
+++ b/typo3/sysext/extbase/Tests/Unit/Service/ExtensionServiceTest.php
@@ -50,7 +50,7 @@ class ExtensionServiceTest extends UnitTestCase
      * Due to nested PageRepository / FrontendRestriction Container issues, the Context object is set
      * @var bool
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected function setUp(): void
     {
diff --git a/typo3/sysext/extbase/Tests/Unit/Service/ImageScriptServiceTest.php b/typo3/sysext/extbase/Tests/Unit/Service/ImageScriptServiceTest.php
index 580eb125e751..38a4f39bd55b 100644
--- a/typo3/sysext/extbase/Tests/Unit/Service/ImageScriptServiceTest.php
+++ b/typo3/sysext/extbase/Tests/Unit/Service/ImageScriptServiceTest.php
@@ -34,7 +34,7 @@ class ImageScriptServiceTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected ImageService $subject;
 
diff --git a/typo3/sysext/extbase/Tests/UnitDeprecated/Object/Container/ContainerTest.php b/typo3/sysext/extbase/Tests/UnitDeprecated/Object/Container/ContainerTest.php
index d782d7490dbe..55e8cabe22e6 100644
--- a/typo3/sysext/extbase/Tests/UnitDeprecated/Object/Container/ContainerTest.php
+++ b/typo3/sysext/extbase/Tests/UnitDeprecated/Object/Container/ContainerTest.php
@@ -36,7 +36,7 @@ class ContainerTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var Container
diff --git a/typo3/sysext/extbase/Tests/UnitDeprecated/SignalSlot/DispatcherTest.php b/typo3/sysext/extbase/Tests/UnitDeprecated/SignalSlot/DispatcherTest.php
index 161ef8ab8b6d..df118ae0c124 100644
--- a/typo3/sysext/extbase/Tests/UnitDeprecated/SignalSlot/DispatcherTest.php
+++ b/typo3/sysext/extbase/Tests/UnitDeprecated/SignalSlot/DispatcherTest.php
@@ -39,7 +39,7 @@ class DispatcherTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var ObjectManagerInterface|ObjectProphecy
diff --git a/typo3/sysext/extensionmanager/Tests/Unit/Utility/InstallUtilityTest.php b/typo3/sysext/extensionmanager/Tests/Unit/Utility/InstallUtilityTest.php
index 064891baf713..c23143b6bd26 100644
--- a/typo3/sysext/extensionmanager/Tests/Unit/Utility/InstallUtilityTest.php
+++ b/typo3/sysext/extensionmanager/Tests/Unit/Utility/InstallUtilityTest.php
@@ -57,9 +57,9 @@ class InstallUtilityTest extends UnitTestCase
      */
     protected $fakedExtensions = [];
 
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var \PHPUnit\Framework\MockObject\MockObject|InstallUtility|\TYPO3\TestingFramework\Core\AccessibleObjectInterface
diff --git a/typo3/sysext/felogin/Tests/Unit/Redirect/RedirectHandlerTest.php b/typo3/sysext/felogin/Tests/Unit/Redirect/RedirectHandlerTest.php
index bebad9657245..7b628cb496e5 100644
--- a/typo3/sysext/felogin/Tests/Unit/Redirect/RedirectHandlerTest.php
+++ b/typo3/sysext/felogin/Tests/Unit/Redirect/RedirectHandlerTest.php
@@ -38,7 +38,7 @@ class RedirectHandlerTest extends UnitTestCase
      *
      * @var bool
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var RedirectHandler
diff --git a/typo3/sysext/felogin/Tests/Unit/Service/RecoveryServiceTest.php b/typo3/sysext/felogin/Tests/Unit/Service/RecoveryServiceTest.php
index 63fa0b6c06f8..4df4e7746228 100644
--- a/typo3/sysext/felogin/Tests/Unit/Service/RecoveryServiceTest.php
+++ b/typo3/sysext/felogin/Tests/Unit/Service/RecoveryServiceTest.php
@@ -40,7 +40,7 @@ class RecoveryServiceTest extends UnitTestCase
     /**
      * @var bool
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var FrontendUserRepository|ObjectProphecy
diff --git a/typo3/sysext/felogin/Tests/Unit/Validation/RedirectUrlValidatorTest.php b/typo3/sysext/felogin/Tests/Unit/Validation/RedirectUrlValidatorTest.php
index 71eb06d49d4d..c5491bd21e40 100644
--- a/typo3/sysext/felogin/Tests/Unit/Validation/RedirectUrlValidatorTest.php
+++ b/typo3/sysext/felogin/Tests/Unit/Validation/RedirectUrlValidatorTest.php
@@ -35,7 +35,7 @@ class RedirectUrlValidatorTest extends UnitTestCase
     /**
      * @var bool Restore Environment after tests
      */
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
     /**
      * @var RedirectUrlValidator|\TYPO3\TestingFramework\Core\AccessibleObjectInterface
@@ -52,7 +52,7 @@ class RedirectUrlValidatorTest extends UnitTestCase
      */
     protected $testSitePath;
 
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * Set up
diff --git a/typo3/sysext/form/Tests/Unit/Controller/FormEditorControllerTest.php b/typo3/sysext/form/Tests/Unit/Controller/FormEditorControllerTest.php
index 727f6364ee18..989607926053 100644
--- a/typo3/sysext/form/Tests/Unit/Controller/FormEditorControllerTest.php
+++ b/typo3/sysext/form/Tests/Unit/Controller/FormEditorControllerTest.php
@@ -31,7 +31,7 @@ class FormEditorControllerTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * Set up
diff --git a/typo3/sysext/form/Tests/Unit/Controller/FormManagerControllerTest.php b/typo3/sysext/form/Tests/Unit/Controller/FormManagerControllerTest.php
index 24fc038d8b4f..3a6d442fa8f8 100644
--- a/typo3/sysext/form/Tests/Unit/Controller/FormManagerControllerTest.php
+++ b/typo3/sysext/form/Tests/Unit/Controller/FormManagerControllerTest.php
@@ -39,7 +39,7 @@ class FormManagerControllerTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/form/Tests/Unit/Domain/Configuration/FormDefinitionConversionServiceTest.php b/typo3/sysext/form/Tests/Unit/Domain/Configuration/FormDefinitionConversionServiceTest.php
index 02f15d1f5e14..903dc01a5160 100644
--- a/typo3/sysext/form/Tests/Unit/Domain/Configuration/FormDefinitionConversionServiceTest.php
+++ b/typo3/sysext/form/Tests/Unit/Domain/Configuration/FormDefinitionConversionServiceTest.php
@@ -27,7 +27,7 @@ class FormDefinitionConversionServiceTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/form/Tests/Unit/Domain/Finishers/RedirectFinisherTest.php b/typo3/sysext/form/Tests/Unit/Domain/Finishers/RedirectFinisherTest.php
index a090069fe228..52c9e625e1de 100644
--- a/typo3/sysext/form/Tests/Unit/Domain/Finishers/RedirectFinisherTest.php
+++ b/typo3/sysext/form/Tests/Unit/Domain/Finishers/RedirectFinisherTest.php
@@ -37,7 +37,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
 class RedirectFinisherTest extends UnitTestCase
 {
     use \Prophecy\PhpUnit\ProphecyTrait;
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/form/Tests/Unit/Domain/FormElements/AbstractSectionTest.php b/typo3/sysext/form/Tests/Unit/Domain/FormElements/AbstractSectionTest.php
index 12235b346d41..1fa0f5a59469 100644
--- a/typo3/sysext/form/Tests/Unit/Domain/FormElements/AbstractSectionTest.php
+++ b/typo3/sysext/form/Tests/Unit/Domain/FormElements/AbstractSectionTest.php
@@ -33,7 +33,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
  */
 class AbstractSectionTest extends UnitTestCase
 {
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/form/Tests/Unit/Domain/Renderable/RenderableVariantTest.php b/typo3/sysext/form/Tests/Unit/Domain/Renderable/RenderableVariantTest.php
index bbe2471b429f..aa0605c37dc9 100644
--- a/typo3/sysext/form/Tests/Unit/Domain/Renderable/RenderableVariantTest.php
+++ b/typo3/sysext/form/Tests/Unit/Domain/Renderable/RenderableVariantTest.php
@@ -29,7 +29,7 @@ class RenderableVariantTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * Set up
diff --git a/typo3/sysext/form/Tests/Unit/Domain/Runtime/FormRuntimeTest.php b/typo3/sysext/form/Tests/Unit/Domain/Runtime/FormRuntimeTest.php
index a9c60f670bb3..662482807496 100644
--- a/typo3/sysext/form/Tests/Unit/Domain/Runtime/FormRuntimeTest.php
+++ b/typo3/sysext/form/Tests/Unit/Domain/Runtime/FormRuntimeTest.php
@@ -34,7 +34,7 @@ class FormRuntimeTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/form/Tests/Unit/Hooks/DataStructureIdentifierHookTest.php b/typo3/sysext/form/Tests/Unit/Hooks/DataStructureIdentifierHookTest.php
index 41ae19836681..bbacf228a777 100644
--- a/typo3/sysext/form/Tests/Unit/Hooks/DataStructureIdentifierHookTest.php
+++ b/typo3/sysext/form/Tests/Unit/Hooks/DataStructureIdentifierHookTest.php
@@ -35,7 +35,7 @@ class DataStructureIdentifierHookTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * Set up
diff --git a/typo3/sysext/form/Tests/Unit/Mvc/Configuration/YamlSourceTest.php b/typo3/sysext/form/Tests/Unit/Mvc/Configuration/YamlSourceTest.php
index 0ab9fe05fa97..0f5bfcd197d5 100644
--- a/typo3/sysext/form/Tests/Unit/Mvc/Configuration/YamlSourceTest.php
+++ b/typo3/sysext/form/Tests/Unit/Mvc/Configuration/YamlSourceTest.php
@@ -27,7 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
  */
 class YamlSourceTest extends UnitTestCase
 {
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/form/Tests/Unit/Mvc/Property/PropertyMappingConfigurationTest.php b/typo3/sysext/form/Tests/Unit/Mvc/Property/PropertyMappingConfigurationTest.php
index de47ea6170ad..e9954b2b1302 100644
--- a/typo3/sysext/form/Tests/Unit/Mvc/Property/PropertyMappingConfigurationTest.php
+++ b/typo3/sysext/form/Tests/Unit/Mvc/Property/PropertyMappingConfigurationTest.php
@@ -38,7 +38,7 @@ class PropertyMappingConfigurationTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /** @var PropertyMappingConfiguration */
     protected $propertyMappingConfiguration;
diff --git a/typo3/sysext/form/Tests/Unit/Mvc/Property/TypeConverter/FormDefinitionArrayConverterTest.php b/typo3/sysext/form/Tests/Unit/Mvc/Property/TypeConverter/FormDefinitionArrayConverterTest.php
index f4ccf06254a8..8997d0934b52 100644
--- a/typo3/sysext/form/Tests/Unit/Mvc/Property/TypeConverter/FormDefinitionArrayConverterTest.php
+++ b/typo3/sysext/form/Tests/Unit/Mvc/Property/TypeConverter/FormDefinitionArrayConverterTest.php
@@ -34,7 +34,7 @@ class FormDefinitionArrayConverterTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * Set up
diff --git a/typo3/sysext/form/Tests/Unit/Service/TranslationServiceTest.php b/typo3/sysext/form/Tests/Unit/Service/TranslationServiceTest.php
index b0f9b78fc8b7..09f1c125c66c 100644
--- a/typo3/sysext/form/Tests/Unit/Service/TranslationServiceTest.php
+++ b/typo3/sysext/form/Tests/Unit/Service/TranslationServiceTest.php
@@ -43,7 +43,7 @@ class TranslationServiceTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var ConfigurationManager
diff --git a/typo3/sysext/frontend/Tests/Unit/Authentication/FrontendUserAuthenticationTest.php b/typo3/sysext/frontend/Tests/Unit/Authentication/FrontendUserAuthenticationTest.php
index f55af17fdbd0..fd5e1a141534 100644
--- a/typo3/sysext/frontend/Tests/Unit/Authentication/FrontendUserAuthenticationTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/Authentication/FrontendUserAuthenticationTest.php
@@ -54,7 +54,7 @@ class FrontendUserAuthenticationTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * User properties should not be set for anonymous sessions
diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/CaseContentObjectTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/CaseContentObjectTest.php
index 6e649ceccb41..70fd30495c11 100644
--- a/typo3/sysext/frontend/Tests/Unit/ContentObject/CaseContentObjectTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/CaseContentObjectTest.php
@@ -35,7 +35,7 @@ class CaseContentObjectTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var CaseContentObject
diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php
index 61f49bee045b..b101d5cc9369 100644
--- a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php
@@ -91,7 +91,7 @@ class ContentObjectRendererTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var MockObject|AccessibleObjectInterface|ContentObjectRenderer
@@ -139,7 +139,7 @@ class ContentObjectRendererTest extends UnitTestCase
      */
     protected ObjectProphecy $cacheManager;
 
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
     /**
      * Set up
diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/Exception/ProductionExceptionHandlerTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/Exception/ProductionExceptionHandlerTest.php
index a31f3ae884ff..5006fdc4f0bc 100644
--- a/typo3/sysext/frontend/Tests/Unit/ContentObject/Exception/ProductionExceptionHandlerTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/Exception/ProductionExceptionHandlerTest.php
@@ -35,7 +35,7 @@ class ProductionExceptionHandlerTest extends UnitTestCase
 {
     use ProphecyTrait;
 
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected ProductionExceptionHandler $subject;
 
diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/FilesContentObjectTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/FilesContentObjectTest.php
index 25599633c6e0..3d37d8e6a557 100644
--- a/typo3/sysext/frontend/Tests/Unit/ContentObject/FilesContentObjectTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/FilesContentObjectTest.php
@@ -45,7 +45,7 @@ class FilesContentObjectTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var FilesContentObject|MockObject
diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/FluidTemplateContentObjectTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/FluidTemplateContentObjectTest.php
index 751715f9f8b1..db2b729a650d 100644
--- a/typo3/sysext/frontend/Tests/Unit/ContentObject/FluidTemplateContentObjectTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/FluidTemplateContentObjectTest.php
@@ -51,7 +51,7 @@ class FluidTemplateContentObjectTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var FluidTemplateContentObject|MockObject|AccessibleObjectInterface
diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/ImageContentObjectTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/ImageContentObjectTest.php
index a73a973765d8..05f3f6c20aa6 100644
--- a/typo3/sysext/frontend/Tests/Unit/ContentObject/ImageContentObjectTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/ImageContentObjectTest.php
@@ -35,7 +35,7 @@ class ImageContentObjectTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var ImageContentObject|MockObject
diff --git a/typo3/sysext/frontend/Tests/Unit/Controller/ErrorControllerTest.php b/typo3/sysext/frontend/Tests/Unit/Controller/ErrorControllerTest.php
index 066945ee83d3..e8b4456d5f9f 100644
--- a/typo3/sysext/frontend/Tests/Unit/Controller/ErrorControllerTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/Controller/ErrorControllerTest.php
@@ -30,7 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
 class ErrorControllerTest extends UnitTestCase
 {
     use ProphecyTrait;
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php b/typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php
index 386db9523724..656254f66247 100644
--- a/typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php
@@ -60,7 +60,7 @@ class TypoScriptFrontendControllerTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var MockObject|AccessibleObjectInterface|TypoScriptFrontendController
diff --git a/typo3/sysext/frontend/Tests/Unit/Http/RequestHandlerTest.php b/typo3/sysext/frontend/Tests/Unit/Http/RequestHandlerTest.php
index 336f18550f24..bd3b42de9a94 100644
--- a/typo3/sysext/frontend/Tests/Unit/Http/RequestHandlerTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/Http/RequestHandlerTest.php
@@ -41,7 +41,7 @@ class RequestHandlerTest extends UnitTestCase
 {
     use ProphecyTrait;
 
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     public function generateHtmlTagIncludesAllPossibilitiesDataProvider(): array
     {
diff --git a/typo3/sysext/frontend/Tests/Unit/Middleware/PageArgumentValidatorTest.php b/typo3/sysext/frontend/Tests/Unit/Middleware/PageArgumentValidatorTest.php
index 6f143d711d2e..42c5a45291f2 100644
--- a/typo3/sysext/frontend/Tests/Unit/Middleware/PageArgumentValidatorTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/Middleware/PageArgumentValidatorTest.php
@@ -38,7 +38,7 @@ class PageArgumentValidatorTest extends UnitTestCase
 {
     use ProphecyTrait;
 
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected CacheHashCalculator $cacheHashCalculator;
     protected TimeTracker $timeTrackerStub;
diff --git a/typo3/sysext/frontend/Tests/Unit/Middleware/PageResolverTest.php b/typo3/sysext/frontend/Tests/Unit/Middleware/PageResolverTest.php
index 253af25bafbc..7b98d57d63ee 100644
--- a/typo3/sysext/frontend/Tests/Unit/Middleware/PageResolverTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/Middleware/PageResolverTest.php
@@ -40,7 +40,7 @@ class PageResolverTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var TypoScriptFrontendController|AccessibleObjectInterface
diff --git a/typo3/sysext/frontend/Tests/Unit/Middleware/SiteBaseRedirectResolverTest.php b/typo3/sysext/frontend/Tests/Unit/Middleware/SiteBaseRedirectResolverTest.php
index 3290c157db51..8e79af1eb1f3 100644
--- a/typo3/sysext/frontend/Tests/Unit/Middleware/SiteBaseRedirectResolverTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/Middleware/SiteBaseRedirectResolverTest.php
@@ -36,7 +36,7 @@ class SiteBaseRedirectResolverTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected RequestHandlerInterface $siteFoundRequestHandler;
 
diff --git a/typo3/sysext/frontend/Tests/Unit/Middleware/SiteResolverTest.php b/typo3/sysext/frontend/Tests/Unit/Middleware/SiteResolverTest.php
index ae02f145f59c..697911c0b0ca 100644
--- a/typo3/sysext/frontend/Tests/Unit/Middleware/SiteResolverTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/Middleware/SiteResolverTest.php
@@ -41,7 +41,7 @@ class SiteResolverTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var SiteFinder|AccessibleObjectInterface
diff --git a/typo3/sysext/frontend/Tests/Unit/Plugin/AbstractPluginTest.php b/typo3/sysext/frontend/Tests/Unit/Plugin/AbstractPluginTest.php
index e239127488cc..75f94efbf1ef 100644
--- a/typo3/sysext/frontend/Tests/Unit/Plugin/AbstractPluginTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/Plugin/AbstractPluginTest.php
@@ -42,7 +42,7 @@ class AbstractPluginTest extends UnitTestCase
     /**
      * @var bool
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * Sets up this testcase
diff --git a/typo3/sysext/frontend/Tests/Unit/Resource/FilePathSanitizerTest.php b/typo3/sysext/frontend/Tests/Unit/Resource/FilePathSanitizerTest.php
index c72a87bda9f2..e559d5a8abde 100644
--- a/typo3/sysext/frontend/Tests/Unit/Resource/FilePathSanitizerTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/Resource/FilePathSanitizerTest.php
@@ -29,7 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
  */
 class FilePathSanitizerTest extends UnitTestCase
 {
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
     /**
      * Sets up Environment to simulate Composer mode and a frontend web request
diff --git a/typo3/sysext/frontend/Tests/Unit/Typolink/AbstractTypolinkBuilderTest.php b/typo3/sysext/frontend/Tests/Unit/Typolink/AbstractTypolinkBuilderTest.php
index fba852e2c3d6..4f2336f52133 100644
--- a/typo3/sysext/frontend/Tests/Unit/Typolink/AbstractTypolinkBuilderTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/Typolink/AbstractTypolinkBuilderTest.php
@@ -39,12 +39,12 @@ class AbstractTypolinkBuilderTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var bool Restore Environment after tests
      */
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
     /**
      * @var MockObject|TypoScriptFrontendController|AccessibleObjectInterface
diff --git a/typo3/sysext/frontend/Tests/UnitDeprecated/ContentObject/ContentObjectRendererTest.php b/typo3/sysext/frontend/Tests/UnitDeprecated/ContentObject/ContentObjectRendererTest.php
index e0ac3423d59d..dff8631cc6ca 100644
--- a/typo3/sysext/frontend/Tests/UnitDeprecated/ContentObject/ContentObjectRendererTest.php
+++ b/typo3/sysext/frontend/Tests/UnitDeprecated/ContentObject/ContentObjectRendererTest.php
@@ -64,7 +64,7 @@ class ContentObjectRendererTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var \PHPUnit\Framework\MockObject\MockObject|AccessibleObjectInterface|ContentObjectRenderer
@@ -113,7 +113,7 @@ class ContentObjectRendererTest extends UnitTestCase
      */
     private $cacheManager;
 
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
     /**
      * Set up
diff --git a/typo3/sysext/impexp/Tests/Unit/ExportTest.php b/typo3/sysext/impexp/Tests/Unit/ExportTest.php
index dec654defba5..4105b5e77a79 100644
--- a/typo3/sysext/impexp/Tests/Unit/ExportTest.php
+++ b/typo3/sysext/impexp/Tests/Unit/ExportTest.php
@@ -29,7 +29,7 @@ class ExportTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var Export|MockObject|AccessibleObjectInterface
diff --git a/typo3/sysext/indexed_search/Tests/Unit/IndexerTest.php b/typo3/sysext/indexed_search/Tests/Unit/IndexerTest.php
index 98bd3942d0b5..f6bb3ca16511 100644
--- a/typo3/sysext/indexed_search/Tests/Unit/IndexerTest.php
+++ b/typo3/sysext/indexed_search/Tests/Unit/IndexerTest.php
@@ -33,7 +33,7 @@ class IndexerTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     protected function setUp(): void
     {
diff --git a/typo3/sysext/install/Tests/Unit/Service/CoreVersionServiceTest.php b/typo3/sysext/install/Tests/Unit/Service/CoreVersionServiceTest.php
index 7ea5e7fea76e..e1d7deaf5d8f 100644
--- a/typo3/sysext/install/Tests/Unit/Service/CoreVersionServiceTest.php
+++ b/typo3/sysext/install/Tests/Unit/Service/CoreVersionServiceTest.php
@@ -38,7 +38,7 @@ class CoreVersionServiceTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     public function setUpApiResponse(string $url, array $responseData): void
     {
diff --git a/typo3/sysext/install/Tests/Unit/Service/EnableFileServiceTest.php b/typo3/sysext/install/Tests/Unit/Service/EnableFileServiceTest.php
index 6ec5d4bf2a63..881e3024ffc5 100644
--- a/typo3/sysext/install/Tests/Unit/Service/EnableFileServiceTest.php
+++ b/typo3/sysext/install/Tests/Unit/Service/EnableFileServiceTest.php
@@ -32,7 +32,7 @@ class EnableFileServiceTest extends UnitTestCase
     /**
      * @var bool This test fiddles with Environment
      */
-    protected $backupEnvironment = true;
+    protected bool $backupEnvironment = true;
 
     /**
      * Data provider
diff --git a/typo3/sysext/redirects/Tests/Functional/Service/IntegrityServiceTest.php b/typo3/sysext/redirects/Tests/Functional/Service/IntegrityServiceTest.php
index 0283eba1d414..7ae16f77f06c 100644
--- a/typo3/sysext/redirects/Tests/Functional/Service/IntegrityServiceTest.php
+++ b/typo3/sysext/redirects/Tests/Functional/Service/IntegrityServiceTest.php
@@ -33,7 +33,7 @@ class IntegrityServiceTest extends FunctionalTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var array
diff --git a/typo3/sysext/redirects/Tests/Unit/Service/RedirectServiceTest.php b/typo3/sysext/redirects/Tests/Unit/Service/RedirectServiceTest.php
index 0c57e9fa7f7c..acf7eeca95a0 100644
--- a/typo3/sysext/redirects/Tests/Unit/Service/RedirectServiceTest.php
+++ b/typo3/sysext/redirects/Tests/Unit/Service/RedirectServiceTest.php
@@ -42,7 +42,7 @@ class RedirectServiceTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var RedirectCacheService|ObjectProphecy
diff --git a/typo3/sysext/scheduler/Tests/Unit/Task/CachingFrameworkGarbageCollectionTest.php b/typo3/sysext/scheduler/Tests/Unit/Task/CachingFrameworkGarbageCollectionTest.php
index 17b7945e0435..60c68bc3d8c3 100644
--- a/typo3/sysext/scheduler/Tests/Unit/Task/CachingFrameworkGarbageCollectionTest.php
+++ b/typo3/sysext/scheduler/Tests/Unit/Task/CachingFrameworkGarbageCollectionTest.php
@@ -34,7 +34,7 @@ class CachingFrameworkGarbageCollectionTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @test
diff --git a/typo3/sysext/seo/Tests/Unit/XmlSitemap/PagesXmlSitemapDataProviderTest.php b/typo3/sysext/seo/Tests/Unit/XmlSitemap/PagesXmlSitemapDataProviderTest.php
index 5435d457a0ee..8f3fb3470ad8 100644
--- a/typo3/sysext/seo/Tests/Unit/XmlSitemap/PagesXmlSitemapDataProviderTest.php
+++ b/typo3/sysext/seo/Tests/Unit/XmlSitemap/PagesXmlSitemapDataProviderTest.php
@@ -27,7 +27,7 @@ class PagesXmlSitemapDataProviderTest extends UnitTestCase
 {
     use ProphecyTrait;
 
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var array
diff --git a/typo3/sysext/workspaces/Tests/Unit/Controller/Remote/RemoteServerTest.php b/typo3/sysext/workspaces/Tests/Unit/Controller/Remote/RemoteServerTest.php
index eaee3aa96db8..1cceedb385cc 100644
--- a/typo3/sysext/workspaces/Tests/Unit/Controller/Remote/RemoteServerTest.php
+++ b/typo3/sysext/workspaces/Tests/Unit/Controller/Remote/RemoteServerTest.php
@@ -37,7 +37,7 @@ class RemoteServerTest extends UnitTestCase
     /**
      * @var bool Reset singletons created by subject
      */
-    protected $resetSingletonInstances = true;
+    protected bool $resetSingletonInstances = true;
 
     /**
      * @var FileReference[]|ObjectProphecy[]
-- 
GitLab