Version 4.7.3

Release Date: Unreleased

4.7.3 release of CodeIgniter4

BREAKING

Message Changes

  • The Cache.invalidHandler message string was added.

Changes

  • Commands: The -h option for the routes command is renamed to --handler to avoid conflict with the common use of -h as a shortcut for --help.

    The old -h option will continue to work until v4.8.0, at which point it will be removed and repurposed as a shortcut for --help. A warning message is displayed when using the old -h option to encourage users to switch to the new --handler option.

Deprecations

Bugs Fixed

  • Autoloader: Fixed a bug where Autoloader::unregister() (used during tests) silently failed to remove handlers from the SPL autoload stack, causing closures to accumulate permanently.

  • Commands: Fixed a bug in the env command where passing options only would cause the command to throw a TypeError instead of showing the current environment.

  • Common: Fixed a bug where the command() helper function did not properly clean up output buffers, which could lead to risky tests when exceptions were thrown.

  • Validation: Fixed a bug where Validation::getValidated() dropped fields whose validated value was explicitly null.

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