Upgrade to 3.6.0
This commit is contained in:
@@ -241,6 +241,15 @@ class Frame implements Serializable
|
||||
return serialize($frame);
|
||||
}
|
||||
|
||||
public function __serialize()
|
||||
{
|
||||
$frame = $this->frame;
|
||||
if (!empty($this->comments)) {
|
||||
$frame['_comments'] = $this->comments;
|
||||
}
|
||||
return $frame;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unserializes the frame data, while also preserving
|
||||
* any existing comment data.
|
||||
@@ -260,6 +269,16 @@ class Frame implements Serializable
|
||||
$this->frame = $frame;
|
||||
}
|
||||
|
||||
public function __unserialize($frame)
|
||||
{
|
||||
if (!empty($frame['_comments'])) {
|
||||
$this->comments = $frame['_comments'];
|
||||
unset($frame['_comments']);
|
||||
}
|
||||
|
||||
$this->frame = $frame;
|
||||
}
|
||||
|
||||
/**
|
||||
* Compares Frame against one another
|
||||
* @param Frame $frame
|
||||
|
Reference in New Issue
Block a user