Skip to content

Commit f94d834

Browse files
committed
Update documentations
1 parent 45cda74 commit f94d834

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

user_guide_src/source/changelogs/v4.3.0.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,9 @@ Helpers and Functions
221221
Error Handling
222222
==============
223223

224-
- You can now log deprecation errors instead of throwing them. See :ref:`logging_deprecation_errors` for details.
224+
- You can now log deprecation warnings instead of throwing exceptions. See :ref:`logging_deprecation_warnings` for details.
225+
- Logging of deprecations is turned on by default.
226+
- To *temporarily* enable throwing of deprecations, set the environment variable ``CODEIGNITER_SCREAM_DEPRECATIONS`` to a truthy value.
225227

226228
Others
227229
======

user_guide_src/source/general/errors.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ Since v4.3.0, you can specify the exit code for your Exception class to implemen
134134

135135
When an exception implementing ``HasExitCodeInterface`` is caught by CodeIgniter's exception handler, the code returned from the ``getExitCode()`` method will become the exit code.
136136

137-
.. _logging_deprecation_errors:
137+
.. _logging_deprecation_warnings:
138138

139-
Logging Deprecation Errors
140-
==========================
139+
Logging Deprecation Warnings
140+
============================
141141

142142
.. versionadded:: 4.3.0
143143

@@ -161,3 +161,6 @@ After that, subsequent deprecations will be logged instead of thrown.
161161
This feature also works with user deprecations:
162162

163163
.. 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.

0 commit comments

Comments
 (0)