Skip to content

Add ReflectionClassConstant::isDeprecated() #14086

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

Conversation

TimWolla
Copy link
Member

This is in preparation for #11293 and for consistency with ReflectionConstant::isDeprecated() that was added in #13669.

This is in preparation for php#11293 and for consistency with
ReflectionConstant::isDeprecated() that was added in php#13669.
Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

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

LGTM. Supporting this in userland might require some special handling when evaluating constant ASTs, so that the flag in zval.u2 is preserved. But let's deal with that when the time comes. 🙂

@TimWolla TimWolla merged commit b5ffac7 into php:master Apr 30, 2024
10 checks passed
@TimWolla TimWolla deleted the reflection-class-constant-is-deprecated branch April 30, 2024 15:26
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.

2 participants