File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2104,7 +2104,7 @@ static uint32_t assign_dim_result_type(
21042104 * key type exists iff a value type exists even in dead code that may use empty types. */
21052105 if (value_type & (MAY_BE_ANY |MAY_BE_UNDEF )) {
21062106 if (value_type & MAY_BE_UNDEF ) {
2107- tmp |= MAY_BE_ARRAY_OF_NULL ;
2107+ value_type |= MAY_BE_NULL ;
21082108 }
21092109 if (dim_op_type == IS_UNUSED ) {
21102110 tmp |= MAY_BE_HASH_ONLY (arr_type ) ? MAY_BE_ARRAY_NUMERIC_HASH : MAY_BE_ARRAY_KEY_LONG ;
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ function test(\SplObjectStorage $definitions = null) {
1313 $ definitions [$ argument ] = 1 ;
1414 $ definitions [$ argument ] += 1 ;
1515}
16+ function test2 () {
17+ $ a [[]] = $ undef ;
18+ }
1619
1720?>
1821===DONE===
You can’t perform that action at this time.
0 commit comments