Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

String passed by reference #29

@VitoNordloh

Description

@VitoNordloh

$specialValues = GeneralUtility::callUserFunction($rendererUserFunc, $cell, '');

The GeneralUtility::callUserFunction function expects the third parameter to be a value by reference.

At the moment PHP throws a fatal error:

Fatal error: Only variables can be passed by reference in /homepages/***/***/htdocs/website/typo3conf/ext/pt_extlist/Classes/Domain/Renderer/Default/CellRenderer.php on line 159

A quick and dirty fix is

$_fix = '';
$specialValues = GeneralUtility::callUserFunction($rendererUserFunc, $cell, $_fix);

I don't know what goes on under the hood, but maybe it would be better to simply pass $this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions