1--TEST-- 2Argument unpacking does not work with string keys (forward compatibility for named args) 3--FILE-- 4<?php 5 6set_error_handler(function($errno, $errstr) { 7 var_dump($errstr); 8}); 9 10var_dump(...[1, 2, "foo" => 3, 4]); 11var_dump(...new ArrayIterator([1, 2, "foo" => 3, 4])); 12 13?> 14--EXPECTF-- 15string(36) "Cannot unpack array with string keys" 16int(1) 17int(2) 18string(42) "Cannot unpack Traversable with string keys" 19int(1) 20int(2) 21