Heartspring/Exchange-Web-Services-for-PHP — Issue #5: Malformed object creations
Author: hotestimator
Created: 2012-02-23 15:57:50+00:00
State: open

This class is awesome. It does exactly what I need it to do, without having to be an expert in using web services.

If you run this with:```
error_reporting(-1);
ini_set('display_errors','On');
```

You get all kinds of warnings about creating empty objects.

For example line 181 in get_messages method. The ```$FindItem``` should get initialized like ```$FindItem = new stdClass();``` and ```$FindItem->ItemShape = new stdClass();``` etc.

I'm a bit new to OO, but I gotta think there is probably a better way to init these objects rather than writing ```$obj = new stdClass()``` all over the place. Maybe some kind of setter?

When I get a little more confident I'll write up a fix and a pull request :-)