Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Description
Symfony version(s) affected
6.4.7
Description
Similar as#54983
But$attribute = 'segments[Default]'
Suspect#52917
In 6.4.6ObjectObjectNormalizer::isAllowedAttribute
did not exist and we were relying onAbstractNormalizer::isAllowedAttribute
and PropertyAccess component can easly writesegments[Default]
into$segments
field as['Default' => '<value>']
In 6.4.7ObjectObjectNormalizer::isAllowedAttribute
and now it cannot detect that$segments
is writeable.
How to reproduce
https://github.com/oleg-andreyev/bug_app/blob/issue-58689/tests/BugTest.php
Possible Solution
Similar to#57187 but instead of "adding" yet another condition,
looks likeObjectNormalizer::$propertyInfoExtractor
is usingReflectionExtractor
by default thus does not take into accountPropertyAccessor
information.
Additional Context
No response