[TASK] Make "$hookObject must implement interface FooInterface" more verbose
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / ContentElement / NewContentElementController.php
index 3ec0746..7499a5d 100644 (file)
@@ -228,7 +228,7 @@ class NewContentElementController extends AbstractModule
                     $hookObject = GeneralUtility::getUserObj($classData);
                     if (!$hookObject instanceof NewContentElementWizardHookInterface) {
                         throw new \UnexpectedValueException(
-                            '$hookObject must implement interface ' . NewContentElementWizardHookInterface::class,
+                            $classData . ' must implement interface ' . NewContentElementWizardHookInterface::class,
                             1227834741
                         );
                     }