Deprecation: #90377 - Deprecate $ref param types of method callUserFunction¶
See Issue #90377
GeneralUtility::callUserFunction() accepts a reference variable which is used to pass on the caller to the called function. Said variable
$ref does not have a type hint, therefore it’s possible to pass into any type of variable whilst it’s purpose is to only accept objects.
GeneralUtility::callUserFunction() with a type other than
null triggers a deprecation warning.
All installations that pass a non
object or non
$ref variable into
There is none.
$ref is meant to be the calling object. Using it to pass arbitrary data to the user function will eventually be forbidden.