Skip to content

Commit

Permalink
Merge pull request #24 from mrevib/feature/SP-249
Browse files Browse the repository at this point in the history
SP-249 - Unauthorized sin - fix
  • Loading branch information
bobbrodie authored Oct 17, 2022
2 parents 870a945 + 9dd0e25 commit d17fe78
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 d17fe78

Please sign in to comment.