Re: Pre RFC - __debugType() magic method

From: Date: Wed, 09 Feb 2022 13:57:00 +0000
Subject: Re: Pre RFC - __debugType() magic method
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-117010@lists.php.net to get a copy of this message
On Wed, Feb 9, 2022 at 2:49 PM Robin Chalas <robin.chalas@gmail.com> 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 complex, annoying, necessary (with measure), but debugging them shouldn't be harder than it already is. I wouldn't implement __debugInfo() nor __debugType() on them, ever. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.io/

« previous php.internals (#117010) next »