Skip to content

Commit d897412

Browse files
authored
Merge pull request #96 from stefandoorn/maintenance/types
Typehint properties
2 parents aa646e5 + f0edb80 commit d897412

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

src/EventListener/AddRouteListener.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99

1010
final class AddRouteListener
1111
{
12-
/** @var GoogleTagManagerInterface */
13-
private $googleTagManager;
12+
private GoogleTagManagerInterface $googleTagManager;
1413

1514
public function __construct(GoogleTagManagerInterface $googleTagManager)
1615
{

src/EventListener/ContextListener.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,13 @@
1313

1414
final class ContextListener
1515
{
16-
/** @var GoogleTagManagerInterface */
17-
private $googleTagManager;
16+
private GoogleTagManagerInterface $googleTagManager;
1817

19-
/** @var ChannelContextInterface */
20-
private $channelContext;
18+
private ChannelContextInterface $channelContext;
2119

22-
/** @var LocaleContextInterface */
23-
private $localeContext;
20+
private LocaleContextInterface $localeContext;
2421

25-
/** @var CurrencyContextInterface */
26-
private $currencyContext;
22+
private CurrencyContextInterface $currencyContext;
2723

2824
public function __construct(
2925
GoogleTagManagerInterface $googleTagManager,

src/EventListener/EnvironmentListener.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99

1010
final class EnvironmentListener
1111
{
12-
/** @var GoogleTagManagerInterface */
13-
private $googleTagManager;
12+
private GoogleTagManagerInterface $googleTagManager;
1413

15-
/** @var string */
16-
private $environment;
14+
private string $environment;
1715

1816
public function __construct(GoogleTagManagerInterface $googleTagManager, string $environment)
1917
{

0 commit comments

Comments
 (0)