parse error at 3:5: can't pass array "foo" as scalar param