We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 055cda0 commit 4530d5dCopy full SHA for 4530d5d
hphp/util/parser/hphp.y
@@ -1931,6 +1931,7 @@ static_scalar:
1931
| '-' static_scalar { UEXP($$,$2,'-',1);}
1932
| T_ARRAY '('
1933
static_array_pair_list ')' { _p->onArray($$,$3,T_ARRAY); }
1934
+ | '[' static_array_pair_list ']' { _p->onArray($$,$2,T_ARRAY); }
1935
| T_SHAPE '('
1936
static_shape_pair_list ')' { only_in_hh_syntax(_p);
1937
_p->onArray($$,$3,T_ARRAY); }
0 commit comments