Skip to content

Commit ce9df55

Browse files
authored
Merge pull request #3 from AlexKarpan/patch-1
Remove deprecation warnings with php 8.1
2 parents 09bf042 + a456c08 commit ce9df55

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/BitPayKeyUtils/Util/Point.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,23 @@ public function unserialize($data)
8787
$this->y
8888
) = unserialize($data);
8989
}
90+
91+
/**
92+
* @return array
93+
*/
94+
public function __serialize(): array
95+
{
96+
return array($this->x, $this->y);
97+
}
98+
99+
/**
100+
* @param array $data
101+
*/
102+
public function __unserialize(array $data): void
103+
{
104+
list(
105+
$this->x,
106+
$this->y
107+
) = $data;
108+
}
90109
}

0 commit comments

Comments
 (0)