mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
First pass at moving `Zend/tests/bug*` tests to existing sub directories Work towards GH-15631
15 lines
476 B
PHP
15 lines
476 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());
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: Method ReflectionParameter::getClass() is deprecated since 8.0, use ReflectionParameter::getType() instead in %s on line %d
|
|
object(ReflectionClass)#4 (1) {
|
|
["name"]=>
|
|
string(11) "Traversable"
|
|
}
|