From 2ddafac875d0b5e209123cb4cc1fe11463a8d282 Mon Sep 17 00:00:00 2001 From: Zara Gheorghe Date: Mon, 8 Jul 2019 16:53:46 +0300 Subject: [PATCH 1/2] fix Unsupported operand types --- src/PlasticPaginator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PlasticPaginator.php b/src/PlasticPaginator.php index f1e713a..34262dc 100644 --- a/src/PlasticPaginator.php +++ b/src/PlasticPaginator.php @@ -22,7 +22,7 @@ public function __construct(PlasticResult $result, $limit, $page) { $this->result = $result; - parent::__construct($result->hits(), $result->totalHits(), $limit, $page, + parent::__construct($result->hits(), $result->totalHits()['value'], $limit, $page, ['path' => LengthAwarePaginator::resolveCurrentPath()]); $hitsReference = &$this->items; From 84ba13d30a6627d021cee9ec3104986d122ebaf9 Mon Sep 17 00:00:00 2001 From: Zara Gheorghe Date: Mon, 8 Jul 2019 17:07:13 +0300 Subject: [PATCH 2/2] fix paginator --- src/PlasticPaginator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PlasticPaginator.php b/src/PlasticPaginator.php index 34262dc..a99a056 100644 --- a/src/PlasticPaginator.php +++ b/src/PlasticPaginator.php @@ -23,7 +23,7 @@ public function __construct(PlasticResult $result, $limit, $page) $this->result = $result; parent::__construct($result->hits(), $result->totalHits()['value'], $limit, $page, - ['path' => LengthAwarePaginator::resolveCurrentPath()]); + ['path' => LengthAwarePaginator::resolveCurrentPath()] ); $hitsReference = &$this->items;