1
0
Fork 0

Merge branch '2.0'

pull/9873/head
Jordi Boggiano 2021-05-10 13:14:14 +02:00
commit 0021758e0b
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 5 additions and 1 deletions

View File

@ -305,7 +305,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;