mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
484b92919b
The first parameter of ArrayObject::__construct() is optional. Reflection should reflect this.
13 lines
263 B
PHP
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)
|