xref: /PHP-8.4/Zend/tests/bug69802_2.phpt (revision 29f98e74)
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 since 8.0, use ReflectionParameter::getType() instead in %s on line %d
11object(ReflectionClass)#4 (1) {
12  ["name"]=>
13  string(11) "Traversable"
14}
15