Skip to content

Commit 2556f7d

Browse files
committed
fix: Application (de)serialization
1 parent 46c8cbc commit 2556f7d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Application.php

+5
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,14 @@ public function unserialize($serialized)
110110

111111
public function __serialize()
112112
{
113+
return [
114+
'id' => $this->id,
115+
'secret' => $this->secret,
116+
];
113117
}
114118

115119
public function __unserialize(array $data)
116120
{
121+
$this->__construct($data['id'], $data['secret']);
117122
}
118123
}

0 commit comments

Comments
 (0)