Collin Haines

Results 5 comments of Collin Haines

It appears that the `LANG` environment variable is only set when using the CLI. The `LANG` environment variable is necessary for `hunspell -D` to load the default dictionary. With this...

I attempted to remove `(object)` entirely but I'm not familiar with MailChimp API enough to know what other submodules **require** it.

The problem lies with the object casting. It converts ```php $array = array( 'members_to_add' => array( '[email protected]' ) ); ``` into `{"members_to_add":{"0":"[email protected]"}}` instead of `{"members_to_add":["[email protected]"]}` like [the example gives](http://developer.mailchimp.com/documentation/mailchimp/reference/lists/segments/#create-post_lists_list_id_segments_segment_id) in...

Ok, I believe this is ready to be reviewed. I have [another PR ready](https://github.com/collinhaines/mailchimp-api-php/commit/b8ff30fa7a3e1c07194dd54a1bbea9f02b0bf80c) for the `addSegment()` function that follows this code.

Apart from the POST and PATCH problem, I also noticed converting to an object seemed flawed. View #59 for how I solved the problem.