Re: [RFC] Nullsafe operator

From: Date: Tue, 14 Jul 2020 08:51:19 +0000
Subject: Re: [RFC] Nullsafe operator
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-110994@lists.php.net to get a copy of this message
Hi Markus > > https://wiki.php.net/rfc/nullsafe_operator > > Would this still work together with short-circuiting and the null > coalesce operator? > > $country = $session?->user?->getAddress()?->country ?? 'defaultCountry'; Yes, your example will still work, this is solely about references :) Ilija

« previous php.internals (#110994) next »