Release Date: Unreleased
4.7.5 release of CodeIgniter4
- Response:
setJSON()andsetXML(), and theFormatterInterface::format()contract implemented byJSONFormatterandXMLFormatter, now type their body/data parameter asmixedinstead ofarray|object|string, matching what they already accepted at runtime (e.g., scalars andbool).
- Debug Toolbar: Deprecated the unused
CodeIgniter\Debug\Toolbar\Collectors\Views::$viewsproperty.
- CLIRequest: Fixed a bug where
parseCommand()could throw a TypeError whenargvis missing. - Content Security Policy: Fixed a bug where empty
Content-Security-Policy,Content-Security-Policy-Report-Only, andReporting-Endpointsresponse 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 a bug where
MemcachedHandler::decrement()on a non-existent key returned a positive value instead of0, the opposite sign of whatFileHandler,RedisHandler, andPredisHandlerreturn.
See the repo's CHANGELOG.md for a complete list of bugs fixed.