Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Serializer] BC break on isers following #54148 #54488

Closed
@ninsuo

Description

@ninsuo

Symfony version(s) affected

6.4.6

Description

The following PR fixes a bug, but changes how isers are serialized: https://github.com/symfony/symfony/pull/54148/files

  • In 6.4.4, a property named $isSomething is serialized something

  • In 6.4.6, that property is now serialized: isSomething

Even though previous behaviour was a bug, it is there since years and needs the right migration on our codebase. I'd advise that such a backward compatibility break could be updated on the next major upgrade.

How to reproduce

    private bool $isAdmin = false;

    public function isAdmin(): bool
    {
        return $this->isAdmin;
    }

    public function setIsAdmin(bool $isAdmin): self
    {
        $this->isAdmin = $isAdmin;

        return $this;
    }

Possible Solution

No response

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