From ff1199d5ec20a821697978a5bbfcdb657c0398b7 Mon Sep 17 00:00:00 2001 From: vibbow Date: Mon, 12 Aug 2019 17:40:36 +0800 Subject: [PATCH] Update limit function since $limit is nullable --- system/Database/BaseBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Database/BaseBuilder.php b/system/Database/BaseBuilder.php index 0306651b2e85..2e983f2fd7ab 100644 --- a/system/Database/BaseBuilder.php +++ b/system/Database/BaseBuilder.php @@ -1293,7 +1293,7 @@ public function orderBy(string $orderBy, string $direction = '', bool $escape = * * @return BaseBuilder */ - public function limit(int $value = null, int $offset = 0) + public function limit(int $value = null, ?int $offset = 0) { if (! is_null($value)) {