We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dde65e commit 1b25e37Copy full SHA for 1b25e37
src/Collections/Collection.php
@@ -43,8 +43,9 @@ public function __construct($items = [])
43
44
// if pagination request is `true`
45
if(self::$is_paginate){
46
- $this->items = $this->items['data'] ?? [];
47
- self::$pagination = $this->items['pagination'] ?? false;
+ $tempItems = $this->items;
+ $this->items = $tempItems['data'] ?? [];
48
+ self::$pagination = $tempItems['pagination'] ?? false;
49
}
50
51
0 commit comments