Skip to content

Commit

Permalink
Fix warning of IPaginatedEndpoint::batch signature
Browse files Browse the repository at this point in the history
Fixes #136
  • Loading branch information
darthmaim committed Feb 7, 2024
1 parent 326cc20 commit 1dc8063
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/V2/Pagination/IPaginatedEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
2 changes: 1 addition & 1 deletion src/V2/Pagination/PaginatedEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1dc8063

Please sign in to comment.