getClosureScopeClass()?->name; if (str_ends_with($r->name, '}')) { return $closure; } elseif (($obj = $r->getClosureThis()) && $obj::class === $class) { return [$obj, $r->name]; } elseif ($class) { return [$class, $r->name]; } else { return $r->name; } } }