diff --git a/typo3/sysext/extbase/Tests/UnitDeprecated/Reflection/ReflectionServiceTest.php b/typo3/sysext/extbase/Tests/UnitDeprecated/Reflection/ReflectionServiceTest.php index 45c6ee165fdce6a6457b48303561bd217caf2c3d..ebfe58be4bd025d074f7174f3546dae3551a2699 100644 --- a/typo3/sysext/extbase/Tests/UnitDeprecated/Reflection/ReflectionServiceTest.php +++ b/typo3/sysext/extbase/Tests/UnitDeprecated/Reflection/ReflectionServiceTest.php @@ -30,7 +30,9 @@ class ReflectionServiceTest extends UnitTestCase public function reflectionServiceIsResetDuringWakeUp(): void { $insecureString = file_get_contents(__DIR__ . '/Fixture/InsecureSerializedReflectionService.txt'); - $reflectionService = unserialize($insecureString); + // Note: We need to use the silence operator here for `unserialize()`, otherwise PHP8.3 would emit a warning + // because of unneeded bytes in the content which needs to be unserialized. + $reflectionService = @unserialize($insecureString); $reflectionClass = new \ReflectionClass($reflectionService); $classSchemaProperty = $reflectionClass->getProperty('classSchemata');