PHP 8.1 RFC: new in initializers

new in initializers
PHP 8.1
Implemented

RFC Vote: new in initializers

Implemented
-
> 50%
Yes: 43No: 2

new in initializers

TypeNew Feature
Version PHP 8.1

This RFC proposes to allow use of new expressions inside parameter default values, attribute arguments, static variable initializers and global constant initializers.

Subscribe to PHP.Watch newsletter for monthly updates

You will receive an email on last Wednesday of every month and on major PHP releases with new articles related to PHP, upcoming changes, new features and what's changing in the language. No marketing emails, no selling of your contacts, no click-tracking, and one-click instant unsubscribe from any email you receive.