Skip to content

Commit 3124505

Browse files
Improved result pager typing
1 parent 9254fc8 commit 3124505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResultPager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ private function get(string $key): array
231231
*/
232232
private static function bindPerPage(AbstractApi $api, int $perPage): AbstractApi
233233
{
234+
/** @var Closure(AbstractApi): AbstractApi */
234235
$closure = Closure::bind(static function (AbstractApi $api) use ($perPage): AbstractApi {
235236
$clone = clone $api;
236237

@@ -239,7 +240,6 @@ private static function bindPerPage(AbstractApi $api, int $perPage): AbstractApi
239240
return $clone;
240241
}, null, AbstractApi::class);
241242

242-
/** @var AbstractApi */
243243
return $closure($api);
244244
}
245245

0 commit comments

Comments
 (0)