From adbfbf79c236668eb42179d0ba81064dd20bbf34 Mon Sep 17 00:00:00 2001 From: ping-yee <611077101@mail.nknu.edu.tw> Date: Fri, 4 Aug 2023 13:26:03 +0800 Subject: [PATCH] Dev: change the return type for the pager exception. --- system/Pager/Exceptions/PagerException.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/Pager/Exceptions/PagerException.php b/system/Pager/Exceptions/PagerException.php index cc37ecfba9..db6868ee94 100644 --- a/system/Pager/Exceptions/PagerException.php +++ b/system/Pager/Exceptions/PagerException.php @@ -15,12 +15,12 @@ use CodeIgniter\Exceptions\FrameworkException; class PagerException extends FrameworkException { - public static function forInvalidTemplate(?string $template = null): PagerException + public static function forInvalidTemplate(?string $template = null): self { return new static(lang('Pager.invalidTemplate', [$template])); } - public static function forInvalidPaginationGroup(?string $group = null): PagerException + public static function forInvalidPaginationGroup(?string $group = null): self { return new static(lang('Pager.invalidPaginationGroup', [$group])); }