mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
11 lines
277 B
PHP
11 lines
277 B
PHP
--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 ]
|