update test methods to parent signatures

This commit is contained in:
Tac Tacelosky 2021-11-30 07:32:02 -05:00
parent 7afd756126
commit 9de7a9f400
5 changed files with 7 additions and 7 deletions

View File

@ -50,7 +50,7 @@ class MarkdownHelper implements HelperInterface
*
* @return string The default charset
*/
public function getCharset()
public function getCharset(): string
{
return $this->charset;
}

View File

@ -12,7 +12,7 @@ class Light extends MarkdownParser
/**
* @var array Enabled features
*/
protected $features = array(
protected array $features = array(
'header' => true,
'list' => true,
'horizontal_rule' => true,

View File

@ -12,7 +12,7 @@ class Medium extends MarkdownParser
/**
* @var array Enabled features
*/
protected $features = array(
protected array $features = array(
'header' => true,
'list' => true,
'horizontal_rule' => true,

View File

@ -31,7 +31,7 @@ class IntegrationKernel extends Kernel
private $cacheDir;
public function registerBundles()
public function registerBundles(): iterable
{
return [
new FrameworkBundle(),
@ -52,7 +52,7 @@ class IntegrationKernel extends Kernel
]);
}
public function getCacheDir()
public function getCacheDir(): string
{
if (null === $this->cacheDir) {
$this->cacheDir = sys_get_temp_dir().'/'.rand(100, 999);

View File

@ -12,7 +12,7 @@ use Symfony\Component\HttpKernel\Kernel;
class TestKernel extends Kernel
{
public function registerBundles()
public function registerBundles(): iterable
{
return array(
new FrameworkBundle(),
@ -31,4 +31,4 @@ class TestKernel extends Kernel
$c->setAlias('markdown.parser.parser_manager.public', new Alias('markdown.parser.parser_manager', true));
});
}
}
}