From 072e9ebbef99436da86f60df8dc5f649019e8841 Mon Sep 17 00:00:00 2001 From: Alex Bouma Date: Tue, 29 Sep 2020 15:26:29 +0200 Subject: [PATCH 1/2] Add setter for value on ExceptionDataBag --- src/ExceptionDataBag.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ExceptionDataBag.php b/src/ExceptionDataBag.php index 1d096c8676..0173e3a614 100644 --- a/src/ExceptionDataBag.php +++ b/src/ExceptionDataBag.php @@ -58,6 +58,14 @@ public function getValue(): string return $this->value; } + /** + * Sets the value of the exception. + */ + public function setValue(string $value): void + { + $this->value = $value; + } + /** * Gets the stack trace object corresponding to the Stack Trace Interface. */ From 77e105a666a08ec78cce5c24c4ee70d0cfbf6bd5 Mon Sep 17 00:00:00 2001 From: Alex Bouma Date: Tue, 29 Sep 2020 15:27:47 +0200 Subject: [PATCH 2/2] Add changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d0f9afdc52..93fd4c7fb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased - fix: Use Span on Scope instead of Transaction for GuzzleMiddleware (#1099) +- Add setter for value on the `ExceptionDataBag` (#1100) ## 3.0.0 (2020-09-28)