Re: New Feature: Fully qualified class name resolution as scalar with class keyword
| From: | Ralph Schindler | 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 internals+get-59964@lists.php.net 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