Re: Should there be a `get_declared_enums()` function ?
| From: | Juliette Reinders Folmer | Date: | Sat, 17 Aug 2024 00:53:26 +0000 |
| Subject: | Re: Should there be a `get_declared_enums()` function ? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-125017@lists.php.net to get a copy of this message | ||
On 16-8-2024 17:01, Ayesh Karunaratne wrote:
I went ahead and created PR https://github.com/php/php-src/pull/15443 along with tests, UPGRADE notice, etc. I think having a get_declared_enums function will be helpful. The implementation is simple and straightforward too.
Thanks for creating the PR Ayesh!
I'm presuming it's too late for PHP 8.4, what with feature freeze having come & gone this week.
Based on the mostly supportive responses on the list, I wonder whether an RFC is needed. If so, I'd be happy to create an initial draft (for PHP 8.5).
Smile,
Juliette