[TYPO3-core] FYI: #16764: Insufficient information about which class is failing to implement interfaces in tslib_cObj->start()

François Suter fsu-lists at cobweb.ch
Fri Dec 17 13:48:14 CET 2010


Hi,

> Solution:
> Add the class information to the exception messages

Nice touch.

> Index: typo3/sysext/cms/tslib/class.tslib_content.php
> ===================================================================
> --- typo3/sysext/cms/tslib/class.tslib_content.php	(revision 9818)
> +++ typo3/sysext/cms/tslib/class.tslib_content.php	(working copy)
> @@ -392,7 +392,10 @@
>   				$hookObject = t3lib_div::getUserObj($classData);
>
>   				if(!($hookObject instanceof tslib_content_stdWrapHook)) {
> -					throw new UnexpectedValueException('$hookObject must implement interface tslib_content_stdWrapHook', 1195043965);
> +					throw new UnexpectedValueException(
> +						$classData . ' implement interface tslib_content_stdWrapHook',

The "must" is missing here.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-team-core mailing list