Skip to content

Latest commit

 

History

History
148 lines (101 loc) · 3.33 KB

File metadata and controls

148 lines (101 loc) · 3.33 KB

Version 4.5.0

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.

Due to a bug fix, the behavior has changed so that options passed to the outer group() are merged with the options of the inner group(). See :ref:`Upgrading Guide <upgrade-450-nested-route-groups-and-options>` for details.

  • Logger: The :php:func:`log_message()` function and the logger methods in CodeIgniter\Log\Logger now do not return bool values. The return types have been fixed to void 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 the Model and BaseModel classes has been changed from ?array to array.
  • Logger: The method signatures of the methods in CodeIgniter\Log\Logger that implements the PSR-3 interface have been fixed. The bool return types are changed to void. The $message parameters now have string|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()
  • DomParser: The new methods were added seeXPath() and dontSeeXPath() 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 the autoload.psr4 setting in composer.json may also improve the performance of your app. See :ref:`autoloader-application-namespace`.
  • Config:

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