Skip to content

Commit 2a2748d

Browse files
committed
config: change to "E_ALL & ~E_DEPRECATED"
1 parent 84c68e9 commit 2a2748d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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

320320
Deprecations
321321
************

0 commit comments

Comments
 (0)