Skip to content

Commit

Permalink
Fix signature for Symfony6 AppKernel
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse committed Aug 17, 2021
1 parent 57bd794 commit f84a78d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tests/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ public function __construct($cachePrefix)
$this->cachePrefix = $cachePrefix;
}

public function getCacheDir()
public function getCacheDir(): string
{
return \sys_get_temp_dir().'/ekino/'.$this->cachePrefix;
}

public function getLogDir()
public function getLogDir(): string
{
return \sys_get_temp_dir().'/ekino/log';
}

public function getProjectDir()
public function getProjectDir(): string
{
if (null === $this->fakedProjectDir) {
return \realpath(__DIR__.'/../../../../');
Expand All @@ -77,7 +77,7 @@ public function setProjectDir($projectDir)
$this->fakedProjectDir = $projectDir;
}

public function registerBundles()
public function registerBundles(): iterable
{
return [
new FrameworkBundle(),
Expand Down Expand Up @@ -135,7 +135,7 @@ public function loadRoutes(LoaderInterface $loader)
/**
* {@inheritdoc}
*/
protected function buildContainer()
protected function buildContainer(): ContainerBuilder
{
$container = parent::buildContainer();

Expand Down

0 comments on commit f84a78d

Please sign in to comment.