Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -2603,7 +2603,7 @@ public function __sleep()
*
* @return void
*/
public function __wakeup()
public function __unserialize(array $data)
{
$this->bootIfNotBooted();

Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/Middleware/RateLimited.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function __sleep()
*
* @return void
*/
public function __wakeup()
public function __unserialize(array $data)
{
$this->limiter = Container::getInstance()->make(RateLimiter::class);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Queue/Middleware/RateLimitedWithRedis.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ protected function getTimeUntilNextRetry($key)
*
* @return void
*/
public function __wakeup()
public function __unserialize(array $data)
{
parent::__wakeup();
parent::__unserialize($data);

$this->redis = Container::getInstance()->make(Redis::class);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/Queue/CallQueuedHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function handle()
//
}

public function __wakeup()
public function __unserialize(array $data)
{
throw new ModelNotFoundException('Foo');
}
Expand All @@ -209,7 +209,7 @@ public function handle()
//
}

public function __wakeup()
public function __unserialize(array $data)
{
throw new ModelNotFoundException('Foo');
}
Expand Down
Loading