Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VarDumper] Dump uninitialized properties #51130

Merged
merged 1 commit into from
Jul 30, 2023
Merged

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 6.4
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #50054
License MIT
Doc PR -

Replaces #50076

Given this:

class Foo {
    private int|float $foo;
    public $baz;
}

$f = new Foo;
unset($f->baz);

dump($f);

This displays:

image

Copy link
Member

@lyrixx lyrixx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very useful! Thanks

@fabpot
Copy link
Member

fabpot commented Jul 30, 2023

Thank you @nicolas-grekas.

@fabpot fabpot merged commit a6178e3 into symfony:6.4 Jul 30, 2023
7 of 9 checks passed
@nicolas-grekas nicolas-grekas deleted the vd-uninit branch August 5, 2023 16:03
This was referenced Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[VarDumper] Tell us more about "uninitialized" properties
4 participants