From 449faf0fed1348c171f68a41e1ad8685383f4a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Sun, 10 Apr 2022 19:59:54 +0200 Subject: [PATCH] serialize trace --- src/Wsdl/Event/RequestFailEvent.php | 2 ++ src/Wsdl/Event/RequestPostEvent.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/Wsdl/Event/RequestFailEvent.php b/src/Wsdl/Event/RequestFailEvent.php index 915d617..579d994 100644 --- a/src/Wsdl/Event/RequestFailEvent.php +++ b/src/Wsdl/Event/RequestFailEvent.php @@ -83,6 +83,7 @@ public function __serialize(): array { 'time' => $this->time, 'exception_class' => $this->exceptionClass, 'exception_string' => $this->exceptionString, + 'trace' => $this->trace, ]; } @@ -100,6 +101,7 @@ public function __unserialize(array $data): void { $this->time = (float) $data['time']; $this->exceptionClass = (string) $data['exception_class']; $this->exceptionString = (string) $data['exception_string']; + $this->trace = (array) $data['trace']; } /** diff --git a/src/Wsdl/Event/RequestPostEvent.php b/src/Wsdl/Event/RequestPostEvent.php index bab34d8..f00b9b9 100644 --- a/src/Wsdl/Event/RequestPostEvent.php +++ b/src/Wsdl/Event/RequestPostEvent.php @@ -68,6 +68,7 @@ public function __serialize(): array 'args' => $this->args, 'time' => $this->time, 'result' => $this->result, + 'trace' => $this->trace, ]; } @@ -85,6 +86,7 @@ public function __unserialize(array $data): void $this->args = (array) $data['args']; $this->time = (float) $data['time']; $this->result = (array) $data['result']; + $this->trace = (array) $data['trace']; } /**