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
View File
@@ -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;
+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'];
}