recurly/recurly-client-php — Issue #18: Recurly_Coupon with plan_codes doesn't work
Author: benjuang
Created: 2011-11-10 00:31:04+00:00
State: open

Either the documentation is out of date or the code's broken.

Using
$coupon->plan_codes = array('gold', 'silver');
from the example at http://docs.recurly.com/client-libraries/php/coupons

causes the exception:
'DOMDocument::createElement() expects parameter 2 to be string, array given'