Skip to content

Commit bf13cb3

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

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎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
thrownew \BadMethodCallException('Cannot serialize '.__CLASS__);
4141
}
4242

43-
publicfunction__wakeup()
43+
publicfunction__wakeup(): void
4444
{
4545
thrownew \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
thrownew \BadMethodCallException('Cannot serialize '.__CLASS__);
9494
}
9595

96-
publicfunction__wakeup()
96+
publicfunction__wakeup(): void
9797
{
9898
thrownew \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
thrownew \BadMethodCallException('Cannot serialize '.__CLASS__);
201201
}
202202

203+
/**
204+
* @return void
205+
*/
203206
publicfunction__wakeup()
204207
{
205208
thrownew \BadMethodCallException('Cannot unserialize '.__CLASS__);

0 commit comments

Comments
 (0)