From 450569fce714ed11d6a148b8389d0ed07cfd68a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 17 Feb 2022 18:24:15 +0800 Subject: [PATCH] modify plugin name --- Pagination.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Pagination.php b/Pagination.php index 6ebd70c..af14bf1 100644 --- a/Pagination.php +++ b/Pagination.php @@ -146,10 +146,13 @@ class Pagination extends Component return $this->output(); } [$length, $data] = $this->get(); - - $this->executed($data, $param); - - unset($data); + try { + call_user_func($this->_callback, $data, $param); + } catch (\Throwable $exception) { + $this->addError($exception, 'throwable'); + } finally { + $data = null; + } if ($length < $this->_limit) { return $this->output(); }