Please refer to the upgrade instructions corresponding to your installation method.
- :ref:`Composer Installation App Starter Upgrading <app-starter-upgrading>`
- :ref:`Composer Installation Adding CodeIgniter4 to an Existing Project Upgrading <adding-codeigniter4-upgrading>`
- :ref:`Manual Installation Upgrading <installing-manual-upgrading>`
CodeIgniter\Log\Handlers\HandlerInterface::handle() now accepts a third
parameter array $context = [].
If you have a custom log handler that overrides the handle() method
(whether implementing HandlerInterface directly or extending a built-in
handler class), you must update your handle() method signature:
// Before
public function handle($level, $message): bool
// After
public function handle($level, $message, array $context = []): boolThe context array may contain the CI global context data under the
HandlerInterface::GLOBAL_CONTEXT_KEY ('_ci_context') key when
$logGlobalContext is enabled in Config\Logger.
Some files in the project space (root, app, public, writable) received updates. Due to these files being outside of the system scope they will not be changed without your intervention.
Note
There are some third-party CodeIgniter modules available to assist with merging changes to the project space: Explore on Packagist.
The following files received significant changes (including deprecations or visual adjustments) and it is recommended that you merge the updated versions with your application:
- app/Config/Mimes.php
Config\Mimes::$mimesadded a new keymdfor Markdown files.
This is a list of all files in the project space that received changes; many will be simple comments or formatting that have no effect on the runtime:
- @TODO