Re: [RFC] Access to aliases definition by reflection

From: Date: Mon, 13 Oct 2014 14:21:55 +0000
Subject: Re: [RFC] Access to aliases definition by reflection
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-77925@lists.php.net to get a copy of this message
On 13 Oct 2014, at 15:14, Marco Pivetta <ocramius@gmail.com> wrote: > On 13 October 2014 16:12, Andrea Faulds <ajf@ajf.me> wrote: > 2. Shouldn’t it return fully-qualified class names beginning with a backslash? > > When in string context, we are typically always talking about FQCNs, so the leading backslash > is not needed and should be omitted. I disagree. It shouldn’t be implicitly fully-qualified. If there’s no leading backslash, then you have to add one to actually use it. If it’s a FQCN it should have a \. If and only if it is not a FQCN, it should lack a \. -- Andrea Faulds http://ajf.me/

« previous php.internals (#77925) next »