Upgrading from 4.2.6 to 4.2.7
Please refer to the upgrade instructions corresponding to your installation method.
Composer Installation Adding CodeIgniter4 to an Existing Project Upgrading
Time::__toString()is now locale-independent. It returns database-compatible strings like ‘2022-09-07 12:00:00’ in any locale. Most locales are not affected by this change. But in a few locales like ar, fa,
(string) $timeor implicit casting to a string) no longer returns a localized datetime string. if you want to get a localized datetime string, use Time::toDateTimeString() instead.
The logic of Validation rule
required_withouthas been changed to validate each array item separately when validating fields with asterisk (
*), and the method signature of the rule method has also been changed. Extending classes should likewise update the parameters so as not to break LSP.
4.2.7 did not alter any executable code in project 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: