xref: /PHP-7.3/ext/opcache/tests/bug74980.phpt (revision 782352c5)
1--TEST--
2Bug #74980 (Narrowing occurred during type inference)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6--SKIPIF--
7<?php require_once('skipif.inc'); ?>
8--FILE--
9<?php
10
11class A
12{
13
14	static function foo()
15	{
16		while ($undef) {
17			$arr[][] = NULL;
18		}
19
20		foreach ($arr as $a) {
21			bar($a + []);
22		}
23	}
24
25}
26
27echo "okey";
28?>
29--EXPECT--
30okey
31