Skip to content

Commit

Permalink
Add more php 8.2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarcher committed Apr 20, 2023
1 parent 3c0011b commit 3568abb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ApiModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* Mapped model from the an API Response.
*/
class ApiModel implements \Serializable, \ArrayAccess, Arrayable
class ApiModel implements \ArrayAccess, Arrayable
{
use HasRelationships;
protected $data;
Expand Down Expand Up @@ -113,12 +113,12 @@ public function getAttributes()
return $this->data;
}

public function serialize()
public function __serialize()
{
return serialize($this->data);
}

public function unserialize($data)
public function __unserialize($data)
{
$this->data = unserialize($data);
}
Expand Down

0 comments on commit 3568abb

Please sign in to comment.