Skip to content

Commit eb66248

Browse files
committed
Add return types to test Kernels
1 parent c5921c5 commit eb66248

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

tests/Symfony/TestCase/Fixtures/FrameworkBundle/AnotherTestKernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212

1313
class AnotherTestKernel extends Kernel
1414
{
15-
public function registerBundles()
15+
public function registerBundles(): array
1616
{
1717
return [
1818
new FrameworkBundle(),
1919
];
2020
}
2121

22-
public function getCacheDir()
22+
public function getCacheDir(): string
2323
{
2424
return \sys_get_temp_dir().'/ZalasPHPUnitInjector/FrameworkBundle/AnotherTestKernel/cache/'.$this->environment;
2525
}
2626

27-
public function getLogDir()
27+
public function getLogDir(): string
2828
{
2929
return \sys_get_temp_dir().'/ZalasPHPUnitInjector/FrameworkBundle/AnotherTestKernel/logs';
3030
}

tests/Symfony/TestCase/Fixtures/FrameworkBundle/TestKernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ public function __construct(string $environment, bool $debug)
1818
parent::__construct($environment, $debug);
1919
}
2020

21-
public function registerBundles()
21+
public function registerBundles(): array
2222
{
2323
return [
2424
new FrameworkBundle(),
2525
];
2626
}
2727

28-
public function getCacheDir()
28+
public function getCacheDir(): string
2929
{
3030
return \sys_get_temp_dir().'/ZalasPHPUnitInjector/FrameworkBundle/TestKernel/cache/'.$this->environment;
3131
}
3232

33-
public function getLogDir()
33+
public function getLogDir(): string
3434
{
3535
return \sys_get_temp_dir().'/ZalasPHPUnitInjector/FrameworkBundle/TestKernel/logs';
3636
}

tests/Symfony/TestCase/Fixtures/NoFrameworkBundle/AnotherTestKernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414

1515
class AnotherTestKernel extends Kernel
1616
{
17-
public function registerBundles()
17+
public function registerBundles(): array
1818
{
1919
return [];
2020
}
2121

22-
public function getCacheDir()
22+
public function getCacheDir(): string
2323
{
2424
return \sys_get_temp_dir().'/ZalasPHPUnitInjector/NoFrameworkBundle/AnotherTestKernel/cache/'.$this->environment;
2525
}
2626

27-
public function getLogDir()
27+
public function getLogDir(): string
2828
{
2929
return \sys_get_temp_dir().'/ZalasPHPUnitInjector/NoFrameworkBundle/AnotherTestKernel/logs';
3030
}

tests/Symfony/TestCase/Fixtures/NoFrameworkBundle/TestKernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ public function __construct(string $environment, bool $debug)
1919
parent::__construct($environment, $debug);
2020
}
2121

22-
public function registerBundles()
22+
public function registerBundles(): array
2323
{
2424
return [];
2525
}
2626

27-
public function getCacheDir()
27+
public function getCacheDir(): string
2828
{
2929
return \sys_get_temp_dir().'/ZalasPHPUnitInjector/NoFrameworkBundle/TestKernel/cache/'.$this->environment;
3030
}
3131

32-
public function getLogDir()
32+
public function getLogDir(): string
3333
{
3434
return \sys_get_temp_dir().'/ZalasPHPUnitInjector/NoFrameworkBundle/TestKernel/logs';
3535
}

0 commit comments

Comments
 (0)