Skip to content

Commit

Permalink
Fix compat with PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Apr 16, 2024
1 parent 11511e1 commit d439ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Node/Expression/CallExpression.php
Expand Up @@ -297,7 +297,7 @@ private function reflectCallable($callable)
}
$r = new \ReflectionFunction($closure);

if (str_contains($r->name, '{closure}')) {
if (str_contains($r->name, '{closure')) {
return $this->reflector = [$r, $callable, 'Closure'];
}

Expand Down

0 comments on commit d439ea4

Please sign in to comment.