Correct signatur for errorHandler method.
Objects should be initialized before use in PHP 5.4+.