Skip to content

Commit 0419cba

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 95bd270 + 37b2df9 commit 0419cba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Caster/ReflectionCaster.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static function castClosure(\Closure $c, array $a, Stub $stub, bool $isNe
4545

4646
$a = static::castFunctionAbstract($c, $a, $stub, $isNested, $filter);
4747

48-
if (!str_contains($c->name, '{closure}')) {
48+
if (!str_contains($c->name, '{closure')) {
4949
$stub->class = isset($a[$prefix.'class']) ? $a[$prefix.'class']->value.'::'.$c->name : $c->name;
5050
unset($a[$prefix.'class']);
5151
}

0 commit comments

Comments
 (0)