From 64be42fddd2804618921e228599aa48b13297ca4 Mon Sep 17 00:00:00 2001 From: Julien VITTE Date: Sun, 17 May 2020 03:22:26 +0200 Subject: [PATCH] fix(sort): calls next reducers complete() on completion --- src/Reducer/Sort.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Reducer/Sort.php b/src/Reducer/Sort.php index d7ff6a5..c26446f 100644 --- a/src/Reducer/Sort.php +++ b/src/Reducer/Sort.php @@ -45,7 +45,8 @@ public function complete($result) $result = $item; } } + $this->store = []; - return $result; + return $this->next->complete($result); } }