Skip to content

Commit

Permalink
Merge pull request #3 from AlexKarpan/patch-1
Browse files Browse the repository at this point in the history
Remove deprecation warnings with php 8.1
  • Loading branch information
bobbrodie authored Sep 2, 2022
2 parents 09bf042 + a456c08 commit ce9df55
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/BitPayKeyUtils/Util/Point.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,23 @@ public function unserialize($data)
$this->y
) = unserialize($data);
}

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

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

0 comments on commit ce9df55

Please sign in to comment.