3 ms·
You can turn warnings into errors with the `-Werror` option. I personally use that in CI runs, along with the `-X dev` option to enable additional runtime check
by optionalsquid 10mo ago
You can turn warnings into errors with the `-Werror` option. I personally use that in CI runs, along with the `-X dev` option to enable additional runtime checks. Though that wont solve the author's problem, since most Python devs don't use either of those options
- Y-bar 10mo agoIn PHP I don’t think there is a native way to convert E_DEPRECATED into E_ERROR, but the most common testing framework has a quick way of doing the same. https://docs.phpunit.de/en/12.5/configuration.html#the-failondeprecation-attribute https://docs.phpunit.de/en/12.5/configuration.html#the-failo...