Skip to content
Snippets Groups Projects
Commit 43ca7030 authored by Alexander Schnitzler's avatar Alexander Schnitzler Committed by Anja Leichsenring
Browse files

[BUGFIX] Fix ObjectAccess::isPropertyGettable for ArrayAccess objects

While introducing symfony/property-access, method isPropertyGettable
of class ObjectAccess had been adjusted in a manner which made the
mixed usage of array access and regular property access impossible.

If an object implemented ArrayAccess and used regular properties,
all of those properties were reported inacessible/non-gettable which
is not true.

With this patch, regular properties and those defined magically
via ArrayAccess are detected correctly as gettable.

Releases: master, 10.4
Resolves: #91784
Change-Id: If523943f679beabf40ad5d71c0e0d1d0fef8db4d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65234


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarJörg Bösche <typo3@joergboesche.de>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 5040aa4f
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment