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} 16 17?> 18===DONE=== 19--EXPECT-- 20===DONE=== 21