mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 02:16:41 +00:00
Fix compat with PHP 8.4
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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'];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user