Fixed and updated some dependencies
Fix Illegal string offset 'function' on morphToMany
Added test.
Merge pull request #3563 from GrahamCampbell/composer-fixes

Composer Fixes And Updates