Skip to content

property_exists: Update example to show more scenarios. - #4508

Merged
lacatoire merged 4 commits into
php:masterfrom
zimzat:patch-property-exists
Sep 2, 2026
Merged

property_exists: Update example to show more scenarios.#4508
lacatoire merged 4 commits into
php:masterfrom
zimzat:patch-property-exists

Conversation

@zimzat

@zimzat zimzat commented Feb 27, 2025

Copy link
Copy Markdown
Contributor

The main thing to highlight is that property visibility and __get and __isset is not checked.

This example may be a little too complex and hides the intent. Would it be better to explicitly state the lack of visibility check in the description instead?

@Girgias Girgias left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it would be better to split this into a new example, and have that one have a description to explain the intent

@lacatoire
lacatoire force-pushed the patch-property-exists branch from 2f27992 to 331b1b4 Compare September 2, 2026 09:01
@lacatoire
lacatoire merged commit 623a270 into php:master Sep 2, 2026
2 checks passed
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