Skip to content

Commit c226051

Browse files
Add missing return types to tests/internal/final methods
1 parent 8c0a059 commit c226051

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

Kernel/MicroKernelTrait.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,8 @@ public function registerContainerConfiguration(LoaderInterface $loader)
165165

166166
/**
167167
* @internal
168-
*
169-
* @return RouteCollection
170168
*/
171-
public function loadRoutes(LoaderInterface $loader)
169+
public function loadRoutes(LoaderInterface $loader): RouteCollection
172170
{
173171
$file = (new \ReflectionObject($this))->getFileName();
174172
/* @var RoutingPhpFileLoader $kernelLoader */

Tests/Command/TranslationUpdateCommandTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,7 @@ protected function tearDown(): void
145145
$this->fs->remove($this->translationDir);
146146
}
147147

148-
/**
149-
* @return CommandTester
150-
*/
151-
private function createCommandTester($extractedMessages = [], $loadedMessages = [], KernelInterface $kernel = null, array $transPaths = [], array $codePaths = [])
148+
private function createCommandTester($extractedMessages = [], $loadedMessages = [], KernelInterface $kernel = null, array $transPaths = [], array $codePaths = []): CommandTester
152149
{
153150
$translator = $this->createMock(Translator::class);
154151
$translator

Tests/Functional/app/AppKernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected function getKernelParameters(): array
106106
return $parameters;
107107
}
108108

109-
public function getConfigTreeBuilder()
109+
public function getConfigTreeBuilder(): TreeBuilder
110110
{
111111
$treeBuilder = new TreeBuilder('foo');
112112
$rootNode = $treeBuilder->getRootNode();
@@ -119,7 +119,7 @@ public function load(array $configs, ContainerBuilder $container)
119119
{
120120
}
121121

122-
public function getNamespace()
122+
public function getNamespace(): string
123123
{
124124
return '';
125125
}
@@ -129,7 +129,7 @@ public function getXsdValidationBasePath()
129129
return false;
130130
}
131131

132-
public function getAlias()
132+
public function getAlias(): string
133133
{
134134
return 'foo';
135135
}

0 commit comments

Comments
 (0)