[TASK] Make "$hookObject must implement interface FooInterface" more verbose
[Packages/TYPO3.CMS.git] / typo3 / sysext / filelist / Classes / FileList.php
index 546a498..0bfda1b 100644 (file)
@@ -1062,7 +1062,7 @@ class FileList extends AbstractRecordList
                 $hookObject = GeneralUtility::getUserObj($classData);
                 if (!$hookObject instanceof FileListEditIconHookInterface) {
                     throw new \UnexpectedValueException(
-                        '$hookObject must implement interface \\TYPO3\\CMS\\Filelist\\FileListEditIconHookInterface',
+                        $classData . ' must implement interface ' . FileListEditIconHookInterface::class,
                         1235225797
                     );
                 }