-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Support new in initializers #6746
Conversation
Hello @nikic. Good RFC. What about using closure inside and default variables? //or we can use anonymous class for this } |
f2708dd
to
5698766
Compare
5698766
to
84a91ea
Compare
84a91ea
to
de8362a
Compare
@nikic any chance of getting this in PHP 8.1? when does feature freeze start? |
@zlianon Feature freeze is currently planned for Jul 20, see https://wiki.php.net/todo/php81. |
Closing in favor of #7153. |
This allows writing code like
public Vec $prop = new Vec();
.RFC: https://wiki.php.net/rfc/new_in_initializers