Skip to content

Commit 026bf73

Browse files
committed
docs: add changelog entry for paginate() overflow fix
1 parent 2e9219f commit 026bf73

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎docs/changelogs/v4.7.7.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Release Date: Unreleased
1616

1717
## Bugs Fixed
1818

19+
- **API:** Fixed a bug where `ResponseTrait::paginate()` computed a floating-point offset when `page` was far beyond the last page, which `BaseBuilder::limit()` rejected with a `TypeError` and turned into an HTTP 500 response. Out-of-range pages now use the total record count as the offset, so the query still runs and returns an empty data set. Also fixed a `DivisionByZeroError` when `$perPage` was `0`.
1920
- **CORS:** Fixed a bug where `Cors::hasResponseHeaders()` matched header substrings via `str_contains()`, causing false positives when existing exposed headers shared a prefix with configured exposed headers.
2021
- **Database:** Fixed a bug where `Postgre`, `OCI8`, and `SQLSRV` `Forge::_dropKeyAsConstraint()` interpolated table, constraint, and schema names without escaping.
2122
- **Database:** Fixed a bug where `SQLSRV\Builder::_upsertBatch()` concatenated `$table` unescaped into `Object_ID()`, causing syntax errors for table names with quotes or special characters.

0 commit comments

Comments
 (0)