Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e21d6c0

Browse filesBrowse files
bug #59363 [VarDumper] Fix displaying closure's "this" from anonymous classes (nicolas-grekas)
This PR was merged into the 6.4 branch. Discussion ---------- [VarDumper] Fix displaying closure's "this" from anonymous classes | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT Commits ------- 2fb7765 [VarDumper] Fix displaying closure's "this" from anonymous classes
2 parents e8cf9ce + 2fb7765 commit e21d6c0
Copy full SHA for e21d6c0

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/VarDumper/Caster/CutStub.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/VarDumper/Caster/CutStub.php
+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(mixed $value)
2727
switch (\gettype($value)) {
2828
case 'object':
2929
$this->type = self::TYPE_OBJECT;
30-
$this->class = $value::class;
30+
$this->class = get_debug_type($value);
3131

3232
if ($value instanceof \Closure) {
3333
ReflectionCaster::castClosure($value, [], $this, true, Caster::EXCLUDE_VERBOSE);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.