update test methods to parent signatures
This commit is contained in:
parent
7afd756126
commit
9de7a9f400
|
@ -50,7 +50,7 @@ class MarkdownHelper implements HelperInterface
|
|||
*
|
||||
* @return string The default charset
|
||||
*/
|
||||
public function getCharset()
|
||||
public function getCharset(): string
|
||||
{
|
||||
return $this->charset;
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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));
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue