Skip to content

Commit 93664b5

Browse files
ArshidArshid
authored andcommitted
Replace __sleep with __serialize for object serialization
1 parent 8a5203a commit 93664b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Queue/Middleware/RateLimited.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ protected function getTimeUntilNextRetry($key)
147147
*
148148
* @return array
149149
*/
150-
public function __unserialize(array $data)
150+
public function __serialize()
151151
{
152152
return [
153153
'limiterName' => $this->limiterName,

tests/Integration/Cache/Fixtures/Unserializable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class Unserializable
88
{
9-
public function __unserialize(array $data)
9+
public function __serialize()
1010
{
1111
throw new Exception('Not serializable');
1212
}

0 commit comments

Comments
 (0)