1--TEST-- 2Array unpacking does not work with non-integer/string keys 3--FILE-- 4<?php 5function gen() { 6 yield [] => 1; 7 yield 1.23 => 123; 8} 9 10try { 11 [...gen()]; 12} catch (Error $ex) { 13 echo "Exception: " . $ex->getMessage() . "\n"; 14} 15 16?> 17--EXPECT-- 18Exception: Keys must be of type int|string during array unpacking 19