Hi

On 4/11/23 18:32, Jeffrey Dafoe wrote:
I’m unsure if it’s practical to run deprecations on in prod and our test suite, although substantial, doesn’t cover all code paths.
You should be able to enable deprecations in production and then check the type of error within your error handler. If it's E_DEPRECATED the error goes into a separate log file / is sent to a separate error collection endpoint and execution continues, whereas any E_NOTICE or E_WARNING is converted to an Exception and execution is aborted.

Best regards
Tim Düsterhus

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to