Skip to content

Commit 88674ad

Browse files
Add return types to internal & magic methods when possible
1 parent 9ac315d commit 88674ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/Functional/app/AppKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected function build(ContainerBuilder $container)
7979
$container->register('logger', NullLogger::class);
8080
}
8181

82-
public function __sleep()
82+
public function __sleep(): array
8383
{
8484
return ['varDir', 'testCase', 'rootConfig', 'environment', 'debug'];
8585
}

Tests/Kernel/ConcreteMicroKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function getLogDir(): string
6464
return $this->cacheDir;
6565
}
6666

67-
public function __sleep()
67+
public function __sleep(): array
6868
{
6969
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
7070
}

0 commit comments

Comments
 (0)