Skip to content

Commit 5f311ea

Browse files
Replace __sleep/wakeup() by __(un)serialize() for throwing and internal usages
1 parent 330642c commit 5f311ea

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Loader/Configurator/AbstractConfigurator.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,12 @@ public function __call(string $method, array $args)
4646
throw new \BadMethodCallException(\sprintf('Call to undefined method "%s::%s()".', static::class, $method));
4747
}
4848

49-
public function __sleep(): array
49+
public function __serialize(): array
5050
{
5151
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
5252
}
5353

54-
/**
55-
* @return void
56-
*/
57-
public function __wakeup()
54+
public function __unserialize(array $data): void
5855
{
5956
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
6057
}

0 commit comments

Comments
 (0)