Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 54464b3

Browse files
committedApr 17, 2024·
Fixed missing return types for DebugTemplate
1 parent 7e47231 commit 54464b3

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed
 

‎eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php

+8-16
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)
Please sign in to comment.