Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[VarDumper] Tell us more about "uninitialized" properties #50054

@lyrixx

Description

@lyrixx

Description

TIL var_dump() displays more information than the VarDumper component about uninitialized properties.

object(Subscription)#2 (1) {
  ["id"]=>
  string(3) "123"
  ["canceled"]=>
  uninitialized(bool)
}

see it on 3v4l.org

But the var dumper don't:

^ Subscription^ {#22
  +id: "123"
}

It would be useful to add this information in the dump, isn't?

Example Proposal

^ Subscription^ {#22
  +id: "123"
  +canceled: ⚠ uninitialized(bool)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help wantedIssues and PRs which are looking for volunteers to complete them.VarDumper

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions