Skip to content

Commit

Permalink
More PHP 8 syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
Crell committed Oct 2, 2023
1 parent 9f6f8cc commit e76d53c
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/DebugEventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@

class DebugEventDispatcher implements EventDispatcherInterface
{
protected EventDispatcherInterface $dispatcher;

protected LoggerInterface $logger;

/**
* DebugEventDispatcher constructor.
*
Expand All @@ -21,11 +17,10 @@ class DebugEventDispatcher implements EventDispatcherInterface
* @param LoggerInterface $logger
* The logger service through which to log.
*/
public function __construct(EventDispatcherInterface $dispatcher, LoggerInterface $logger)
{
$this->dispatcher = $dispatcher;
$this->logger = $logger;
}
public function __construct(
protected EventDispatcherInterface $dispatcher,
protected LoggerInterface $logger,
) {}

/**
* {@inheritdoc}
Expand Down

0 comments on commit e76d53c

Please sign in to comment.