Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8dc648e

Browse files
Merge branch '6.4' into 7.3
* 6.4: Replace __sleep/wakeup() by __(un)serialize() for throwing and internal usages
2 parents 19961cd + 6fc4c44 commit 8dc648e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Loader/Configurator/CollectionConfigurator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ public function __construct(
3636
$this->route = new Route('');
3737
}
3838

39-
public function __sleep(): array
39+
public function __serialize(): array
4040
{
4141
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
4242
}
4343

44-
public function __wakeup(): void
44+
public function __unserialize(array $data): void
4545
{
4646
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
4747
}

Loader/Configurator/ImportConfigurator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ public function __construct(
2929
$this->route = $route;
3030
}
3131

32-
public function __sleep(): array
32+
public function __serialize(): array
3333
{
3434
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
3535
}
3636

37-
public function __wakeup(): void
37+
public function __unserialize(array $data): void
3838
{
3939
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
4040
}

0 commit comments

Comments
 (0)