1--TEST-- 2Bug #69802 (Reflection on Closure::__invoke borks type hint class name) 3--FILE-- 4<?php 5$f = (new ReflectionFunction('iterator_to_array'))->getClosure(); 6$r = new ReflectionMethod($f, '__invoke'); 7var_dump($r->getParameters()[0]->getClass()); 8?> 9--EXPECT-- 10object(ReflectionClass)#4 (1) { 11 ["name"]=> 12 string(11) "Traversable" 13} 14