News for hackers. Stuff that matters.
Re:Errors – Gotta Catch 'Em All by victorstanciu on Thursday April 04, 2019 @10:56AM (#19573054)
> forcing paranoid error levels and converting all errors to exceptions is the only safe way to develop

Oh, absolutely. That's how I do it too. Unfortunately, warnings and notices are still a thing in PHP 7. So the best practice is to just install an error handler that turns these into exceptions. They they are either handled by code, or by a catch-all handler.

This is in fact what I've implemented SlashTrace to do by default: https://github.com/slashtrace/slashtrace/blob/master/src/Err...

There are no comments on this comment yet.