Hi. I hate to ask an outright question on the list rather but I've been searching the last 5 hours for an answer to this and haven't found anything and it's a rather tight corner case. I'm working on a small package for PHP 5.x that uses set_error_handler() to convert E_RECOVERABLE_ERRORs to the appropriate PHP 7 exceptions. I know I can't emulate things exactly - my goal is to get things so that PHPUnit tests can use the same @expectedException annotation for these scenarios, simplifying unit test writing.
As far as my research has found E_RECOVERABLE_ERROR has only ever been used for type hint failures. Are there any other errors that have this type, and if so to what PHP 7 exception should they be converted?