You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/changelogs/v4.2.0.rst
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,17 @@ Release Date: Not Released
12
12
BREAKING
13
13
********
14
14
15
+
Method Signature Changes
16
+
========================
17
+
15
18
- The method signature of ``CodeIgniter\Database\BaseBuilder::join()`` and ``CodeIgniter\Database\*\Builder::join()`` have been changed.
16
19
- The method signature of ``Validation::setRule()`` has been changed. The ``string`` typehint on the ``$rules`` parameter was removed. Extending classes should likewise remove the parameter so as not to break LSP.
17
20
- The method signature of ``CodeIgniter\CLI\CommandRunner::_remap()`` has been changed to fix a bug.
21
+
- The default parameter values for ``Service::reset()`` and ``CIUnitTestCase::resetServices()`` have been changed from ``false`` to ``true``. This is to eliminate unexpected problems during testing, such as ``lang()`` not getting translated messages.
22
+
23
+
Behavior Changes
24
+
================
25
+
18
26
- The ``CodeIgniter\CodeIgniter`` class has a new property ``$context`` and it must have the correct context at runtime. So the following files have been changed:
19
27
- ``public/index.php``
20
28
- ``spark``
@@ -24,7 +32,6 @@ BREAKING
24
32
- To prevent unexpected access from the web browser, if a controller is added to a cli route (``$routes->cli()``), all methods of that controller are no longer accessible via auto-routing.
25
33
- There is a possible backward compatibility break for those users extending the History Collector and they should probably update ``History::setFiles()`` method.
26
34
- The :php:func:`dot_array_search`'s unexpected behavior has been fixed. Now ``dot_array_search('foo.bar.baz', ['foo' => ['bar' => 23]])`` returns ``null``. The previous versions returned ``23``.
27
-
- The default parameter values for ``Service::reset()`` and ``CIUnitTestCase::resetServices()`` have been changed from ``false`` to ``true``. This is to eliminate unexpected problems during testing, such as ``lang()`` not getting translated messages.
28
35
29
36
Enhancements
30
37
************
@@ -75,6 +82,14 @@ Database
75
82
- ``DBForge::addField()`` default value raw SQL string support. See :ref:`forge-addfield-default-value-rawsql`.
76
83
- QueryBuilder. Union queries. See :ref:`query-builder-union`.
77
84
85
+
Helpers and Functions
86
+
=====================
87
+
88
+
- HTML helper ``script_tag()`` now uses ``null`` values to write boolean attributes in minimized form: ``<script src="..." defer />``. See the sample code for :php:func:`script_tag`.
89
+
- Added 4th parameter ``$includeDir`` to ``get_filenames()``. See :php:func:`get_filenames`.
90
+
- Exception information logged through ``log_message()`` has now improved. It now includes the file and line where the exception originated. It also does not truncate the message anymore.
91
+
- The log format has also changed. If users are depending on the log format in their apps, the new log format is "<1-based count> <cleaned filepath>(<line>): <class><function><args>"
92
+
78
93
Others
79
94
======
80
95
@@ -85,11 +100,7 @@ Others
85
100
- See :ref:`content-security-policy` for details.
86
101
- New :doc:`../outgoing/view_decorators` allow modifying the generated HTML prior to caching.
87
102
- Added Validation Strict Rules. See :ref:`validation-traditional-and-strict-rules`.
88
-
- Exception information logged through ``log_message()`` has now improved. It now includes the file and line where the exception originated. It also does not truncate the message anymore.
89
-
- The log format has also changed. If users are depending on the log format in their apps, the new log format is "<1-based count> <cleaned filepath>(<line>): <class><function><args>"
90
103
- Added support for webp files to **app/Config/Mimes.php**.
91
-
- Added 4th parameter ``$includeDir`` to ``get_filenames()``. See :php:func:`get_filenames`.
92
-
- HTML helper ``script_tag()`` now uses ``null`` values to write boolean attributes in minimized form: ``<script src="..." defer />``. See the sample code for :php:func:`script_tag`.
93
104
- RouteCollection::addRedirect() can now use placeholders.
94
105
- Debugbar enhancements
95
106
- Debug toolbar is now using ``microtime()`` instead of ``time()``.
0 commit comments