Benjamin Eberlei announced today the last vote for PHP 8 is now closed, a bit later than the official feature freeze because of an exception made by the RMs. The syntax for attributes was voted on for one last time with 6 different syntax choices on the ballot. In the end #[Attr] was chosen by a majority of voters.

This patch will not make it into the Beta 3 release on Thursday, but will be included in Release Candidate 1 that is released in 15 days.

The choice across all 6 options was made using the Single Transferable Vote system (STV), where in several rounds the least preferred option gets eliminated and the secondary preferences of the voters who voted for the eliminated option get picked. This is repeated until one choice has a simple majority.

More details about the shorter attribute syntax change and votes are available here : https://wiki.php.net/rfc/shorter_attribute_syntax_change

LEAVE A REPLY

Please enter your comment!
Please enter your name here