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

Skip to content

[Serializer] Exclude non-initialized properties accessed with getters #38899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 60 commits into from
Closed

[Serializer] Exclude non-initialized properties accessed with getters #38899

wants to merge 60 commits into from

Conversation

BoShurik
Copy link
Contributor

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets no
License MIT
Doc PR symfony/symfony-docs#...

Allow to serialize

final class Php74DummyPrivate
{
    private string $uninitializedProperty;

    private string $initializedProperty = 'defaultValue';

    public function getUninitializedProperty(): string
    {
        return $this->uninitializedProperty;
    }

    public function getInitializedProperty(): string
    {
        return $this->initializedProperty;
    }
}

Similar to #34791

@BoShurik BoShurik requested a review from dunglas as a code owner October 30, 2020 14:44
@carsonbot carsonbot added this to the 3.4 milestone Oct 30, 2020
@BoShurik BoShurik changed the title Exclude non-initialized properties accessed with getters [Serializer] Exclude non-initialized properties accessed with getters Oct 30, 2020
@derrabus derrabus modified the milestones: 3.4, 4.4 Oct 30, 2020
@derrabus
Copy link
Member

Hello and thank you for your pull request. Unfortunately, the 3.4 branch has been closed for bugfixes already. Please check if the problem you're trying to solve is also present on the 4.4 branch. If that is the case, please rebase your PR to 4.4.

@BoShurik BoShurik changed the base branch from 3.4 to 4.4 October 30, 2020 14:55
@BoShurik BoShurik closed this Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.