Re: [RFC] [Discussion] nameof

From: Date: Sat, 13 May 2023 20:16:52 +0000
Subject: Re: [RFC] [Discussion] nameof
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-120265@lists.php.net to get a copy of this message
On Sat, May 13, 2023 at 5:58 PM Robert Landers <landers.robert@gmail.com> wrote: > > > Can you provide more details on what the error conditions are? I can > > see 'non-existent static variable' and 'non-existent variable', are > > there others? > > Absolutely! I'll add it to the RFC later tonight, but the gist is that > it would be exactly the same as if you were to call any function with > something that doesn't exist. After enumerating the warnings/errors that would be expressed, I realized that some of these would halt execution, which is probably undesirable. I've adjusted the RFC to simply emit a warning and further defined when that warning would be emitted.

« previous php.internals (#120265) next »