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 fdfc5dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
@@ -1,5 +1,6 @@
# 3.9.0 (2024-XX-XX)

* Add support for PHP 8.4
* Deprecate AbstractNodeVisitor
* Deprecate passing Template to Environment::resolveTemplate(), Environment::load(), and Template::loadTemplate()
* Add a new "yield" mode for output generation;
Expand Down
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 fdfc5dd

Please sign in to comment.