Skip to content

Commit bb45646

Browse files
committed
yoanm#85: fix Symfony kernel for Behat
1 parent dc2a42f commit bb45646

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

features/demo_app/src/AbstractKernel.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function registerBundles(): iterable
3131
/**
3232
* {@inheritdoc}
3333
*/
34-
public function getCacheDir()
34+
public function getCacheDir(): string
3535
{
3636
// Use a specific cache for each kernels
3737
if (null === $this->customCacheDir) {
@@ -44,15 +44,15 @@ public function getCacheDir()
4444
/**
4545
* {@inheritdoc}
4646
*/
47-
public function getLogDir()
47+
public function getLogDir(): string
4848
{
4949
return $this->getProjectDir().'/var/log';
5050
}
5151

5252
/**
5353
* {@inheritdoc}
5454
*/
55-
public function getProjectDir()
55+
public function getProjectDir(): string
5656
{
5757
return realpath(__DIR__.'/../');
5858
}
@@ -86,7 +86,7 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
8686
*
8787
* @return string The container class
8888
*/
89-
protected function getContainerClass()
89+
protected function getContainerClass(): string
9090
{
9191
// In order to avoid collisions between kernels use a dedicated name
9292
return parent::getContainerClass().Container::camelize($this->getConfigDirectoryName());

0 commit comments

Comments
 (0)