Skip to content

Commit 92dc2df

Browse files
committed
Merge pull request #777 from rlerdorf/patch-3
Need short array syntax here too
2 parents 055cda0 + 4530d5d commit 92dc2df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hphp/util/parser/hphp.y

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,6 +1931,7 @@ static_scalar:
19311931
| '-' static_scalar { UEXP($$,$2,'-',1);}
19321932
| T_ARRAY '('
19331933
static_array_pair_list ')' { _p->onArray($$,$3,T_ARRAY); }
1934+
| '[' static_array_pair_list ']' { _p->onArray($$,$2,T_ARRAY); }
19341935
| T_SHAPE '('
19351936
static_shape_pair_list ')' { only_in_hh_syntax(_p);
19361937
_p->onArray($$,$3,T_ARRAY); }

0 commit comments

Comments
 (0)