Skip to content

Commit 07faec3

Browse files
committed
Catch \Throwable
1 parent 8c41dc5 commit 07faec3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

OptionsResolver.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,9 @@ public function offsetGet($option)
861861
} catch (\Exception $e) {
862862
unset($this->calling[$option]);
863863
throw $e;
864+
} catch (\Throwable $e) {
865+
unset($this->calling[$option]);
866+
throw $e;
864867
}
865868
unset($this->calling[$option]);
866869
// END
@@ -963,6 +966,9 @@ public function offsetGet($option)
963966
} catch (\Exception $e) {
964967
unset($this->calling[$option]);
965968
throw $e;
969+
} catch (\Throwable $e) {
970+
unset($this->calling[$option]);
971+
throw $e;
966972
}
967973
unset($this->calling[$option]);
968974
// END

0 commit comments

Comments
 (0)