Re: New Feature: Fully qualified class name resolution as scalar with class keyword

From: Date: Sun, 15 Apr 2012 14:13:27 +0000
Subject: Re: New Feature: Fully qualified class name resolution as scalar with class keyword
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message

I used to implement `public static function getClass() { return get_called_class(); }`, so I really like this one, makes it also easier for IDEs when refactoring code :)
Oh completely, that is one of the major benefits. My current workflow for refactoring is to refactor with the built-in support, but then also having to go find/replace on the full class name, just in case. -ralph

Thread (41 messages)

« previous php.internals (#59964) next »