xref: /PHP-8.1/ext/opcache/tests/ssa_bug_009.phpt (revision e9f783fc)
1--TEST--
2Incorrect type inference
3--EXTENSIONS--
4opcache
5--FILE--
6<?php
7class PHP_CodeCoverage
8{
9    private function addUncoveredFilesFromWhitelist()
10    {
11        foreach ($uncoveredFiles as $uncoveredFile) {
12            for ($i = 1; $i <= $lines; $i++) {
13                $data[$uncoveredFile][$i] = PHP_CodeCoverage_Driver::LINE_NOT_EXECUTED;
14            }
15        }
16    }
17}
18?>
19OK
20--EXPECT--
21OK
22