Skip to content

[serializer] allowed_extra_attributes doesn't throw Exception like docs says #27036

@tolbon

Description

@tolbon
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 4.X

Hello I think I find a bug in serializer of Symfony
I follow the docs of serializer in SF4
If you reproduce the second example with 'allow_extra_attributes => false' it's not work.
Test of allowed_extra_attributes didn't cover this.

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