Skip to content

Commit 180c544

Browse files
Merge branch '6.4' into 7.3
* 6.4: Replace __sleep/wakeup() by __(un)serialize() for throwing and internal usages
2 parents ee23db6 + 8b16954 commit 180c544

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Adapter/ExtLdap/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ class Connection extends AbstractConnection
4040
private bool $bound = false;
4141
private ?LDAPConnection $connection = null;
4242

43-
public function __sleep(): array
43+
public function __serialize(): array
4444
{
4545
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
4646
}
4747

48-
public function __wakeup(): void
48+
public function __unserialize(array $data): void
4949
{
5050
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
5151
}

Adapter/ExtLdap/Query.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ class Query extends AbstractQuery
3030

3131
private array $serverctrls = [];
3232

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

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

0 commit comments

Comments
 (0)