Null safe operator in practice

Null safe operator in practice Null-safe operator has been added to PHP 8.1: it is a new object operator that prevents a Fatal error, and its following execution stop, when calling a method or a property on the null value. It has a high appeal, given that it is called ‘safe’ and it reduces the […]