Fix compat with PHP 8.4

This commit is contained in:
Fabien Potencier
2024-04-15 10:22:35 +02:00
parent 11511e181d
commit fdfc5dddb6
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -297,7 +297,7 @@ abstract class CallExpression extends AbstractExpression
}
$r = new \ReflectionFunction($closure);
if (str_contains($r->name, '{closure}')) {
if (str_contains($r->name, '{closure')) {
return $this->reflector = [$r, $callable, 'Closure'];
}