Skip to content

Navigation Menu

Sign in
Appearance settings

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 2fb7765

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

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-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.