We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 571334c commit 55733a8Copy full SHA for 55733a8
LazyString.php
@@ -148,7 +148,7 @@ private static function getPrettyName(callable $callback): string
148
} elseif ($callback instanceof \Closure) {
149
$r = new \ReflectionFunction($callback);
150
151
- if (false !== strpos($r->name, '{closure}') || !$class = $r->getClosureScopeClass()) {
+ if (false !== strpos($r->name, '{closure}') || !$class = \PHP_VERSION_ID >= 80111 ? $r->getClosureCalledClass() : $r->getClosureScopeClass()) {
152
return $r->name;
153
}
154
0 commit comments