From f84a78dee7fc3f47c92f03a4f2867ee7f5478e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Deruss=C3=A9?= Date: Tue, 17 Aug 2021 11:50:00 +0200 Subject: [PATCH] Fix signature for Symfony6 AppKernel --- Tests/AppKernel.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tests/AppKernel.php b/Tests/AppKernel.php index a9f8835..294c393 100644 --- a/Tests/AppKernel.php +++ b/Tests/AppKernel.php @@ -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__.'/../../../../'); @@ -77,7 +77,7 @@ public function setProjectDir($projectDir) $this->fakedProjectDir = $projectDir; } - public function registerBundles() + public function registerBundles(): iterable { return [ new FrameworkBundle(), @@ -135,7 +135,7 @@ public function loadRoutes(LoaderInterface $loader) /** * {@inheritdoc} */ - protected function buildContainer() + protected function buildContainer(): ContainerBuilder { $container = parent::buildContainer();