Skip to content

Commit

Permalink
Paginaiton Update - Critical
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrick Peter committed May 16, 2023
1 parent b4fe1b5 commit d55eab9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Prior to installing `php-orm-database` get the [Composer](https://getcomposer.or
**Step 1** — update your `composer.json`:
```composer.json
"require": {
"peterson/php-orm-database": "^3.1.8"
"peterson/php-orm-database": "^3.1.7"
}
```

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "3.1.8-dev"
"dev-main": "3.1.7-dev"
}
},
"minimum-stability": "stable",
Expand Down
7 changes: 0 additions & 7 deletions src/Collections/Traits/CollectionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,6 @@ protected function wrapArrayIntoCollectionMappers(mixed $items)

if (is_array($items) && count($items) > 0) {
return array_map(function ($item, $key){

// dd(
// self::$pagination_data,
// $this->items,
// self::$pagination
// );

return new CollectionMapper($item, $key, self::$check_paginate, self::$pagination);
}, $items, array_keys($items));
}
Expand Down

0 comments on commit d55eab9

Please sign in to comment.