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

Appearance settings

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

Copy link
Copy link
Closed
@ninsuo

Description

@ninsuo
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.