Re: [PHP-DEV] Pre RFC - __debugType() magic method

2022-02-09 Thread Marco Pivetta
On Wed, Feb 9, 2022 at 2:49 PM Robin Chalas wrote: > Another target I can think of: inheritance-based proxy classes. > As an author and long-term maintainer of libraries that generate those proxy classes: please do not introduce `__debugInfo()` or similar complexity on them. Proxies are

[PHP-DEV] Pre RFC - __debugType() magic method

2022-02-09 Thread Robin Chalas
Hi internals, I would like to propose exposing a new `__debugType()` magic method. Before going through the RFC process, I’d like to see if it brings some interest. Implementing this method would allow changing the `get_debug_type()` return value when it is given an instance of the