Skip to content

Commit 017a5c4

Browse files
committed
config: change to "E_ALL & ~E_DEPRECATED"
1 parent 02d525b commit 017a5c4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/Config/Boot/production.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
|
1010
| If you set 'display_errors' to '1', CI4's detailed error report will show.
1111
*/
12-
error_reporting(-1);
13-
// If you want to suppress some types of errors.
12+
error_reporting(E_ALL & ~E_DEPRECATED);
13+
// If you want to suppress more types of errors.
1414
// error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
1515
ini_set('display_errors', '0');
1616

user_guide_src/source/changelogs/v4.5.0.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ Changes
314314
- ``Config\Feature::$multipleFilters`` has been removed, because now
315315
:ref:`multiple-filters` are always enabled.
316316
- The default error level in the production environment
317-
(**app/Config/Boot/production.php**) has been changed to use the same error
318-
level in the development environment.
317+
(**app/Config/Boot/production.php**) has been changed to ``E_ALL & ~E_DEPRECATED``
318+
to match the default **php.ini** for production.
319319
- **RouteCollection:** The HTTP method keys in the protected property ``$routes``
320320
has been fixed from lowercase to uppercase.
321321

user_guide_src/source/installation/upgrade_450.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Others
256256
^^^^^^
257257

258258
- app/Config/Boot/production.php
259-
- The default error level to ``error_reporting()`` has been changed to ``-1``.
259+
- The default error level to ``error_reporting()`` has been changed to ``E_ALL & ~E_DEPRECATED``.
260260
- app/Config/Database.php
261261
- The default value of ``charset`` in ``$default`` has been change to ``utf8mb4``.
262262
- The default value of ``DBCollat`` in ``$default`` has been change to ``utf8mb4_general_ci``.

0 commit comments

Comments
 (0)