xref: /PHP-7.4/ext/reflection/tests/bug72661.phpt (revision b964298c)
1--TEST--
2Bug #72661 (ReflectionType::__toString crashes with iterable)
3--FILE--
4<?php
5function test(iterable $arg) { }
6
7var_dump((string)(new ReflectionParameter("test", 0))->getType());
8?>
9--EXPECTF--
10Deprecated: Function ReflectionType::__toString() is deprecated in %s on line %d
11string(8) "iterable"
12