mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-12 23:05:37 +00:00
Merge branch '3.x' into 4.x
* 3.x: Add support for first class callables
This commit is contained in:
@@ -55,6 +55,7 @@ final class ReflectionCallable
|
||||
$callable = [$object, $r->name];
|
||||
$this->name = get_debug_type($object).'::'.$r->name;
|
||||
} elseif ($class = $r->getClosureCalledClass()) {
|
||||
$callable = [$class->name, $r->name];
|
||||
$this->name = $class->name.'::'.$r->name;
|
||||
} else {
|
||||
$callable = $this->name = $r->name;
|
||||
|
||||
Reference in New Issue
Block a user