Skip to content

Commit e3151ab

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 3cd13dc + ff424ed commit e3151ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DataCollector/WorkflowDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ private function summarizeListener(callable $callable, ?string $eventName = null
171171

172172
if ($callable instanceof \Closure) {
173173
$r = new \ReflectionFunction($callable);
174-
if (str_contains($r->name, '{closure}')) {
174+
if (str_contains($r->name, '{closure')) {
175175
$title = (string) $r;
176176
} elseif ($class = \PHP_VERSION_ID >= 80111 ? $r->getClosureCalledClass() : $r->getClosureScopeClass()) {
177177
$title = $class->name.'::'.$r->name.'()';

0 commit comments

Comments
 (0)