Skip to content

Commit

Permalink
SP-249 - Unauthorized sin - fix
Browse files Browse the repository at this point in the history
  • Loading branch information
therevix authored and therevix committed Oct 17, 2022
1 parent 870a945 commit 9dd0e25
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/BitPayKeyUtils/KeyHelper/Key.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,34 @@ public function unserialize($data)
) = unserialize($data);
}

/**
* @return array
*/
public function __serialize(): array
{
return [
$this->id,
$this->x,
$this->y,
$this->hex,
$this->dec,
];
}

/**
* @param array $data
*/
public function __unserialize(array $data): void
{
list(
$this->id,
$this->x,
$this->y,
$this->hex,
$this->dec
) = $data;
}

/**
* @return boolean
*/
Expand Down

0 comments on commit 9dd0e25

Please sign in to comment.