Skip to content

Commit 4218bb1

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 6ea58cc + bc7e4f0 commit 4218bb1

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

DataCollector/DataCollector.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ public function __sleep(): array
8282
return ['data'];
8383
}
8484

85+
/**
86+
* @return void
87+
*/
8588
public function __wakeup()
8689
{
8790
}

DataCollector/DumpDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function __sleep(): array
167167
/**
168168
* @internal
169169
*/
170-
public function __wakeup()
170+
public function __wakeup(): void
171171
{
172172
parent::__wakeup();
173173

Kernel.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,9 @@ public function __sleep(): array
835835
return ['environment', 'debug'];
836836
}
837837

838+
/**
839+
* @return void
840+
*/
838841
public function __wakeup()
839842
{
840843
if (\is_object($this->environment) || \is_object($this->debug)) {

0 commit comments

Comments
 (0)