xref: /php-src/ext/opcache/tests/bug75570.phpt (revision e9f783fc)
1--TEST--
2Bug #75570 ("Narrowing occurred during type inference" error)
3--EXTENSIONS--
4opcache
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