Skip to content

Commit

Permalink
fix: use a promoted property for a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
shavounet committed Oct 26, 2023
1 parent 8bef10f commit a524310
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Middleware/EventDispatcherMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*/
class EventDispatcherMiddleware implements MiddlewareInterface
{
/** @var EventDispatcherInterface */
protected $eventDispatcher;

/** @var array */
protected $events = [];

Expand All @@ -27,9 +24,8 @@ class EventDispatcherMiddleware implements MiddlewareInterface
*
* @param string $clientId
*/
public function __construct(EventDispatcherInterface $eventDispatcher, protected $clientId)
public function __construct(protected EventDispatcherInterface $eventDispatcher, protected $clientId)
{
$this->eventDispatcher = $eventDispatcher;
}

/**
Expand Down

0 comments on commit a524310

Please sign in to comment.