Upgrading from 4.1.5 to 4.1.6
Please refer to the upgrade instructions corresponding to your installation method.
Composer Installation Adding CodeIgniter4 to an Existing Project Upgrading
Validation Result Changes
Due to a bug fix, the Validation now might change the validation results when you validate an array item (see Changelog). So check the validation results for all the code that validates the array. Validating multiple fields like
contacts.*.name is not affected.
If you have the following form:
<input type='text' name='invoice_rule'> <input type='text' name='invoice_rule'>
And you have the validation rule like this:
'invoice_rule' => ['rules' => 'numeric', 'errors' => ['numeric' => 'Not numeric']]
Change the rule key to
invoice_rule.* and the validation will work.
Numerous 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. There are some third-party CodeIgniter modules available to assist with merging changes to the project space: Explore on Packagist.
Except in very rare cases for bug fixes, no changes made to files for the project space will break your application. All changes noted here are optional until the next major version, and any mandatory changes will be covered in the sections above.
The following files received significant changes (including deprecations or visual adjustments) and it is recommended that you merge the updated versions with your application:
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: