1
0
Fork 0

Also handle throwable on supported php versions

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

View File

@ -295,7 +295,11 @@ class EventDispatcher
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();
throw $e;