Version 4.7.5

Release Date: Unreleased

4.7.5 release of CodeIgniter4

BREAKING

Message Changes

Changes

  • Response: setJSON() and setXML(), and the FormatterInterface::format() contract implemented by JSONFormatter and XMLFormatter, now type their body/data parameter as mixed instead of array|object|string, matching what they already accepted at runtime (e.g., scalars and bool).

Deprecations

  • Debug Toolbar: Deprecated the unused CodeIgniter\Debug\Toolbar\Collectors\Views::$views property.

Bugs Fixed

  • CLIRequest: Fixed a bug where parseCommand() could throw a TypeError when argv is missing.

  • Content Security Policy: Fixed a bug where empty Content-Security-Policy, Content-Security-Policy-Report-Only, and Reporting-Endpoints response headers were generated when no corresponding values existed.

  • Helpers: Fixed a bug where get_dir_file_info() returned incomplete entries for subdirectories and missing files instead of omitting them.

  • Logger: Fixed a bug where interpolating a log message with array or non-stringable context values could raise PHP warnings or errors.

See the repo’s CHANGELOG.md for a complete list of bugs fixed.