Version 4.2.2
Release Date: August 6, 2022
4.2.2 release of CodeIgniter4
BREAKING
Now
Services::request()
returnsIncomingRequest
orCLIRequest
.The method signature of
CodeIgniter\Debug\Exceptions::__construct()
has been changed. TheIncomingRequest
typehint on the$request
parameter was removed. Extending classes should likewise remove the parameter so as not to break LSP.The method signature of
BaseBuilder.php::insert()
andBaseBuilder.php::update()
have been changed. The?array
typehint on the$set
parameter 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'
throwsInvalidArgumentException
if the second parameter$len
is an odd number.
Message Changes
Fixed
invalidRoute
message inLanguage/en/HTTP.php
.
Changes
Fixed:
BaseBuilder::increment()
andBaseBuilder::decrement()
do not reset theBaseBuilder
state after a query.Fixed: Validation of fields with a leading asterisk (wildcard).
Now
CLIRequest::isCLI()
always returns true.Now
IncommingRequest::isCLI()
always returns false.Vagrantfile.dist has been moved to CodeIgniter DevKit.
Deprecations
The parameters of
Services::request()
are deprecated.The first parameter
$cacheConfig
ofCodeIgniter::gatherOutput()
is deprecated.The second parameter
$ifNotExists
ofForge::_createTable()
is deprecated.
Bugs Fixed
See the repo’s CHANGELOG_4.2.md for a complete list of bugs fixed.