Merge pull request #29 from JonathanO/master

Added license to composer
Merge pull request #31 from JonathanO/master

Fix for issue #28 : TypeInfo mishandling
php-weasel-30 Support for marshalling to/from primitive types/arrays

Added basic unit tests for readString and readArray
php-weasel-30 Support for marshalling to/from primitive types/arrays

Call decodeValue rather than decodeClass to start the decoding process. This pretty much does all that's needed.
Deprecated readArray since it becomes merely a call to readString with an array type.
Added unit tests to show it working.
php-weasel-30 Support for marshalling to/from primitive types/arrays

writeString now supports marshalling of pretty much any type.
It takes an optional type parameter, without which it will try to guess the type it should serialize as.
Type guessing is probably slow, unreliable when faced with complex array structures, but will be fine in the majority is simple cases.
php-weasel-30 Support for marshalling to/from primitive types/arrays

Added @covers annotations.
php-weasel-30 Support for marshalling to/from primitive types/arrays

Added type param to writeArray()
php-weasel-30 Support for marshalling to/from primitive types/arrays

Fix type guessing on objects.
Update test to detect this sort of error.
php-weasel-30 Support for marshalling to/from primitive types/arrays

Simpler type guessing.
Can now correctly guess array types containing nested objects.
Might handle null, but dunno.
php-weasel-30 Support for marshalling to/from primitive types/arrays

Trim leading \ from subclass names. Subclass names have to be fully qualified (currently), and some code assumed they didn't have the leading \.
php-weasel-30 Support for marshalling to/from primitive types/arrays

Ripped out overcomplicated type guessing code. If you want to serialize complex stuff you need to specify what you're serializing.
Merge pull request #32 from JonathanO/topic/php-weasel-30-primitive-marshalling

Support for marshalling of non-objects, resolves #30