Skip to content

Commit bf13cb3

Browse files
wouterjnicolas-grekas
authored andcommitted
Add missing return types to magic methods
1 parent 8741e3e commit bf13cb3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Pipes/UnixPipes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __sleep(): array
4040
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
4141
}
4242

43-
public function __wakeup()
43+
public function __wakeup(): void
4444
{
4545
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
4646
}

Pipes/WindowsPipes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function __sleep(): array
9393
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
9494
}
9595

96-
public function __wakeup()
96+
public function __wakeup(): void
9797
{
9898
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
9999
}

Process.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ public function __sleep(): array
200200
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
201201
}
202202

203+
/**
204+
* @return void
205+
*/
203206
public function __wakeup()
204207
{
205208
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);

0 commit comments

Comments
 (0)