Skip to content

The error_reporting setting excludes E_DEPRECATED notices  #2

@aadmathijssen

Description

@aadmathijssen

Hi,

I was wondering why the error_reporting setting is set to E_ALL & ~E_DEPRECATED (see line 42 of the local php.ini ) instead of E_ALL.

The development version of the php.ini of PHP itself sets the value error_reporting to E_ALL:

https://github.com/php/php-src/blob/PHP-7.4/php.ini-development#L484
https://github.com/php/php-src/blob/PHP-8.0/php.ini-development#L484
https://github.com/php/php-src/blob/PHP-8.1/php.ini-development#L484

Other development solutions for PHP that I am familiar with, Homebrew and Docksal, also adhere to this default.

I prefer to have this included, as it helps in finding potential deprecations early.

But maybe there is a valid reason to exclude E_DEPRECATED notices that I'm not aware of.

Thanks.

Aad

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions