Skip to content

Commit 3694fc9

Browse files
ArshidArshid
authored andcommitted
Replace __wakeup with __unserialize for object unserialization
1 parent 2dd9ccf commit 3694fc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Database/Eloquent/Model.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2618,15 +2618,15 @@ public function __serialize()
26182618
* When a model is being unserialized, check if it needs to be booted.
26192619
*
26202620
* @return void
2621-
*/
2621+
*/
26222622
public function __unserialize($data)
26232623
{
26242624
foreach ($data as $property => $value) {
26252625
if (property_exists($this, $property)) {
26262626
$this->{$property} = $value;
26272627
}
26282628
}
2629-
2629+
26302630
$this->bootIfNotBooted();
26312631

26322632
$this->initializeTraits();

0 commit comments

Comments
 (0)