Skip to content

Commit 77718f7

Browse files
list function bugs fixed. (Return value must be of type array, stdClass returned)
1 parent 8ce4da6 commit 77718f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/CommonModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function __construct(string $group = 'default')
6868
* @version 1.1.8 Added OR WHERE functionality.
6969
* @version 1.1.9 Added $options and JOIN functionality.
7070
*/
71-
public function lists(string $table, string $select = '*', array $where = [], string $order = 'id ASC', int $limit = 0, int $pkCount = 0, array $like = [], array $orWhere = [], array $joins = [], array $options = ['isReset' => false]): array
71+
public function lists(string $table, string $select = '*', array $where = [], string $order = 'id ASC', int $limit = 0, int $pkCount = 0, array $like = [], array $orWhere = [], array $joins = [], array $options = ['isReset' => false]): mixed
7272
{
7373
$builder = $this->db->table($table);
7474
$builder->select($select);

0 commit comments

Comments
 (0)