From 8b6fe4744a1c2eec5e1ac6f2718b724776461c80 Mon Sep 17 00:00:00 2001 From: Hannes Bochmann <hannes.bochmann@dmk-ebusiness.com> Date: Mon, 11 Mar 2024 12:48:57 +0100 Subject: [PATCH] Cleanup fix tests --- Tests/Unit/Middleware/AuthResolverTest.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Tests/Unit/Middleware/AuthResolverTest.php b/Tests/Unit/Middleware/AuthResolverTest.php index 236984a..a58690a 100644 --- a/Tests/Unit/Middleware/AuthResolverTest.php +++ b/Tests/Unit/Middleware/AuthResolverTest.php @@ -27,7 +27,10 @@ class AuthResolverTest extends UnitTestCase { protected bool $resetSingletonInstances = true; - protected ?string $encryptionKeyBackup; + /** + * @var string|null + */ + protected $encryptionKeyBackup; protected function setUp(): void { @@ -46,7 +49,7 @@ protected function setUp(): void ->setAspect('security', GeneralUtility::makeInstance(SecurityAspect::class)); } - $this->encryptionKeyBackup = $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] ?? []; + $this->encryptionKeyBackup = $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] ?? ''; $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] = 'test'; }