From fb8e15fecbebb50f2251aa9cbe3c0915acaa9695 Mon Sep 17 00:00:00 2001 From: Davide Pastore Date: Tue, 10 Jun 2025 11:20:21 +0000 Subject: [PATCH] Add mixed return type for key and current methods --- src/Pagination/ResourceCursor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Pagination/ResourceCursor.php b/src/Pagination/ResourceCursor.php index 470ee92..a771104 100644 --- a/src/Pagination/ResourceCursor.php +++ b/src/Pagination/ResourceCursor.php @@ -27,7 +27,7 @@ public function __construct( * @return mixed */ #[\ReturnTypeWillChange] - public function current() + public function current(): mixed { return $this->currentPage->getItems()[$this->currentIndex]; } @@ -52,7 +52,7 @@ public function next(): void * {@inheritdoc} */ #[\ReturnTypeWillChange] - public function key() + public function key(): mixed { return $this->totalIndex; }