woohoolabs / yang

The efficient and elegant, PSR-7 compliant JSON:API 1.1 client library for PHP
MIT License
168 stars 13 forks source link

Allow ClassDocumentHydrator::hydrateSingleResource() to return other objects than 'stdClass' #24

Closed holtkamp closed 5 years ago

holtkamp commented 5 years ago

This currently "breaks" the use of own hydrators with an error like:

Return value of WoohooLabs\Yang\JsonApi\Hydrator\ClassDocumentHydrator::hydrateSingleResource() must be an instance of stdClass, instance of Project\Domain\Model\MyCustomClass returned