Since HttpExceptionInterface does not extend Throwable, this actually renders any type-checking requiring Throwable for input as incorrect.
For instance \League\Route\Strategy\ApplicationStrategy::throwThrowableMiddleware() creates an anonymous middleware that is written to handle HttpExceptionInterface but expect Throwable.
Since
HttpExceptionInterface
does not extendThrowable
, this actually renders any type-checking requiringThrowable
for input as incorrect.For instance
\League\Route\Strategy\ApplicationStrategy::throwThrowableMiddleware()
creates an anonymous middleware that is written to handleHttpExceptionInterface
but expectThrowable
.