From ccd0fb7ed4c768e1d9420dd5bd32c7c98b77ac14 Mon Sep 17 00:00:00 2001 From: M Asnan Mustakim Date: Mon, 22 Apr 2024 12:48:37 +0700 Subject: [PATCH 1/3] fix: Uuid Model for compatible with CI 4.5 --- src/UuidModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UuidModel.php b/src/UuidModel.php index 951c545..94326f5 100644 --- a/src/UuidModel.php +++ b/src/UuidModel.php @@ -281,7 +281,7 @@ protected function doFindColumn(string $columnName) * * @return array */ - protected function doFindAll(int $limit = 0, int $offset = 0) + protected function doFindAll(int $limit = null, int $offset = 0) { $result = parent::doFindAll($limit, $offset); // Convert UUID fields from byte if needed From 2dcc6dc06dedbedcedfa77c5bdd6e0f42334fe4a Mon Sep 17 00:00:00 2001 From: M Asnan Mustakim Date: Mon, 22 Apr 2024 13:34:55 +0700 Subject: [PATCH 2/3] fix: update minimum php version --- .github/workflows/php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 9289a2b..9ac0a66 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -27,7 +27,7 @@ jobs: strategy: matrix: - php-versions: ['7.3', '7.4', '8.0'] + php-versions: ['8.1'] steps: - name: Checkout From ce32e2e03d25f74dfb7fdac62e8f33519b505ef3 Mon Sep 17 00:00:00 2001 From: M Asnan Mustakim Date: Mon, 22 Apr 2024 20:51:05 +0700 Subject: [PATCH 3/3] fix: import 2 undefined classes --- src/UuidModel.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/UuidModel.php b/src/UuidModel.php index 94326f5..4ff788b 100644 --- a/src/UuidModel.php +++ b/src/UuidModel.php @@ -4,6 +4,8 @@ use CodeIgniter\Database\Exceptions\DataException; use CodeIgniter\Model; +use CodeIgniter\Database\ConnectionInterface; +use CodeIgniter\Validation\ValidationInterface; use Michalsn\Uuid\Exceptions\UuidModelException; use Michalsn\Uuid\Uuid;