8000 bug #59363 [VarDumper] Fix displaying closure's "this" from anonymous… · symfony/symfony@e21d6c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit e21d6c0

Browse 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 8000 | Issues | - | License | MIT Commits ------- 2fb7765 [VarDumper] Fix displaying closure's "this" from anonymous classes
2 parents e8cf9ce + 2fb7765 commit e21d6c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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