Closed
Description
Description
The following code:
<?php
function some_func() {
}
$callable = some_func(...);
is_callable($callable, callable_name: $name);
var_dump($name);
var_dump((new ReflectionFunction($callable))->getName());
Resulted in this output:
string(17) "Closure::__invoke"
string(9) "some_func"
But I expected this output instead:
string(9) "some_func"
string(9) "some_func"
PHP Version
git amster
Operating System
No response