Skip to content

Commit 8fbf3c3

Browse files
Merge branch '6.4' into 7.3
* 6.4: Replace __sleep/wakeup() by __(un)serialize() for throwing and internal usages
2 parents 337e7a2 + 20cd2ac commit 8fbf3c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Legacy/SymfonyTestsListenerTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ public function __construct(array $mockedNamespaces = [])
9393
}
9494
}
9595

96-
public function __sleep()
96+
public function __serialize(): array
9797
{
9898
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
9999
}
100100

101-
public function __wakeup()
101+
public function __unserialize(array $data): void
102102
{
103103
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
104104
}

0 commit comments

Comments
 (0)