Release Date: Unreleased
4.5.0 release of CodeIgniter4
- Update minimal PHP requirement to 8.0.
- TBD
The order in which Controller Filters are executed has changed. See :ref:`Upgrading Guide <upgrade-450-filter-execution-order>` for details.
- Logger: The :php:func:`log_message()` function and the logger methods in
CodeIgniter\Log\Logger
now do not returnbool
values. The return types have been fixed tovoid
to follow the PSR-3 interface.
Note
As long as you have not extended the relevant CodeIgniter core classes or implemented these interfaces, all these changes are backward compatible and require no intervention.
- Logger: The psr/log package has been upgraded to v2.0.0.
- Model: The return type of the
objectToRawArray()
method in theModel
andBaseModel
classes has been changed from?array
toarray
.
- Logger: The method signatures of the methods in
CodeIgniter\Log\Logger
that implements the PSR-3 interface have been fixed. Thebool
return types are changed tovoid
. The$message
parameters now havestring|Stringable
types.
The following deprecated items have been removed, because now :ref:`multiple-filters` are always enabled.
Filters::enableFilter()
RouteCollection::getFilterForRoute()
Router::$filterInfo
Router::getFilter()
- Config: The deprecated
CodeIgniter\Config\Config
class has been removed.
- Added
spark lang:find
command to update translations keys. See :ref:`generating-translation-files-via-command` for the details.
- DomParser: The new methods were added
seeXPath()
anddontSeeXPath()
which allows users to work directly with DOMXPath object, using complex expressions.
- Autoloader: Autoloading performance when using Composer has been improved.
Adding the
App
namespace in theautoload.psr4
setting in composer.json may also improve the performance of your app. See :ref:`autoloader-application-namespace`.
- Config:
Config\Feature::$multipleFilters
has been removed, because now :ref:`multiple-filters` are always enabled.
See the repo's CHANGELOG.md for a complete list of bugs fixed.