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.
Strict Standards: Declaration of foo::test() should be compatible with that of bar::test()
. (I am extending a class but purposefully wish for a derived method to take more parameters than the overridden method.)