Skip to content

Commit b635f9c

Browse files
blanksedvesh3
authored andcommitted
Fix Twig deprecations
1 parent 33b4237 commit b635f9c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/Twig/Extension/CmfFrontendUtilsExtension.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ public function getFunctions(): array
8585
];
8686
}
8787

88-
public function getFilters()
88+
/**
89+
* @return TwigFilter[]
90+
*/
91+
public function getFilters()//: array
8992
{
9093
return [
9194
new TwigFilter('cmf_printFieldCombinations', [$this, 'printFieldCombinations']),

src/Twig/Extension/CmfUrlUtilsExtension.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ public function __construct(RouterInterface $router, RequestStack $requestStack,
6464
$this->linkActivityUrlGenerator = $linkActivityUrlGenerator;
6565
}
6666

67-
public function getFunctions()
67+
/**
68+
* @return TwigFunction[]
69+
*/
70+
public function getFunctions()//: array
6871
{
6972
return [
7073
new TwigFunction('cmf_filterFormAction', [$this, 'getFilterFormAction']),

0 commit comments

Comments
 (0)