summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug72661.phpt
blob: 40d14922b81ad11d3ea8ca8b609ce0a78f9b2ef3 (plain)
1
2
3
4
5
6
7
8
9
10
--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"