1--TEST-- 2Don't add array value type is key type is illegal 3--SKIPIF-- 4<?php require_once('skipif.inc'); ?> 5--FILE-- 6<?php 7 8function test(\SplObjectStorage $definitions = null) { 9 $argument = new stdClass; 10 $definitions[$argument] = 1; 11 $definitions[$argument] += 1; 12 $argument = []; 13 $definitions[$argument] = 1; 14 $definitions[$argument] += 1; 15} 16function test2() { 17 $a[[]] = $undef; 18} 19 20?> 21===DONE=== 22--EXPECT-- 23===DONE=== 24