php-src/ext/spl/tests/bug70303.phpt
Christoph M. Becker 484b92919b Fix #70303: Incorrect constructor reflection for ArrayObject
The first parameter of ArrayObject::__construct() is optional. Reflection
should reflect this.
2015-08-19 16:23:16 +02:00

13 lines
263 B
PHP

--TEST--
Bug #70303 (Incorrect constructor reflection for ArrayObject)
--FILE--
<?php
$f = new ReflectionClass('ArrayObject');
$c = $f->getConstructor();
$params = $c->getParameters();
$param = $params[0];
var_dump($param->isOptional());
?>
--EXPECT--
bool(true)