Skip to content

Commit 3253157

Browse files
committed
Skip 1 level of serialization
1 parent 00634ee commit 3253157

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AsyncTask.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,18 @@ public function __serialize(): array
103103
{
104104
// serialize only the necessary info to reduce runner cmd length
105105
return [
106-
'theTask' => serialize($this->theTask),
106+
'theTask' => $this->theTask,
107107
'timeLimit' => $this->timeLimit,
108108
];
109109
}
110110

111111
public function __unserialize($data): void
112112
{
113113
[
114-
'theTask' => $tempTask,
114+
'theTask' => $this->theTask,
115115
'timeLimit' => $this->timeLimit,
116116
] = $data;
117-
$this->theTask = unserialize($tempTask);
117+
// $this->theTask = unserialize($tempTask);
118118
}
119119

120120
/**

0 commit comments

Comments
 (0)