Skip to content

Commit

Permalink
serialize trace
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-stanek committed Apr 10, 2022
1 parent 5580056 commit 449faf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Wsdl/Event/RequestFailEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public function __serialize(): array {
'time' => $this->time,
'exception_class' => $this->exceptionClass,
'exception_string' => $this->exceptionString,
'trace' => $this->trace,
];
}

Expand All @@ -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'];
}

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Wsdl/Event/RequestPostEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public function __serialize(): array
'args' => $this->args,
'time' => $this->time,
'result' => $this->result,
'trace' => $this->trace,
];
}

Expand All @@ -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'];
}

/**
Expand Down

0 comments on commit 449faf0

Please sign in to comment.