Skip to content

Releases: pmmp/ErrorHandler

0.7.1

Choose a tag to compare

@dktapps dktapps released this 24 Dec 02:29
84c9ec8

Changes since 0.7.0

  • Add PHP 8.4 and 8.5 to the test matrix
  • Workaround E_STRICT deprecation warnings on PHP 8.4

0.7.0

Choose a tag to compare

@dktapps dktapps released this 02 Apr 18:34
cae9488

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

Choose a tag to compare

@dktapps dktapps released this 28 Feb 14:01
dae214a

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

Choose a tag to compare

@dktapps dktapps released this 28 Feb 13:56
41ff9c0

Changes since 0.4.0

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

0.4.0

Choose a tag to compare

@dktapps dktapps released this 16 Dec 18:18
5bb9e2b

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

Choose a tag to compare

@dktapps dktapps released this 12 Feb 19:02
ec742b2

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

Choose a tag to compare

@dktapps dktapps released this 11 Dec 01:08
567fa05
  • PHP 8.0 support