mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
530a8a3854
Add deprecated _ZendTestClass::__toString() method to preserve an existing test. ReflectionType::__toString() will now return a complete representation of the type, as it should have originally. Users that relied on nullability being absent should have been pushed to ReflectionNamedType::getName() by the deprecation of ReflectionType::__toString() in PHP 7.1 / PHP 7.4.
11 lines
222 B
PHP
11 lines
222 B
PHP
--TEST--
|
|
Bug #72661 (ReflectionType::__toString crashes with iterable)
|
|
--FILE--
|
|
<?php
|
|
function test(iterable $arg) { }
|
|
|
|
var_dump((string)(new ReflectionParameter("test", 0))->getType());
|
|
?>
|
|
--EXPECT--
|
|
string(8) "iterable"
|