Also handle throwable on supported php versions
parent
b268e20d9f
commit
d56387edb7
|
@ -295,7 +295,11 @@ class EventDispatcher
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) { // TODO Composer 2.2 turn all this into a finally
|
||||||
|
$this->popEvent();
|
||||||
|
|
||||||
|
throw $e;
|
||||||
|
} catch (\Throwable $e) {
|
||||||
$this->popEvent();
|
$this->popEvent();
|
||||||
|
|
||||||
throw $e;
|
throw $e;
|
||||||
|
|
Loading…
Reference in New Issue