Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Serializer] regression with attribute serialization #58689

Open
@oleg-andreyev

Description

@oleg-andreyev

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp