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