Updating the severity checking to avoid throwing an exception, because we cannot throw exceptions in the shutdown handler. Also adding missing E_PARSE error.
Updating the severity checking to avoid throwing an exception, because we cannot throw exceptions in the shutdown handler. Also adding missing E_PARSE error.

byjg/booboo,thephpleague/booboo