Skip to content

Commit e08570d

Browse files
Merge branch '5.4' into 6.4
* 5.4: Fix CI Bump ext-redis in CI on PHP >= 8.4 Adjust pretty name of closures on PHP 8.4 implement NodeVisitorInterface instead of extending AbstractNodeVisitor
2 parents ae9d3a6 + 0a6a44a commit e08570d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Debug/WrappedListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(callable|array $listener, ?string $name, Stopwatch $
4848
$this->callableRef .= '::'.$listener[1];
4949
} elseif ($listener instanceof \Closure) {
5050
$r = new \ReflectionFunction($listener);
51-
if (str_contains($r->name, '{closure}')) {
51+
if (str_contains($r->name, '{closure')) {
5252
$this->pretty = $this->name = 'closure';
5353
} elseif ($class = \PHP_VERSION_ID >= 80111 ? $r->getClosureCalledClass() : $r->getClosureScopeClass()) {
5454
$this->name = $class->name;

0 commit comments

Comments
 (0)