Version 4.2.2¶
Release Date: August 6, 2022
4.2.2 release of CodeIgniter4
BREAKING¶
- Now
Services::request()returnsIncomingRequestorCLIRequest. - The method signature of
CodeIgniter\Debug\Exceptions::__construct()has been changed. TheIncomingRequesttypehint on the$requestparameter was removed. Extending classes should likewise remove the typehint so as not to break LSP. - The method signatures of
BaseBuilder.php::insert()andBaseBuilder.php::update()have been changed. The?arraytypehint on the$setparameter was removed. - A bug that caused pages to be cached before "after" filters were executed when using page caching has been fixed. Adding response headers or changing the response body in after filters now caches them correctly.
- Due to a bug fix, now
random_string()with the first parameter'crypto'throwsInvalidArgumentExceptionif the second parameter$lenis an odd number.
Message Changes¶
- Fixed
invalidRoutemessage inLanguage/en/HTTP.php.
Changes¶
- Fixed:
BaseBuilder::increment()andBaseBuilder::decrement()do not reset theBaseBuilderstate after a query. - Fixed: Validation of fields with a leading asterisk (wildcard).
- Now
CLIRequest::isCLI()always returns true. - Now
IncomingRequest::isCLI()always returns false. - Vagrantfile.dist has been moved to CodeIgniter DevKit.
Deprecations¶
- The parameters of
Services::request()are deprecated. - The first parameter
$cacheConfigofCodeIgniter::gatherOutput()is deprecated. - The second parameter
$ifNotExistsofForge::_createTable()is deprecated.
Bugs Fixed¶
See the repo's CHANGELOG_4.2.md for a complete list of bugs fixed.