During development, I use
error_reporting(E_ALL | E_STRICT | E_NOTICE);
Sometimes, though rarely, there are specific E_STRICT errors I’d like to ignore. But I don’t want to turn off E_STRICT entirely.
Is there a way to ignore specific errors, whether via error code, or even, as hacky as it is, via string-comparing the error message itself?
Thanks in advance.
Ofcourse you can, look at set_error_handler, you pass name of your function, which will be called, when some error happen. There you can ignore errors, do what you want, or just send them to normal PHP error output.