Skip to content
/ mailer Public

Commit 012185c

Browse files
Replace __sleep/wakeup() by __(un)serialize() for throwing and internal usages
1 parent 628b43b commit 012185c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Transport/Smtp/SmtpTransport.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,12 @@ private function checkRestartThreshold(): void
372372
$this->restartCounter = 0;
373373
}
374374

375-
public function __sleep(): array
375+
public function __serialize(): array
376376
{
377377
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
378378
}
379379

380-
/**
381-
* @return void
382-
*/
383-
public function __wakeup()
380+
public function __unserialize(array $data): void
384381
{
385382
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
386383
}

0 commit comments

Comments
 (0)