Fix two bugs in collection-type parser
commit9ce4c3ab22773ce0631f9806687debff945d7351
authorEdwin Smith <smith@fb.com>
Wed, 25 Mar 2015 19:53:06 +0000 (25 12:53 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Wed, 25 Mar 2015 20:00:36 +0000 (25 13:00 -0700)
tree1f34649ff35942785be2c7085c4b49b43882f7e9
parent66709f49559c74b79ccbe0ca054af176466c4cf3
Fix two bugs in collection-type parser

Summary: There was a typo, "stablemmap" was parsed as Collection::Map, but
we never used that type; should have been "stablemap". I just removed
the alias, since it wasn't matching anything anyway.

D1934852 renumbered the CollectionType enums, but didn't change
predicates that assumed 0 means InvalidType; this fixes them.

Reviewed By: @jdelong

Differential Revision: D1942064
hphp/compiler/expression/binary_op_expression.cpp
hphp/compiler/expression/expression_list.cpp
hphp/compiler/expression/expression_list.h