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']; } /**