xref: /PHP-7.3/ext/opcache/tests/bug75570.phpt (revision 75bc3446)
1--TEST--
2Bug #75570 ("Narrowing occurred during type inference" error)
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7function 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?>
19OK
20--EXPECT--
21OK
22