Brent has been following the PHP releases and featured up close. In this post he highlights 8 of the features that will make it into PHP 8
- Attributes (aka Annotations)
- Union types
- The
static
return type - The just-in-time Compiler
throw
in Expressions- Non-capturing catches
- Trailing commas in parameter lists
- New
str_*
functions
As a bonus he also adds the new Stringable
interface and the ability to call ::class
directly on objects.