I've been running PHPUnit with convertNoticesToExceptions turned on as best practice. https://phpunit.readthedocs.io/en/9.5/configuration.html#the-convertnoticestoexceptions-attribute
But of course, that's only appropriate for my own code: I'd prefer to have a different setting for (eg) vendor/
. It's not as if I'm going to fix all the notices thrown by third party code.
The documentation has no suggestion that the settings can be different for different directories. (I vaguely remember reading about a way of ignoring notices from libraries, but might be wrong.)
I know about using @
, but that solves a different problem.
It this just not an option?