Run: clarify passing exception to handle()

This commit is contained in:
Denis Sokolov
2015-01-15 13:37:30 +02:00
parent 7a87266885
commit 9e1ffa25c3
+4
View File
@@ -249,6 +249,10 @@ class Run
$handler->setInspector($inspector);
$handler->setException($exception);
// The HandlerInterface does not require an Exception passed to handle()
// and neither of our bundled handlers use it.
// However, 3rd party handlers may have already relied on this parameter,
// and removing it would be possibly breaking for users.
$handlerResponse = $handler->handle($exception);
if (in_array($handlerResponse, array(Handler::LAST_HANDLER, Handler::QUIT))) {