-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Yield without value in reference generator should create notice #16882
base: PHP-8.2
Are you sure you want to change the base?
Yield without value in reference generator should create notice #16882
Conversation
Lines 8138 to 8139 in 173175b
I think the question is whether this behavior is supposed to be deprecated/removed at some point in the future. If so, having the notice in the else branch appears to be prudent. If not, we may drop the other notices instead; that would make the behavior consistent. |
@cmb69 If we agree on this, it might be a good idea to do this in a new version. I don't think that we should change the behavior of the pre-existing versions. |
I would agree. I also agree with @Bellangelo but would make it stronger in the sense that perhaps, since this is a behaviour change, whatever we choose has to go in master anyway. Perhaps we should consult the mailing list to ask for opinion on whether the notice should be added or not. |
@Bellangelo, would you want to start this discussion? |
Sure. |
Fixes #16761