Open VitoNordloh opened 6 years ago
Seems like a whole lot of other plugins just add $this. I think it might be a callback variable?
Reference to be passed along (typically "$this" - being a reference to the calling object) (REFERENCE!)
The Typo3 documentation says explicit that one should pass a reference. Maybe we should indeed just pass $this
according to your and the documentations suggestion.
https://github.com/punktDe/pt_extlist/blob/6501290f1ffb9f479e9a7403d39242ca3ae10b4b/Classes/Domain/Renderer/Default/CellRenderer.php#L158
The
GeneralUtility::callUserFunction
function expects the third parameter to be a value by reference.At the moment PHP throws a fatal error:
A quick and dirty fix is
I don't know what goes on under the hood, but maybe it would be better to simply pass
$this
?