Re: Re: New Feature: Fully qualified class name resolution as scalar with class keyword
From: Stas Malyshev Date: Tue, 17 Apr 2012 22:44:46 +0000 Subject: Re: Re: New Feature: Fully qualified class name resolution as scalar with class keyword References: 1 2 3 4 5 6 7 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
Hi! > Fantastic question. I am unsure how to handle this. Currently, it will > simply resolve those names against the rules (I am sure this is the > wrong behavior.) So, > > namespace Foo\Bar { var_dump(self::class); } This should produce an error outside of class context, I think. Inside of class context, self & parent should work, I think, but static can't work as it's caller-dependent. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227
Thread (41 messages)
« previous | php.internals (#60123) | next » |
---|