Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.79 KB

File metadata and controls

46 lines (34 loc) · 1.79 KB

Version 4.7.5

Release Date: Unreleased

4.7.5 release of CodeIgniter4

  • 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).
  • Debug Toolbar: Deprecated the unused CodeIgniter\Debug\Toolbar\Collectors\Views::$views property.
  • 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.
  • Honeypot: Fixed a bug where bot detection returned an HTTP 500 response instead of 403 (Forbidden).
  • Logger: Fixed a bug where interpolating a log message with array or non-stringable context values could raise PHP warnings or errors.
  • Cache: Fixed MemcachedHandler::decrement() initializing a non-existent counter to the positive offset. Missing counters are now initialized to 0, reflecting Memcached's unsigned, saturating counter semantics.

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