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.3.0.rst
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,10 @@ Helpers and Functions
223
223
Error Handling
224
224
==============
225
225
226
-
- You can now log deprecation errors instead of throwing them. See :ref:`logging_deprecation_errors` for details.
226
+
- You can now log deprecation warnings instead of throwing exceptions. See :ref:`logging_deprecation_warnings` for details.
227
+
- Logging of deprecations is turned on by default.
228
+
- To *temporarily* enable throwing of deprecations, set the environment variable ``CODEIGNITER_SCREAM_DEPRECATIONS`` to a truthy value.
229
+
- ``Config\Logger::$threshold`` is now, by default, environment-specific. For production environment, default threshold is still ``4`` but changed to ``9`` for other environments.
227
230
228
231
Others
229
232
======
@@ -272,4 +275,3 @@ Bugs Fixed
272
275
**********
273
276
274
277
- Fixed a bug when all types of ``Prepared Queries`` were returning a ``Result`` object instead of a bool value for write-type queries.
Copy file name to clipboardExpand all lines: user_guide_src/source/general/errors.rst
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,10 +134,10 @@ Since v4.3.0, you can specify the exit code for your Exception class to implemen
134
134
135
135
When an exception implementing ``HasExitCodeInterface`` is caught by CodeIgniter's exception handler, the code returned from the ``getExitCode()`` method will become the exit code.
136
136
137
-
.. _logging_deprecation_errors:
137
+
.. _logging_deprecation_warnings:
138
138
139
-
Logging Deprecation Errors
140
-
==========================
139
+
Logging Deprecation Warnings
140
+
============================
141
141
142
142
.. versionadded:: 4.3.0
143
143
@@ -161,3 +161,6 @@ After that, subsequent deprecations will be logged instead of thrown.
161
161
This feature also works with user deprecations:
162
162
163
163
.. literalinclude:: errors/014.php
164
+
165
+
For testing your application you may want to always throw on deprecations. You may configure this by
166
+
setting the environment variable ``CODEIGNITER_SCREAM_DEPRECATIONS`` to a truthy value.
Copy file name to clipboardExpand all lines: user_guide_src/source/installation/upgrade_430.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
@@ -181,7 +181,7 @@ and it is recommended that you merge the updated versions with your application:
181
181
* ``app/Config/DocTypes.php``
182
182
* The property ``$html5`` to determine whether to remove the solidus (``/``) character for void HTML elements (e.g. ``<input>``) is added, and set to ``true`` by default for HTML5 compatibility.
183
183
* ``app/Config/Exceptions.php``
184
-
* Two additional public properties were added: ``$logDeprecationsOnly`` and ``$deprecationLogLevel``.
184
+
* Two additional public properties were added: ``$logDeprecations`` and ``$deprecationLogLevel``.
185
185
* ``app/Config/Routes.php``
186
186
* Due to the fact that the approach to running Spark Commands has changed, there is no longer a need to load the internal routes of the framework.
0 commit comments