Re: Re: [VOTE] nullsafe operator RFC

From: Date: Sun, 09 Aug 2020 00:03:02 +0000
Subject: Re: Re: [VOTE] nullsafe operator RFC
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-111385@lists.php.net to get a copy of this message
Hi Ilija Tovilo, > > I just noticed that while we support "$a->b", we do not support > > "$a?->b" > > (the quotes are relevant -- I'm talking about interpolated strings here). > > That is, in the latter case the "?->b" is just treated like a string part, > > not like a property access. > > Just as I sent this I realized this is technically a breaking change, > probably a small one but still worth mentioning. I'm now also not > totally sure if we should change it at this point. Let me know what > you think. To me, that sounds like a reasonable bugfix for 8.0 and something most applications wouldn't be using before php 8.0. I'd missed whether the RFC mentioned it or not. - Tyson

« previous php.internals (#111385) next »