Skip to content

Commit f24f8f3

Browse files
Merge branch '6.4' into 7.3
* 6.4: Replace __sleep/wakeup() by __(un)serialize() for throwing and internal usages
2 parents 3224101 + 48bad91 commit f24f8f3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Pipes/UnixPipes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ public function __construct(
3131
parent::__construct($input);
3232
}
3333

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

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

Pipes/WindowsPipes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ public function __construct(
8787
parent::__construct($input);
8888
}
8989

90-
public function __sleep(): array
90+
public function __serialize(): array
9191
{
9292
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
9393
}
9494

95-
public function __wakeup(): void
95+
public function __unserialize(array $data): void
9696
{
9797
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
9898
}

Process.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,12 @@ public static function fromShellCommandline(string $command, ?string $cwd = null
197197
return $process;
198198
}
199199

200-
public function __sleep(): array
200+
public function __serialize(): array
201201
{
202202
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
203203
}
204204

205-
public function __wakeup(): void
205+
public function __unserialize(array $data): void
206206
{
207207
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
208208
}

0 commit comments

Comments
 (0)