Skip to content

Commit

Permalink
add serialize functions for php 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpk committed Mar 26, 2022
1 parent 96dba46 commit efc8ea0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions idiorm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2503,6 +2503,14 @@ public function offsetUnset($offset) {
unset($this->_results[$offset]);
}

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

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

/**
* Serializable
* @return string
Expand Down

0 comments on commit efc8ea0

Please sign in to comment.