Feature #90225

Fluid Value Extraction

Added by Frank Fischer 28 days ago. Updated 28 days ago.

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

0%

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.

History

#1 Updated by Frank Fischer 28 days ago

  • Tracker changed from Bug to Feature

#2 Updated by Frank Fischer 28 days ago

  • Subject changed from Fluid Valiue Extraction to Fluid Value Extraction

Also available in: Atom PDF