Skip to content

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

Closed
@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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy