You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,14 @@ These namespaces are deprecated:
56
56
57
57
Most of the classes have moved to `ApiPlatform\Metadata`.
58
58
59
+
## v3.2.12
60
+
61
+
### Bug fixes
62
+
63
+
* [1c1023a71](https://github.com/api-platform/core/commit/1c1023a71dd6ea9302c6065aade72f3e93deb6b6) fix: better generics support for State\ProcessorInterface (#6103)
64
+
* [dcab6c79e](https://github.com/api-platform/core/commit/dcab6c79e96ccf8351d855013474d32d5cf129e5) fix(jsonschema): keep integer and number properties draft 4 compliant (#6098)
65
+
* [ef4b261f1](https://github.com/api-platform/core/commit/ef4b261f1e4d67d064be9745d2b9e0c68d3032aa) fix(graphql): remove count query if paginationInfo is not requested (#6068)
@@ -117,53 +117,61 @@ private function serializeCursorBasedPaginatedCollection(iterable $collection, a
117
117
thrownew \LogicException(sprintf('Collection returned by the collection data provider must implement %s or %s.', PaginatorInterface::class, PartialPaginatorInterface::class));
if (isset($selection['paginationInfo']['itemsPerPage'])) {
192
+
if (!($collectioninstanceof PartialPaginatorInterface)) {
193
+
thrownew \LogicException(sprintf('Collection returned by the collection data provider must implement %s to return itemsPerPage field.', PartialPaginatorInterface::class));
if (isset($selection['paginationInfo']['totalCount'])) {
198
+
if (!($collectioninstanceof PaginatorInterface)) {
199
+
thrownew \LogicException(sprintf('Collection returned by the collection data provider must implement %s to return totalCount field.', PaginatorInterface::class));
if (isset($selection['paginationInfo']['lastPage'])) {
204
+
if (!($collectioninstanceof PaginatorInterface)) {
205
+
thrownew \LogicException(sprintf('Collection returned by the collection data provider must implement %s to return lastPage field.', PaginatorInterface::class));
@@ -129,53 +129,61 @@ private function serializeCursorBasedPaginatedCollection(iterable $collection, a
129
129
thrownew \LogicException(sprintf('Collection returned by the collection data provider must implement %s or %s.', PaginatorInterface::class, PartialPaginatorInterface::class));
if (isset($selection['paginationInfo']['itemsPerPage'])) {
204
+
if (!($collectioninstanceof PartialPaginatorInterface)) {
205
+
thrownew \LogicException(sprintf('Collection returned by the collection data provider must implement %s to return itemsPerPage field.', PartialPaginatorInterface::class));
if (isset($selection['paginationInfo']['totalCount'])) {
210
+
if (!($collectioninstanceof PaginatorInterface)) {
211
+
thrownew \LogicException(sprintf('Collection returned by the collection data provider must implement %s to return totalCount field.', PaginatorInterface::class));
if (isset($selection['paginationInfo']['lastPage'])) {
216
+
if (!($collectioninstanceof PaginatorInterface)) {
217
+
thrownew \LogicException(sprintf('Collection returned by the collection data provider must implement %s to return lastPage field.', PaginatorInterface::class));
0 commit comments