From 8904df7dff180cc6509e6588f1916bccd4249199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 23 Apr 2021 10:20:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/Pagination.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Database/Pagination.php b/Database/Pagination.php index b9a24356..4430b43a 100644 --- a/Database/Pagination.php +++ b/Database/Pagination.php @@ -151,7 +151,7 @@ class Pagination extends Component } [$length, $data] = $this->get(); - $this->executed($this->_callback, $data, $param); + $this->executed($data, $param); unset($data); if ($length < $this->_limit) { @@ -171,15 +171,14 @@ class Pagination extends Component /** - * @param $callback * @param $data * @param $param * @throws Exception */ - private function executed($callback, $data, $param): void + private function executed($data, $param): void { try { - call_user_func($callback, $data, $param); + call_user_func($this->_callback, $data, $param); } catch (\Throwable $exception) { $this->addError($exception, 'throwable'); } finally {