Type-hint with `BaseException` when necessary.
Type-hint with `BaseException` when necessary.

See https://github.com/php/php-src/blob/7dcfdbbee4/UPGRADING#L323-L351.

Grummfy/Central,Grummfy/Central,vcgato29/Central,vcgato29/Central,Metalaka/Central,Metalaka/Central