Skip to content

Commit 6ca50e9

Browse files
feature #50842 Add missing return types to magic methods (wouterj)
This PR was merged into the 6.4 branch. Discussion ---------- Add missing return types to magic methods | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | yes | Tickets | - | License | MIT | Doc PR | - I promise, these 72 methods really are the last methods that did not have a return type already 🙃 Commits ------- 6b270010c4 Add missing return types to magic methods
2 parents 02fc676 + bf13cb3 commit 6ca50e9

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)