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