eosnewmedia / JSON-API-Common

Basic php implementation (shared structures for client and server) of the json api specification (jsonapi.org)
https://eosnewmedia.github.io/JSON-API-Common/
MIT License
14 stars 13 forks source link

OffsetBasedPaginatedDocument constructor is incompatible with parent. #20

Open javi-p-nt opened 5 years ago

javi-p-nt commented 5 years ago

OffsetBasedPaginatedDocument::__construct(array $data, UriInterface $requestUri, int $resultCount, int $defaultLimit)

Adds a wrong type array $data, whether Document::__construct has no type for that argument, as it guess the type of argument for collection interfaces