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])); }