bug75570.phpt 373 B

123456789101112131415161718192021
  1. --TEST--
  2. Bug #75570 ("Narrowing occurred during type inference" error)
  3. --EXTENSIONS--
  4. opcache
  5. --FILE--
  6. <?php
  7. function renderRawGraph(array $parents) {
  8. $graph = array();
  9. foreach ($parents as $p) {
  10. foreach ($graph as $v) {
  11. $graph[$v]['line'] = 1;
  12. }
  13. $graph[] = array(
  14. 'line' => 1,
  15. );
  16. }
  17. }
  18. ?>
  19. OK
  20. --EXPECT--
  21. OK