Merge branch '3.x' into 4.x

* 3.x:
  Add support for first class callables
This commit is contained in:
Fabien Potencier
2024-07-14 13:59:52 +02:00
4 changed files with 50 additions and 2 deletions
+1
View File
@@ -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;