user_guide_src/source/changelogs/v4.0.4.rst
Release Date: July 15, 2020
4.0.4 release of CodeIgniter4
.. contents:: :local: :depth: 2
$arguments parameter to after() and before() in FilterInterface. This is a breaking change, so all code implementing the FilterInterface must be updated.writable folder instead of the public folder.cache:clear that will destroy all data within the current cache engine.getFieldData() in the database results class now returns column type and length.Fabricator </testing/fabricator> makes creating mock classes simple and repeatable in your tests.Feature Tests </testing/feature> in general.command() helper function </cli/spark_commands> to programatically run your CLI commands. Useful for testing and cron jobs.make:seeder to generate a :doc:Database Seed class </dbmgmt/seeds> skeleton file.mb_url_title() </helpers/url_helper> that functions like url_title() but automatically escapes and extended URL characters.Image library </libraries/images> now supports webp images.delete_files() </helpers/filesystem_helper> helper.fetchGlobal() in the Request class now supports applying filters to arrays of data, not just the first item.file validation now works with arrays of files.setSilent() method that will disable the throwing of Exceptions.URI::getSegment() that allows us to change the default value returned if nothing exists.withResource() in Image so that you can use method chaining instead of using the provided getResource() (used in tests). To just compress your image.withCookies() and withHeaders() methods.$key parameter in :doc:Encryption class</libraries/encryption> or in .env file.writable folder instead of the public folder.force_https() could add https:// a second time.$target parameter was null.set_checkbox() and set_radio() when the $default parameter is set to true.Time::setTimezone() now working correctly.fill() process.is_unique/is_not_unique validation called on POST/PUT via API in PostgreSQL.after().See the repo's
CHANGELOG_4.0.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/changelogs/CHANGELOG_4.0.md>_
for a complete list of bugs fixed.