Skip to content

[PropertyAccess] __isset() returns true only if values are present #19922

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

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented May 30, 2024

No description provided.

@carsonbot carsonbot added this to the 5.4 milestone May 30, 2024
@xabbuh
Copy link
Member Author

xabbuh commented May 30, 2024

ping @stof as you raised some concerns with the implementation from #19914

@@ -207,7 +207,7 @@ The ``getValue()`` method can also use the magic ``__get()`` method::

public function __isset($id): bool
{
return true;
return array_key_exists($id, $this->children);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isset should be used

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed while merging. Thanks.

@carsonbot carsonbot changed the title __isset() returns true only if values are present [PropertyAccess] __isset() returns true only if values are present Jun 10, 2024
@javiereguiluz javiereguiluz merged commit d0bc8b3 into symfony:5.4 Jun 10, 2024
3 checks passed
@javiereguiluz
Copy link
Member

Thanks Christian!

@xabbuh xabbuh deleted the pr-19914 branch June 10, 2024 06:57
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.

5 participants