On Tue, Jan 21, 2014 at 1:37 PM, Lars Strojny <[email protected]> wrote:
> On 21 Jan 2014, at 22:26, Sara Golemon <[email protected]> wrote:
>> https://wiki.php.net/rfc/debug-info
>
> Love it, two things: the var_dump() properties will be replaced (not merged) with the
> "real" properties in the object (I am asking as that would make it very very cool for
> stuff like doctrine, where lazy loaded entities are way too large to dump)? As for the name, I would
> prefer __debugInfo() as in __callStatic(). I know there is __set_state() but that's something
> that needs deprecation and fixing :)
>
Replaced. The idea being that if you want to merge with the base
props, you can return (array)$this + ['other'=>'props']; or similar.
EXCELLENT point on the method naming, I'll put that version 1.1 of the RFC.
-Sara