Project

General

Profile

Actions

Feature #90225

closed

Fluid Value Extraction

Added by Frank Fischer over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
Start date:
2020-01-28
Due date:
% Done:

0%

Estimated time:
PHP Version:
7.2
Tags:
Complexity:
no-brainer
Sprint Focus:

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.

Actions

Also available in: Atom PDF