mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
14 lines
339 B
PHP
14 lines
339 B
PHP
--TEST--
|
|
Bug #69802 (Reflection on Closure::__invoke borks type hint class name)
|
|
--FILE--
|
|
<?php
|
|
$f = (new ReflectionFunction('iterator_to_array'))->getClosure();
|
|
$r = new ReflectionMethod($f, '__invoke');
|
|
var_dump($r->getParameters()[0]->getClass());
|
|
?>
|
|
--EXPECT--
|
|
object(ReflectionClass)#4 (1) {
|
|
["name"]=>
|
|
string(11) "Traversable"
|
|
}
|