Skip to content

Releases: pmmp/ErrorHandler

0.7.0

02 Apr 18:34
cae9488
Compare
Choose a tag to compare

Changes since 0.6.0

  • ErrorToExceptionHandler::set() now accepts a $levels optional parameter, set to E_NOTICE | E_WARNING by default.
  • ErrorToExceptionHandler::set() no longer converts any other types of errors by default.

0.6.0

28 Feb 14:01
dae214a
Compare
Choose a tag to compare

Changes since 0.5.0

  • ErrorToExceptionHandler::trap() and trapAndRemoveFalse() are no longer affected by the @ operator or error_reporting().
  • trap() and trapAndRemoveFalse() now accept an optional $levels parameter (by default E_WARNING | E_NOTICE). Only error types that match this parameter will cause an exception to be thrown.

0.5.0

28 Feb 13:56
41ff9c0
Compare
Choose a tag to compare

Changes since 0.4.0

  • Added ErrorToExceptionHandler::trapAndRemoveFalse()
  • Added documentation to ErrorToExceptionHandler::trap()

0.4.0

16 Dec 18:18
5bb9e2b
Compare
Choose a tag to compare

Changes since 0.3.0

  • Added ErrorToExceptionHandler::trap(). This accepts a callable which may generate an E_* error and converts it into an ErrorException. This can be used to avoid assumptions about global error handler state.

0.3.0

12 Feb 19:02
ec742b2
Compare
Choose a tag to compare

Changes since 0.2.0

  • Added a new ErrorRecord class. This contains basic information about an error.
  • ErrorToExceptionHandler now records errors silenced by @. The following methods have been added:
    • ErrorToExceptionHandler::getLastSilencedError()
    • ErrorToExceptionHandler::clearLastSilencedError()
    • ErrorToExceptionHandler::getAndClearLastSilencedError()

0.2.0

11 Dec 01:08
567fa05
Compare
Choose a tag to compare
  • PHP 8.0 support