The nullsafe operator
The nullsafe operator offers a new and improved way of dealing with method calls on objects that might be null.
Links
- Front Line PHP: the book that explains all PHP 8 features and modern PHP in depth
- The nullsafe operator RFC
The nullsafe operator offers a new and improved way of dealing with method calls on objects that might be null.