Skip to content

Commit

Permalink
fix: fix Symfony 6 comptability
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal authored and Hugo Alliaume committed Dec 1, 2021
1 parent 1766bff commit 8126f88
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Command/DumpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected function initialize(InputInterface $input, OutputInterface $output)
}

/**
* {@inheritDoc}
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
Expand Down
10 changes: 5 additions & 5 deletions Tests/Fixtures/app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct($environment, $debug)
parent::__construct($environment, $debug);
}

public function registerBundles()
public function registerBundles(): iterable
{
return array(
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
Expand All @@ -44,22 +44,22 @@ public function registerBundles()
);
}

public function getRootDir()
public function getRootDir(): string
{
return __DIR__;
}

public function getProjectDir()
public function getProjectDir(): string
{
return __DIR__.'/../';
}

public function getCacheDir()
public function getCacheDir(): string
{
return sys_get_temp_dir().'/'.Kernel::VERSION.'/bazinga-js-translation/cache/'.$this->environment;
}

public function getLogDir()
public function getLogDir(): string
{
return sys_get_temp_dir().'/'.Kernel::VERSION.'/bazinga-js-translation/logs';
}
Expand Down
5 changes: 3 additions & 2 deletions Tests/WebTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\HttpKernel\KernelInterface;
use Bazinga\Bundle\JsTranslationBundle\Tests\Fixtures\app\AppKernel;

abstract class WebTestCase extends BaseWebTestCase
Expand All @@ -30,12 +31,12 @@ protected static function getContainer(): ContainerInterface
return static::$kernel->getContainer();
}

protected static function getKernelClass()
protected static function getKernelClass(): string
{
return AppKernel::class;
}

protected static function createKernel(array $options = array())
protected static function createKernel(array $options = array()): KernelInterface
{
$class = self::getKernelClass();

Expand Down

0 comments on commit 8126f88

Please sign in to comment.