Changing the generated name for anon classes
| From: | Nikita Popov | Date: | Thu, 06 Feb 2020 11:21:17 +0000 |
| Subject: | Changing the generated name for anon classes | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-108408@lists.php.net to get a copy of this message | ||
Hi internals,
Based on a suggestion by Nicolas Grekas,
https://github.com/php/php-src/pull/5153
changes the generated name for
anonymous classes to include the name of the parent class or first
interface. So instead of just class@anonymous, you'll see something like
EventHandler@anonymous in error messages, for example.
There's a minor BC break here, for code checking for a "class@anonymous"
prefix, which should be easy to rectify by checking for "@anonymous"
instead.
What do people think about doing this change?
Regards,
Nikita