Skip to content

Commit

Permalink
Merge pull request #10 from asnanmtakim/develop
Browse files Browse the repository at this point in the history
fix: Uuid Model for compatible with CI 4.5
  • Loading branch information
michalsn authored Apr 22, 2024
2 parents be75ec5 + ce32e2e commit d998a86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

strategy:
matrix:
php-versions: ['7.3', '7.4', '8.0']
php-versions: ['8.1']

steps:
- name: Checkout
Expand Down
4 changes: 3 additions & 1 deletion src/UuidModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -281,7 +283,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
Expand Down

0 comments on commit d998a86

Please sign in to comment.