mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 14:08:46 +02:00
N°8910 - Upgrade Symfony packages (#811)
This commit is contained in:
@@ -60,13 +60,15 @@ class MessagePart extends DataPart
|
||||
return $this->message->toIterable();
|
||||
}
|
||||
|
||||
public function __sleep(): array
|
||||
public function __serialize(): array
|
||||
{
|
||||
return ['message'];
|
||||
return ['message' => $this->message];
|
||||
}
|
||||
|
||||
public function __wakeup(): void
|
||||
public function __unserialize(array $data): void
|
||||
{
|
||||
$this->message = $data['message'] ?? $data["\0".self::class."\0message"];
|
||||
|
||||
$this->__construct($this->message);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user