File tree 1 file changed +8
-16
lines changed
eZ/Bundle/EzPublishDebugBundle/Twig
1 file changed +8
-16
lines changed Original file line number Diff line number Diff line change 7
7
namespace eZ \Bundle \EzPublishDebugBundle \Twig ;
8
8
9
9
use Symfony \Component \Filesystem \Filesystem ;
10
+ use Twig \Source ;
10
11
use Twig \Template ;
11
12
12
13
/**
@@ -19,7 +20,7 @@ class DebugTemplate extends Template
19
20
{
20
21
private $ fileSystem ;
21
22
22
- public function display (array $ context , array $ blocks = [])
23
+ public function display (array $ context , array $ blocks = []): void
23
24
{
24
25
$ this ->fileSystem = $ this ->fileSystem ?: new Filesystem ();
25
26
@@ -65,34 +66,25 @@ public function display(array $context, array $blocks = [])
65
66
}
66
67
}
67
68
68
- /**
69
- * {@inheritdoc}
70
- */
71
- public function getTemplateName ()
69
+ public function getTemplateName (): string
72
70
{
73
71
return '' ;
74
72
}
75
73
76
- /**
77
- * {@inheritdoc}
78
- */
79
- public function getSourceContext ()
74
+ public function getSourceContext (): Source
80
75
{
81
- return '' ;
76
+ return new Source ( '' , '' ) ;
82
77
}
83
78
84
- /**
85
- * {@inheritdoc}
86
- */
87
- protected function doDisplay (array $ context , array $ blocks = [])
79
+ protected function doDisplay (array $ context , array $ blocks = []): string
88
80
{
89
81
return '' ;
90
82
}
91
83
92
84
/**
93
- * {@inheritdoc}
85
+ * @return array<mixed>
94
86
*/
95
- public function getDebugInfo ()
87
+ public function getDebugInfo (): array
96
88
{
97
89
return [];
98
90
}
You can’t perform that action at this time.
0 commit comments