|
| 1 | +############################# |
| 2 | +Upgrading from 4.1.3 to 4.1.4 |
| 3 | +############################# |
| 4 | + |
| 5 | +This release focuses on code style. All changes (except those noted below) are cosmetic to bring the code in line with the new |
| 6 | +`CodeIgniter Coding Standard <https://github.com/CodeIgniter/coding-standard>`_ (based on PSR-12). |
| 7 | + |
| 8 | +**Method Scope** |
| 9 | + |
| 10 | +The following methods were changed from "public" to "protected" to match their parent class methods and better align with their uses. |
| 11 | +If you relied on any of these methods being public (highly unlikely) adjust your code accordingly:: |
| 12 | + |
| 13 | +* ``CodeIgniter\Database\MySQLi\Connection::execute()`` |
| 14 | +* ``CodeIgniter\Database\MySQLi\Connection::_fieldData()`` |
| 15 | +* ``CodeIgniter\Database\MySQLi\Connection::_indexData()`` |
| 16 | +* ``CodeIgniter\Database\MySQLi\Connection::_foreignKeyData()`` |
| 17 | +* ``CodeIgniter\Database\Postgre\Builder::_like_statement()`` |
| 18 | +* ``CodeIgniter\Database\Postgre\Connection::execute()`` |
| 19 | +* ``CodeIgniter\Database\Postgre\Connection::_fieldData()`` |
| 20 | +* ``CodeIgniter\Database\Postgre\Connection::_indexData()`` |
| 21 | +* ``CodeIgniter\Database\Postgre\Connection::_foreignKeyData()`` |
| 22 | +* ``CodeIgniter\Database\SQLSRV\Connection::execute()`` |
| 23 | +* ``CodeIgniter\Database\SQLSRV\Connection::_fieldData()`` |
| 24 | +* ``CodeIgniter\Database\SQLSRV\Connection::_indexData()`` |
| 25 | +* ``CodeIgniter\Database\SQLSRV\Connection::_foreignKeyData()`` |
| 26 | +* ``CodeIgniter\Database\SQLite3\Connection::execute()`` |
| 27 | +* ``CodeIgniter\Database\SQLite3\Connection::_fieldData()`` |
| 28 | +* ``CodeIgniter\Database\SQLite3\Connection::_indexData()`` |
| 29 | +* ``CodeIgniter\Database\SQLite3\Connection::_foreignKeyData()`` |
| 30 | +* ``CodeIgniter\Images\Handlers\GDHandler::_flatten()`` |
| 31 | +* ``CodeIgniter\Images\Handlers\GDHandler::_flip()`` |
| 32 | +* ``CodeIgniter\Images\Handlers\ImageMagickHandler::_flatten()`` |
| 33 | +* ``CodeIgniter\Images\Handlers\ImageMagickHandler::_flip()`` |
| 34 | +* ``CodeIgniter\Test\Mock\MockIncomingRequest::detectURI()`` |
| 35 | +* ``CodeIgniter\Test\Mock\MockSecurity.php::sendCookie()`` |
| 36 | + |
| 37 | + |
| 38 | +Project Files |
| 39 | +============= |
| 40 | + |
| 41 | +Numerous files in the project space (root, app, public, writable) received updates. Due to |
| 42 | +these files being outside of the system scope they will not be changed without your intervention. |
| 43 | +There are some third-party CodeIgniter modules available to assist with merging changes to |
| 44 | +the project space: `Explore on Packagist <https://packagist.org/explore/?query=codeigniter4%20updates>`_. |
| 45 | + |
| 46 | +.. note:: Except in very rare cases for bug fixes, no changes made to files for the project space |
| 47 | + will break your application. All changes noted here are optional until the next major version, |
| 48 | + and any mandatory changes will be covered in the sections above. |
| 49 | + |
| 50 | +Content Changes |
| 51 | +--------------- |
| 52 | + |
| 53 | +The following files received significant changes (including deprecations or visual adjustments) |
| 54 | +and it is recommended that you merge the updated versions with your application: |
| 55 | + |
| 56 | +* ``app/Config/App.php`` |
| 57 | +* ``app/Config/Autoload.php`` |
| 58 | +* ``app/Config/Cookie.php`` |
| 59 | +* ``app/Config/Events.php`` |
| 60 | +* ``app/Config/Exceptions.php`` |
| 61 | +* ``app/Config/Security.php`` |
| 62 | +* ``app/Views/errors/html/*`` |
| 63 | +* ``env`` |
| 64 | +* ``spark`` |
| 65 | + |
| 66 | +All Changes |
| 67 | +----------- |
| 68 | + |
| 69 | +This is a list of all files in the project space that received changes; |
| 70 | +many will be simple comments or formatting that have no affect on the runtime: |
| 71 | + |
| 72 | +* ``app/Config/App.php`` |
| 73 | +* ``app/Config/Autoload.php`` |
| 74 | +* ``app/Config/ContentSecurityPolicy.php`` |
| 75 | +* ``app/Config/Cookie.php`` |
| 76 | +* ``app/Config/Events.php`` |
| 77 | +* ``app/Config/Exceptions.php`` |
| 78 | +* ``app/Config/Logger.php`` |
| 79 | +* ``app/Config/Mimes.php`` |
| 80 | +* ``app/Config/Modules.php`` |
| 81 | +* ``app/Config/Security.php`` |
| 82 | +* ``app/Controllers/BaseController.php`` |
| 83 | +* ``app/Views/errors/html/debug.css`` |
| 84 | +* ``app/Views/errors/html/error_404.php`` |
| 85 | +* ``app/Views/errors/html/error_exception.php`` |
| 86 | +* ``app/Views/welcome_message.php`` |
| 87 | +* ``composer.json`` |
| 88 | +* ``contributing/guidelines.rst`` |
| 89 | +* ``env`` |
| 90 | +* ``phpstan.neon.dist`` |
| 91 | +* ``phpunit.xml.dist`` |
| 92 | +* ``public/.htaccess`` |
| 93 | +* ``public/index.php`` |
| 94 | +* ``rector.php`` |
| 95 | +* ``spark`` |
0 commit comments