Skip to content

Commit 81464c6

Browse files
alongoszSteveb-p
andauthored
Fixed missing return types for DebugTemplate class
For more details see ezsystems/ezplatform-kernel#406 Co-Authored-By: Paweł Niedzielski <[email protected]>
1 parent 7e47231 commit 81464c6

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
namespace eZ\Bundle\EzPublishDebugBundle\Twig;
88

99
use Symfony\Component\Filesystem\Filesystem;
10+
use Twig\Source;
1011
use Twig\Template;
1112

1213
/**
@@ -19,7 +20,7 @@ class DebugTemplate extends Template
1920
{
2021
private $fileSystem;
2122

22-
public function display(array $context, array $blocks = [])
23+
public function display(array $context, array $blocks = []): void
2324
{
2425
$this->fileSystem = $this->fileSystem ?: new Filesystem();
2526

@@ -65,34 +66,25 @@ public function display(array $context, array $blocks = [])
6566
}
6667
}
6768

68-
/**
69-
* {@inheritdoc}
70-
*/
71-
public function getTemplateName()
69+
public function getTemplateName(): string
7270
{
7371
return '';
7472
}
7573

76-
/**
77-
* {@inheritdoc}
78-
*/
79-
public function getSourceContext()
74+
public function getSourceContext(): Source
8075
{
81-
return '';
76+
return new Source('', '');
8277
}
8378

84-
/**
85-
* {@inheritdoc}
86-
*/
87-
protected function doDisplay(array $context, array $blocks = [])
79+
protected function doDisplay(array $context, array $blocks = []): string
8880
{
8981
return '';
9082
}
9183

9284
/**
93-
* {@inheritdoc}
85+
* @return array<mixed>
9486
*/
95-
public function getDebugInfo()
87+
public function getDebugInfo(): array
9688
{
9789
return [];
9890
}

0 commit comments

Comments
 (0)