8000 [VarDumper] Fix displaying closure's "this" from anonymous classes · symfony/symfony@2fb7765 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2fb7765

Browse files
[VarDumper] Fix displaying closure's "this" from anonymous classes
1 parent 6ba6441 commit 2fb7765

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