* PHP-7.4:
Fix SSA integrity violation for type inference in dead code
--- /dev/null
-Notice: Undefined variable: a in %s on line %d
+ --TEST--
+ Make sure type inference upholds invariants for dead arrays
+ --FILE--
+ <?php
+
+ function test() {
+ foreach ($a as $v) {
+ $b[] = $v;
+ }
+ }
+
+ test();
+
+ ?>
+ --EXPECTF--
-Warning: Invalid argument supplied for foreach() in %s on line %d
++Warning: Undefined variable $a in %s on line %d
+
++Warning: foreach() argument must be of type array|object, null given in %s on line %d