diff --git a/typo3/sysext/frontend/Classes/Page/PageRepository.php b/typo3/sysext/frontend/Classes/Page/PageRepository.php index b31fb18a908c10df20f9467f3eae57923540d740..a95d6b457571a4e9bc63be45bed6c6f9f4269bb8 100644 --- a/typo3/sysext/frontend/Classes/Page/PageRepository.php +++ b/typo3/sysext/frontend/Classes/Page/PageRepository.php @@ -200,7 +200,7 @@ class PageRepository foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::class]['init'] as $classRef) { $hookObject = GeneralUtility::makeInstance($classRef); if (!$hookObject instanceof PageRepositoryInitHookInterface) { - throw new \UnexpectedValueException($hookObject . ' must implement interface ' . PageRepositoryInitHookInterface::class, 1379579812); + throw new \UnexpectedValueException($classRef . ' must implement interface ' . PageRepositoryInitHookInterface::class, 1379579812); } $hookObject->init_postProcess($this); }