Skip to content

Conversation

@nicolas-grekas
Copy link
Member

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? no
Fixed tickets -
License MIT
Doc PR -

Before:

__PHP_Incomplete_Class {
  +"__PHP_Incomplete_Class_Name": "Foo\Buzz"
}

after:

__PHP_Incomplete_Class(Foo\Buzz) {}

The new output is less confusing: no dynamic property exists on incomplete class objects, yet the + prefix suggests that.

@lyrixx
Copy link
Member

lyrixx commented Aug 16, 2016

👍

@nicolas-grekas nicolas-grekas force-pushed the var-dump-incomplete branch 2 times, most recently from 492adb2 to 31190d3 Compare August 16, 2016 12:01
@fabpot
Copy link
Member

fabpot commented Aug 16, 2016

Thank you @nicolas-grekas.

@fabpot fabpot merged commit ee20d15 into symfony:master Aug 16, 2016
fabpot added a commit that referenced this pull request Aug 16, 2016
…ects (nicolas-grekas)

This PR was merged into the 3.2-dev branch.

Discussion
----------

[VarDumper] Enhance dumping __PHP_Incomplete_Class objects

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | no
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Before:
```
__PHP_Incomplete_Class {
  +"__PHP_Incomplete_Class_Name": "Foo\Buzz"
}
```

after:
```
__PHP_Incomplete_Class(Foo\Buzz) {}
```

The new output is less confusing: no dynamic property exists on incomplete class objects, yet the `+` prefix suggests that.

Commits
-------

ee20d15 [VarDumper] Enhance dumping __PHP_Incomplete_Class objects
@nicolas-grekas nicolas-grekas deleted the var-dump-incomplete branch August 16, 2016 17:22
@fabpot fabpot mentioned this pull request Oct 27, 2016
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.

4 participants