Re: [PHP-DEV] Changing the generated name for anon classes

2020-02-06 Thread Nikita Popov
On Thu, Feb 6, 2020 at 2:45 PM Kingsquare.nl - Robin Speekenbrink < ro...@kingsquare.nl> wrote: > Nikita, > > Just to chime in here: would it be wise to add an interface instead? (this > would automatically be added by the engine) so that the consumer of a > generated class could *really* know bas

Re: [PHP-DEV] Changing the generated name for anon classes

2020-02-06 Thread Kingsquare.nl - Robin Speekenbrink
Nikita, Just to chime in here: would it be wise to add an interface instead? (this would automatically be added by the engine) so that the consumer of a generated class could *really* know based on the interface that it's a generated anonymous class instead of string type checking the classname? R

[PHP-DEV] Changing the generated name for anon classes

2020-02-06 Thread Nikita Popov
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