xref: /PHP-7.0/ext/reflection/tests/bug60357.phpt (revision 6f5ca6f2)
1--TEST--
2Bug #60357 (__toString() method triggers E_NOTICE "Array to string conversion")
3--FILE--
4<?php
5function foo( array $x = array( 'a', 'b' ) ) {}
6$r = new ReflectionParameter( 'foo', 0 );
7echo $r->__toString();
8?>
9--EXPECTF--
10Parameter #0 [ <optional> array $x = Array ]
11