1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
--TEST-- Bug #66509 (copy() showing $context parameter as required) --FILE-- <?php $r = new \ReflectionFunction('copy'); foreach($r->getParameters() as $p) { var_dump($p->isOptional()); } ?> --EXPECT-- bool(false) bool(false) bool(true)