xref: /PHP-8.3/ext/opcache/tests/bug74980.phpt (revision e9f783fc)
1--TEST--
2Bug #74980 (Narrowing occurred during type inference)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6--EXTENSIONS--
7opcache
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