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
If you have written any classes that implement ConnectionInterface, these must now implement the
50
60
``isWriteType()`` method, declared as ``public function isWriteType($sql): bool``. If your class extends BaseConnection, then that class will provide a basic ``isWriteType()``
51
61
method which you might want to override.
52
62
53
-
**Test Traits**
63
+
Test Traits
64
+
===========
54
65
55
66
The ``CodeIgniter\Test`` namespace has had significant improvements to help developers with their
56
67
own test cases. Most notably test extensions have moved to Traits to make them easier to
@@ -68,7 +79,8 @@ and use any traits you need. For example:
68
79
Finally, ``ControllerTester`` has been superseded by ``ControllerTestTrait`` to standardize
69
80
approach and take advantage of the updated response testing (below).
70
81
71
-
**Test Responses**
82
+
Test Responses
83
+
==============
72
84
73
85
The tools for testing responses have been consolidated and improved. A new
74
86
``TestResponse`` replaces ``ControllerResponse`` and ``FeatureResponse`` with a complete
@@ -80,7 +92,7 @@ changes to be aware of:
80
92
* ``TestResponse`` does not have ``getBody()`` and ``setBody()`` methods, but rather uses the Response methods directly, e.g.: ``$body = $result->response()->getBody();``
81
93
82
94
Project Files
83
-
=============
95
+
*************
84
96
85
97
Numerous files in the project space (root, app, public, writable) received updates. Due to
86
98
these files being outside of the system scope they will not be changed without your intervention.
@@ -92,7 +104,7 @@ the project space: `Explore on Packagist <https://packagist.org/explore/?query=c
92
104
and any mandatory changes will be covered in the sections above.
93
105
94
106
Content Changes
95
-
---------------
107
+
===============
96
108
97
109
The following files received significant changes (including deprecations or visual adjustments)
98
110
and it is recommended that you merge the updated versions with your application:
@@ -108,7 +120,7 @@ and it is recommended that you merge the updated versions with your application:
108
120
* ``spark``
109
121
110
122
All Changes
111
-
-----------
123
+
===========
112
124
113
125
This is a list of all files in the project space that received changes;
114
126
many will be simple comments or formatting that have no effect on the runtime:
Copy file name to clipboardExpand all lines: user_guide_src/source/installation/upgrade_416.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Please refer to the upgrade instructions corresponding to your installation meth
15
15
Breaking Changes
16
16
****************
17
17
18
-
Validation result changes
18
+
Validation Result Changes
19
19
=========================
20
20
21
21
Due to a bug fix, the Validation now might change the validation results when you validate an array item (see :ref:`Changelog <changelog-v416-validation-changes>`). So check the validation results for all the code that validates the array. Validating multiple fields like ``contacts.*.name`` is not affected.
Copy file name to clipboardExpand all lines: user_guide_src/source/installation/upgrade_418.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,4 +15,4 @@ Please refer to the upgrade instructions corresponding to your installation meth
15
15
Breaking Changes
16
16
****************
17
17
18
-
- Due to a security issue in the ``API\ResponseTrait`` all trait methods are now scoped to ``protected``. See the `Security advisory` <https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-7528-7jg5-6g62>` for more information.
18
+
- Due to a security issue in the ``API\ResponseTrait`` all trait methods are now scoped to ``protected``. See the `Security advisory GHSA-7528-7jg5-6g62 <https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-7528-7jg5-6g62>`_ for more information.
0 commit comments