From 1dc8063c4a93deb076d4b1eadb3667676081ebec Mon Sep 17 00:00:00 2001 From: darthmaim Date: Wed, 7 Feb 2024 13:08:18 +0100 Subject: [PATCH] Fix warning of `IPaginatedEndpoint::batch` signature Fixes #136 --- src/V2/Pagination/IPaginatedEndpoint.php | 2 +- src/V2/Pagination/PaginatedEndpoint.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V2/Pagination/IPaginatedEndpoint.php b/src/V2/Pagination/IPaginatedEndpoint.php index 562748d..e2ccdba 100644 --- a/src/V2/Pagination/IPaginatedEndpoint.php +++ b/src/V2/Pagination/IPaginatedEndpoint.php @@ -30,5 +30,5 @@ function page( $page, $size = null ); * @param callable $callback * @return void */ - function batch( $parallelRequests = null, callable $callback ); + function batch( $parallelRequests, $callback = null ); } diff --git a/src/V2/Pagination/PaginatedEndpoint.php b/src/V2/Pagination/PaginatedEndpoint.php index c7760b0..8878fa4 100644 --- a/src/V2/Pagination/PaginatedEndpoint.php +++ b/src/V2/Pagination/PaginatedEndpoint.php @@ -81,7 +81,7 @@ public function page( $page, $size = null ) { * @param callable $callback * @return void */ - public function batch( $parallelRequests = null, callable $callback = null ) { + public function batch( $parallelRequests, $callback = null ) { /** @noinspection PhpParamsInspection */ if( !isset( $callback ) && is_callable( $parallelRequests )) { $callback = $parallelRequests;