Issue Feature Closed

#90225Fluid Value Extraction

Frank Fischer 01/28/20, 09:52 updated 03/07/20, 10:09

Description

There is a difference in accessor detection (method detectAccessor) between:
*TYPO3Fluid\Fluid\Core\Variables\VariableExtractor*
and
*TYPO3Fluid\Fluid\Core\Variables\StandardVariableProvider*

VariableExtractor detects for ACCESSOR_GETTER by is_callable
StandardVariableProvider detects for ACCESSOR_GETTER by method_exists

This leads to inconsistent variable object handling in fluid when object is using magic method __call, which is detected by is_callable but not by method_exists.
I would recommend to switch StandardVariableProvider ACCESSOR_GETTER detection to is_callable as well.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.