mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-05-21 14:56:31 +02:00
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
|
* @return string The default charset
|
||||||
*/
|
*/
|
||||||
public function getCharset()
|
public function getCharset(): string
|
||||||
{
|
{
|
||||||
return $this->charset;
|
return $this->charset;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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);
|
||||||
|
|
2
tests/fixtures/app/TestKernel.php
vendored
2
tests/fixtures/app/TestKernel.php
vendored
|
@ -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(),
|
||||||
|
|
Loading…
Reference in a new issue