DEV Community

Discussion on: PHP 8 Released! What are your favourite features?

Collapse
 
dakujem profile image
Andrej Rypo

Developers should not forget attributes are still only meta data, even though part of the language itself. They allow for ditching annotation parsing and bring much better performance, though, for which I'm happy.

I personally welcome most the small syntactic changes that remove subtle annoyances, like throwing inside an expression, $var::class, better variadic parameters and better rype variance in inheritance, nullsafe operator for functions,

... and union types. Finally!