8000 zend_compile.c: remove unneeded `const_expr_context` wrapper for boolean by DanielEScherzer · Pull Request #15925 · php/php-src · GitHub
[go: up one dir, main page]

Skip to content

zend_compile.c: remove unneeded const_expr_context wrapper for boolean #15925

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

Closed

Conversation

DanielEScherzer
Copy link
Member

The struct only has a single value, whether to allow expressions with dynamic values - instead of using a struct, just pass around the boolean value.

The struct only has a single value, whether to allow expressions with dynamic
values - instead of using a struct, just pass around the boolean value.
@DanielEScherzer
Copy link
Member Author

CC @nikic - added in #7153

@nielsdos
Copy link
Member

These things make it easy to add more contextual variables later on, so I'd rather not get rid of this.

@iluuu1994
Copy link
Member

I would agree. We generally try to avoid making changes that aren't objectively better, because that opens up the possibility for ping pong changes, based on personal preference. Thanks nonetheless!

@DanielEScherzer It's nice to see a new returning contributor! Keep it up! Ping us on chat.stackoverflow.com[slash]rooms/11/php, or on Discord (#internals channel) if you get stuck on anything.

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.

3 participants
0