xref: /PHP-8.1/ext/reflection/tests/bug72661.phpt (revision 530a8a38)
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--EXPECT--
10string(8) "iterable"
11