-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ext/standard: Add get_declared_enums
function
#15443
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
base: master
Are you sure you want to change the base?
Conversation
get_declared_enums\
functionget_declared_enums
function
cea03f6
to
f702eaf
Compare
f702eaf
to
45b80b8
Compare
9c8f154
to
18d4150
Compare
18d4150
to
7c38bc2
Compare
7c38bc2
to
7192914
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any problems.
Not sure if somebody need this, but implementation is really small.
@iluuu1994 please make a final decision.
Thank you so much @dstogov for the review. If the RMs / @iluuu1994 would like to have this on PHP 8.4, that'll be super awesome! |
@dstogov FYI: Based on a preliminary discussion about this on the internals mailing list, this will need an RFC. I've prepared one in draft and we (@Ayesh and me) intend to open the formal discussion period for the RFC some time this week (probably once the discussion around default expressions has died down a little). |
@Ayesh snap! What a timing ;-) |
7192914
to
2b9ffa9
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Adds a `get_declared_enums()` function that returns a list of declared Enums. This function is similar to the existing `get_declared_(classes|interfaces|traits)` functions. Co-Authored-By: Ilija Tovilo <[email protected]>
2b9ffa9
to
2aa0770
Compare
Adds a
get_declared_enums()
function that returns a list of declared Enums. This function is similar to the existingget_declared_(classes|interfaces|traits)
functions.RFC: https://wiki.php.net/rfc/get_declared_enums