You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.