Skip to content

Commit

Permalink
Merge pull request #268 from jderusse/compat-dev
Browse files Browse the repository at this point in the history
Fix signature for Symfony6 AppKernel
  • Loading branch information
jderusse authored Aug 17, 2021
2 parents 57bd794 + f84a78d commit 3ce7720
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 3ce7720

Please sign in to comment.