Skip to content

Commit bc7e4f0

Browse files
wouterjnicolas-grekas
authored andcommitted
Add missing return types to magic methods
1 parent 57f8c23 commit bc7e4f0

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)