Skip to content

Commit 4f18546

Browse files
committed
fix deprecation notice
1 parent 2f7aa89 commit 4f18546

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/EventSubscriber/FlashMessageSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct(RequestStack $requestStack, TranslatorInterface $tra
2020
$this->translator = $translator;
2121
}
2222

23-
public static function getSubscribedEvents()
23+
public static function getSubscribedEvents(): array
2424
{
2525
return [
2626
// we want that to run early (before the Session->Cookie transformation)

src/Twig/TwigExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __construct(
5959
$this->loginUrlInfo = $loginUrlInfo;
6060
}
6161

62-
public function getFilters()
62+
public function getFilters(): array
6363
{
6464
return [
6565
new TwigFilter('preg_replace', [$this, 'pregReplace']),
@@ -76,7 +76,7 @@ public function getFilters()
7676
];
7777
}
7878

79-
public function getFunctions()
79+
public function getFunctions(): array
8080
{
8181
return [
8282
new TwigFunction('date_range', [$this, 'dateRange']),

0 commit comments

Comments
 (0)