fix(admin-controller): ensure page and limit are integers
Cast page and limit values to integers in AdminController's filter method to prevent type-related errors. This change guarantees that these parameters are whole numbers, which is essential for consistent database pagination and filtering operations.
This commit is contained in:
@@ -199,7 +199,7 @@ class AdminController extends BaseController
|
||||
$where[] = [$key, $op, "%{$val}"];
|
||||
}
|
||||
}
|
||||
return [$page, $limit, $where, $excludes];
|
||||
return [(int)$page, (int)$limit, $where, $excludes];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user