xref: /PHP-8.3/Zend/tests/bug69802_2.phpt (revision 93640db4)
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--EXPECTF--
10Deprecated: Method ReflectionParameter::getClass() is deprecated in %s on line %d
11object(ReflectionClass)#4 (1) {
12  ["name"]=>
13  string(11) "Traversable"
14}
15