Skip to content

Commit 178d266

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 232f25f + fa8e654 commit 178d266

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Command/DebugFirewallCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ private function formatCallable(mixed $callable): string
238238

239239
if ($callable instanceof \Closure) {
240240
$r = new \ReflectionFunction($callable);
241-
if (str_contains($r->name, '{closure}')) {
241+
if (str_contains($r->name, '{closure')) {
242242
return 'Closure()';
243243
}
244244
if ($class = \PHP_VERSION_ID >= 80111 ? $r->getClosureCalledClass() : $r->getClosureScopeClass()) {

0 commit comments

Comments
 (0)