@@ -25,12 +25,7 @@ class BreadcrumbExtension extends AbstractExtension
2525 */
2626 private $ template ;
2727
28- /**
29- * @param BreadcrumbBuilder $builder
30- * @param BreadcrumbItemProcessor $itemProcessor
31- * @param string $template
32- */
33- public function __construct (BreadcrumbBuilder $ builder , BreadcrumbItemProcessor $ itemProcessor , $ template )
28+ public function __construct (BreadcrumbBuilder $ builder , BreadcrumbItemProcessor $ itemProcessor , string $ template )
3429 {
3530 $ this ->builder = $ builder ;
3631 $ this ->itemProcessor = $ itemProcessor ;
@@ -39,8 +34,9 @@ public function __construct(BreadcrumbBuilder $builder, BreadcrumbItemProcessor
3934
4035 /**
4136 * {@inheritDoc}
37+ * @return TwigFunction[]
4238 */
43- public function getFunctions ()
39+ public function getFunctions (): array
4440 {
4541 return [
4642 new TwigFunction (
@@ -55,20 +51,12 @@ public function getFunctions()
5551 ];
5652 }
5753
58- /**
59- * {@inheritDoc}
60- */
61- public function getName ()
54+ public function getName (): string
6255 {
6356 return 'slope_it_breadcrumb ' ;
6457 }
6558
66- /**
67- * Returns the rendered breadcrumb.
68- *
69- * @return string
70- */
71- public function renderBreadcrumb (Environment $ twig , array $ context )
59+ public function renderBreadcrumb (Environment $ twig , array $ context ): string
7260 {
7361 $ breadcrumb = [];
7462 foreach ($ this ->builder ->getItems () as $ item ) {
0 commit comments