custom_warning_handler
custom_warning_handler(int $errno, string $errstr, string $errfile, int $errline, mixed $errcontext)
int
string
mixed
\Exception
sets a custom error handler to catch notices and such and transform them to exceptions.