Also handle throwable on supported php versions

main
Jordi Boggiano 3 years ago
parent b268e20d9f
commit d56387edb7
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -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…
Cancel
Save