Skip to content

Commit 5eca973

Browse files
committed
Fixing PHP 8.1 Serializable interface depreciation
1 parent 6a06459 commit 5eca973

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/Model/Object/TypedObject.php

-17
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,6 @@ final public static function hydrateNew(array $properties)
210210
return $object;
211211
}
212212

213-
/**
214-
* @inheritDoc
215-
*/
216-
final public function __serialize()
217-
{
218-
return serialize($this->dataToSerialize());
219-
}
220-
221213
/**
222214
* @inheritDoc
223215
*/
@@ -236,15 +228,6 @@ protected function dataToSerialize()
236228
return $this->properties;
237229
}
238230

239-
/**
240-
* @inheritDoc
241-
*/
242-
final public function __unserialize($serialized)
243-
{
244-
$this->loadFinalizedClassDefinition(static::definition());
245-
$this->hydrateFromSerializedData(unserialize($serialized));
246-
}
247-
248231
/**
249232
* @inheritDoc
250233
*/

0 commit comments

Comments
 (0)