hhvm
hhvm copied to clipboard
hh_format sticks a comma in language constructs
If hh_format wraps a line that has an empty call in it, then it sticks a comma after the argument. This isn't valid syntax.
The line in question (inside a method, so two indents):
if (empty($this->_data['userGroups'][$item['date_start']][$user_id])) {
Same happens with isset, so I suspect it's any language construct that looks like a function.