Skip to content

Commit 210cf30

Browse files
author
Fredrick Peter
committed
Critical update on String to Int, Collections Mapper
1 parent 5b4513e commit 210cf30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Collections/CollectionMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct($items = [], mixed $key = 0, ?bool $check_paginate =
2626
{
2727
$this->attributes = $this->convertOnInit($items);
2828
$this->getQuery = get_query();
29-
$this->key = ($key + 1);
29+
$this->key = ((int) $key + 1);
3030

3131
// if pagination request is `true`
3232
if($check_paginate){

0 commit comments

Comments
 (0)