php8 how to properly define a errorHandler in a class?
In a class I use file_put_contents, which only gives a warning and not an exception to catch. The way to do it as I saw also in the docs is a callable function.
In a class I use file_put_contents, which only gives a warning and not an exception to catch. The way to do it as I saw also in the docs is a callable function.