|
| 1 | +Version 4.1.4 |
| 2 | +============= |
| 3 | + |
| 4 | +Release Date: September 6, 2021 |
| 5 | + |
| 6 | +**4.1.4 release of CodeIgniter4** |
| 7 | + |
| 8 | +This release focuses on code style. All changes (except those noted below) are cosmetic to bring the code in line with the new |
| 9 | +`CodeIgniter Coding Standard <https://github.com/CodeIgniter/coding-standard>`_ (based on PSR-12). |
| 10 | + |
| 11 | +Breaking Changes: |
| 12 | + |
| 13 | +- The following methods were changed from "public" to "protected" to match their parent class methods and better align with their uses: |
| 14 | + |
| 15 | + * ``CodeIgniter\Database\MySQLi\Connection::execute()`` |
| 16 | + * ``CodeIgniter\Database\MySQLi\Connection::_fieldData()`` |
| 17 | + * ``CodeIgniter\Database\MySQLi\Connection::_indexData()`` |
| 18 | + * ``CodeIgniter\Database\MySQLi\Connection::_foreignKeyData()`` |
| 19 | + * ``CodeIgniter\Database\Postgre\Builder::_like_statement()`` |
| 20 | + * ``CodeIgniter\Database\Postgre\Connection::execute()`` |
| 21 | + * ``CodeIgniter\Database\Postgre\Connection::_fieldData()`` |
| 22 | + * ``CodeIgniter\Database\Postgre\Connection::_indexData()`` |
| 23 | + * ``CodeIgniter\Database\Postgre\Connection::_foreignKeyData()`` |
| 24 | + * ``CodeIgniter\Database\SQLSRV\Connection::execute()`` |
| 25 | + * ``CodeIgniter\Database\SQLSRV\Connection::_fieldData()`` |
| 26 | + * ``CodeIgniter\Database\SQLSRV\Connection::_indexData()`` |
| 27 | + * ``CodeIgniter\Database\SQLSRV\Connection::_foreignKeyData()`` |
| 28 | + * ``CodeIgniter\Database\SQLite3\Connection::execute()`` |
| 29 | + * ``CodeIgniter\Database\SQLite3\Connection::_fieldData()`` |
| 30 | + * ``CodeIgniter\Database\SQLite3\Connection::_indexData()`` |
| 31 | + * ``CodeIgniter\Database\SQLite3\Connection::_foreignKeyData()`` |
| 32 | + * ``CodeIgniter\Images\Handlers\GDHandler::_flatten()`` |
| 33 | + * ``CodeIgniter\Images\Handlers\GDHandler::_flip()`` |
| 34 | + * ``CodeIgniter\Images\Handlers\ImageMagickHandler::_flatten()`` |
| 35 | + * ``CodeIgniter\Images\Handlers\ImageMagickHandler::_flip()`` |
| 36 | + * ``CodeIgniter\Test\Mock\MockIncomingRequest::detectURI()`` |
| 37 | + * ``CodeIgniter\Test\Mock\MockSecurity.php::sendCookie()`` |
| 38 | + |
| 39 | +- To be compatible with the strict inheritance checks of PHP 8.1, the following method signatures were added return types to match their parents' signatures whenever possible: |
| 40 | + |
| 41 | + * ``CodeIgniter\Cookie\Cookie::offsetExists()`` |
| 42 | + * ``CodeIgniter\Cookie\Cookie::offsetSet()`` |
| 43 | + * ``CodeIgniter\Cookie\Cookie::offsetUnset()`` |
| 44 | + * ``CodeIgniter\Cookie\CookieStore::getIterator()`` |
| 45 | + * ``CodeIgniter\I18n\Time::__wakeup()`` |
| 46 | + * ``CodeIgniter\Test\Filters\CITestStreamFilter::filter()`` |
| 47 | + |
| 48 | +- Related to the strict inheritance checks of PHP 8.1, the following session handlers implementing ``SessionHandlerInterface`` have their public methods modified to match the interface: |
| 49 | + |
| 50 | + * ``CodeIgniter\Session\Handlers\ArrayHandler`` |
| 51 | + * ``CodeIgniter\Session\Handlers\DatabaseHandler`` |
| 52 | + * ``CodeIgniter\Session\Handlers\FileHandler`` |
| 53 | + * ``CodeIgniter\Session\Handlers\MemcachedHandler`` |
| 54 | + * ``CodeIgniter\Session\Handlers\RedisHandler`` |
0 commit comments