summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug72661.phpt
blob: 1522c5f201d6aa7985cf6a0b8e0c36eefd048c57 (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Bug #72661 (ReflectionType::__toString crashes with iterable)
--FILE--
<?php
function test(iterable $arg) { } 

var_dump((string)(new ReflectionParameter("test", 0))->getType());
?>
--EXPECTF--
Deprecated: Function ReflectionType::__toString() is deprecated in %s on line %d
string(8) "iterable"