Skip to content

Commit

Permalink
config: change to "E_ALL & ~E_DEPRECATED"
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Nov 29, 2023
1 parent 02d525b commit 017a5c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/Config/Boot/production.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
|
| If you set 'display_errors' to '1', CI4's detailed error report will show.
*/
error_reporting(-1);
// If you want to suppress some types of errors.
error_reporting(E_ALL & ~E_DEPRECATED);
// If you want to suppress more types of errors.
// error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
ini_set('display_errors', '0');

Expand Down
4 changes: 2 additions & 2 deletions user_guide_src/source/changelogs/v4.5.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ Changes
- ``Config\Feature::$multipleFilters`` has been removed, because now
:ref:`multiple-filters` are always enabled.
- The default error level in the production environment
(**app/Config/Boot/production.php**) has been changed to use the same error
level in the development environment.
(**app/Config/Boot/production.php**) has been changed to ``E_ALL & ~E_DEPRECATED``
to match the default **php.ini** for production.
- **RouteCollection:** The HTTP method keys in the protected property ``$routes``
has been fixed from lowercase to uppercase.

Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/installation/upgrade_450.rst
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ Others
^^^^^^

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

0 comments on commit 017a5c4

Please sign in to comment.