Skip to content

zend_compile: Bundle function type constants into an zend_function_type enum#21208

Merged
TimWolla merged 5 commits intophp:masterfrom
TimWolla:zend-function-type
Feb 16, 2026
Merged

zend_compile: Bundle function type constants into an zend_function_type enum#21208
TimWolla merged 5 commits intophp:masterfrom
TimWolla:zend-function-type

Conversation

@TimWolla
Copy link
Member

This clarifies the relationship between these constants and improves type safety a little.

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.

Seems reasonable, thanks!

…ype` enum

This clarifies the relationship between these constants and improves type
safety a little.
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

Looking forward to being able to use C23_ENUM more often! :)

Copy link
Member

@arnaud-lb arnaud-lb left a comment

Choose a reason for hiding this comment

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

Nice! There are some places where this would make the code clearer and help debuggers.

@TimWolla TimWolla merged commit 9c900b6 into php:master Feb 16, 2026
1 check 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