Version 4.7.3
Release Date: Unreleased
4.7.3 release of CodeIgniter4
BREAKING
Message Changes
The
Cache.invalidHandlermessage string was added.
Changes
- Commands: The
-hoption for theroutescommand is renamed to--handlerto avoid conflict with the common use of-has a shortcut for--help. The old
-hoption 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-hoption to encourage users to switch to the new--handleroption.
- Commands: The
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
envcommand where passing options only would cause the command to throw aTypeErrorinstead 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 explicitlynull.
See the repo’s CHANGELOG.md for a complete list of bugs fixed.