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 7a69a85 commit 0a6a44aCopy full SHA for 0a6a44a
Debug/WrappedListener.php
@@ -47,7 +47,7 @@ public function __construct($listener, ?string $name, Stopwatch $stopwatch, ?Eve
47
$this->pretty = $this->name.'::'.$listener[1];
48
} elseif ($listener instanceof \Closure) {
49
$r = new \ReflectionFunction($listener);
50
- if (str_contains($r->name, '{closure}')) {
+ if (str_contains($r->name, '{closure')) {
51
$this->pretty = $this->name = 'closure';
52
} elseif ($class = \PHP_VERSION_ID >= 80111 ? $r->getClosureCalledClass() : $r->getClosureScopeClass()) {
53
$this->name = $class->name;
0 commit comments