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 2e64730 commit 1cb3ad5Copy full SHA for 1cb3ad5
LazyString.php
@@ -129,7 +129,7 @@ private static function getPrettyName(callable $callback): string
129
} elseif ($callback instanceof \Closure) {
130
$r = new \ReflectionFunction($callback);
131
132
- if (str_contains($r->name, '{closure}') || !$class = $r->getClosureCalledClass()) {
+ if ($r->isAnonymous() || !$class = $r->getClosureCalledClass()) {
133
return $r->name;
134
}
135
0 commit comments