mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 11:27:00 +00:00
Fix compat with PHP 8.4
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
# 3.9.0 (2024-XX-XX)
|
# 3.9.0 (2024-XX-XX)
|
||||||
|
|
||||||
|
* Add support for PHP 8.4
|
||||||
* Deprecate AbstractNodeVisitor
|
* Deprecate AbstractNodeVisitor
|
||||||
* Deprecate passing Template to Environment::resolveTemplate(), Environment::load(), and Template::loadTemplate()
|
* Deprecate passing Template to Environment::resolveTemplate(), Environment::load(), and Template::loadTemplate()
|
||||||
* Add a new "yield" mode for output generation;
|
* Add a new "yield" mode for output generation;
|
||||||
|
|||||||
@@ -297,7 +297,7 @@ abstract class CallExpression extends AbstractExpression
|
|||||||
}
|
}
|
||||||
$r = new \ReflectionFunction($closure);
|
$r = new \ReflectionFunction($closure);
|
||||||
|
|
||||||
if (str_contains($r->name, '{closure}')) {
|
if (str_contains($r->name, '{closure')) {
|
||||||
return $this->reflector = [$r, $callable, 'Closure'];
|
return $this->reflector = [$r, $callable, 'Closure'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user