0.8.0
CHANGED:
Link::createFromArray()
performs type checks before instantiating aLink
object- Added a
ResourceObject::createFromArray()
instead of the constructor ResourceObject::createFromArray()
performs more type checks before instantiating aResourceObject
- The "jsonapi" member is always present when using
Document::toArray()
- The "links" member won't be present in a relationship when it is empty when using
ResourceObject::toArray()
REMOVED:
Links::hasLinks()
methodJsonApi::hasJsonApi()
method
FIXED:
- The "jsonapi" member was incorrectly recognized as
jsonApi
- If the "jsonapi" member doesn't define the
version
, "1.0" will be the default now as per the spec - Invocation of
Links::hasLink()
and thusLinks::hasSelf()
etc. methods resulted in an infinite loop Relationship::toArray()
showed the "data" member incorrectly for to-one relationships