Am 23.09.2021 um 18:52 schrieb Nikita Popov:
I believe that this continues to be the default behavior of PHPUnit for example. This means that in practice, deprecations do break code, even though they are intended not to.
That is correct: by default, PHPUnit converts PHP deprecations, errors, notices, and warnings to exceptions.
While disabling the conversion of PHP deprecations to exceptions, for instance, is possible by setting convertDeprecationsToExceptions="false" in your PHPUnit XML configuration file, I do think that the default should be changed to not covert PHP deprecations to exceptions.
The next releases of PHPUnit 8.5 and PHPUnit 9.5 will change this. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php