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 * @return string The default charset
*/ */
public function getCharset() public function getCharset(): string
{ {
return $this->charset; return $this->charset;
} }

View file

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

View file

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

View file

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

View file

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