Skip to content

[VarDumper] dumping DateTime instance with additionnel properties #35699

Closed
@Veridis

Description

@Veridis

Description

The VarDumper component is shipped with a DateCaster class that cast DateTimeInterface objects.
When dumping a child class of DateTime with additional properties, those properties will not be displayed.

Example

I recently worked with azuyalabs/yasumi which introduce a Holiday class extending DateTime.
Here's the result when I dump a Holiday instance:

Capture d’écran 2020-02-12 à 17 59 31

I've started on a PR to have the following result:

Capture d’écran 2020-02-12 à 17 59 41

But before submitting it, I would like to know if hiding child properties is intended ?

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