Skip to content

Commit 3568abb

Browse files
committed
Add more php 8.2 compatibility
1 parent 3c0011b commit 3568abb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ApiModel.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/**
2222
* Mapped model from the an API Response.
2323
*/
24-
class ApiModel implements \Serializable, \ArrayAccess, Arrayable
24+
class ApiModel implements \ArrayAccess, Arrayable
2525
{
2626
use HasRelationships;
2727
protected $data;
@@ -113,12 +113,12 @@ public function getAttributes()
113113
return $this->data;
114114
}
115115

116-
public function serialize()
116+
public function __serialize()
117117
{
118118
return serialize($this->data);
119119
}
120120

121-
public function unserialize($data)
121+
public function __unserialize($data)
122122
{
123123
$this->data = unserialize($data);
124124
}

0 commit comments

Comments
 (0)