The function handleFatalError will currently catch all error that handleError will catch as well. For example: we have Sentry configured to catch warnings as well. When the last error on a page is a warning, it will be caught by handleError and finally by handleFatalError in the shutdown function. This means we get 2 entries in Sentry.
I think there are 2 possible solutions for this:
handleFatalError, as the name implieserror_get_last() has already been reported by handleErrorThis is resolved now
Most helpful comment
This is resolved now