File tree Expand file tree Collapse file tree 1 file changed +8
-16
lines changed
eZ/Bundle/EzPublishDebugBundle/Twig Expand file tree Collapse file tree 1 file changed +8
-16
lines changed Original file line number Diff line number Diff line change 77namespace eZ \Bundle \EzPublishDebugBundle \Twig ;
88
99use Symfony \Component \Filesystem \Filesystem ;
10+ use Twig \Source ;
1011use 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 }
You can’t perform that action at this time.
0 commit comments