Uh oh!
There was an error while loading. Please reload this page.
ext/standard: Add get_declared_enums function - #15443
Conversation
get_declared_enums\ functionget_declared_enums functioncea03f6 to
f702eafCompareUh oh!
There was an error while loading. Please reload this page.
f702eaf to
45b80b8CompareUh oh!
There was an error while loading. Please reload this page.
9c8f154 to
18d4150CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
18d4150 to
7c38bc2Compare7c38bc2 to
7192914Compare
dstogov
left a comment
There was a problem hiding this comment.
I don't see any problems.
Not sure if somebody need this, but implementation is really small.
@iluuu1994 please make a final decision.
Ayesh
commented
Aug 26, 2024
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! |
jrfnl
commented
Aug 26, 2024
@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). |
jrfnl
commented
Aug 26, 2024
@Ayesh snap! What a timing ;-) |
7192914 to
2b9ffa9Compare
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 <ilija.tovilo@me.com>
2b9ffa9 to
2aa0770CompareGirgias
commented
Apr 6, 2026
Is this PR/RFC still being pursued? |
jrfnl
commented
Apr 6, 2026
@Girgias I do still think it has value, but I haven't got the brain space at this particular moment to push it. |
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