Skip to content

Dump wrapped object in WeakReference class #13609

Closed
@mvorisek

Description

@mvorisek

Description

repro: https://3v4l.org/cuspD

This is a feature request to dump the inner weakly referenced object like as it would be wrapped by a regular class. Currently, the inner object is hidden in the dump making debugging harder.

Actual result:

WeakReference Object
(
)

Expected result:

WeakReference Object
(
    [object] => stdClass Object
        (
        )
)

If for some reasons this is wanted to limit the dump depth,

$weakRef->get() !== null ? get_class($weakRef->get()) : null

can be dumped.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions