Skip to content

Commit

Permalink
Removed unused @psalm-suppress
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Dec 19, 2022
1 parent ca72449 commit 13eeb1b
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,7 @@ protected function setUp(): void
/** @var AggregateRepository<Greeting> $aggregateRepository */
$aggregateRepository = new EventStreamAggregateRepository($this->db, $this->loadEvent);

$this->clock = new FrozenClock(new DateTimeImmutable());

/**
* @psalm-suppress InvalidArgument this command bus receives non-covariant command handlers: psalm is correctly
* identifying that, and attempting to prevent us from getting hurt, but we are
* explicitly going down that road here.
*/
$this->clock = new FrozenClock(new DateTimeImmutable());
$this->commandBus = new HandleCommandThroughGivenCommandHandlers([
new SayHelloHandler($aggregateRepository, $this->clock),
new SayGoodbyeHandler($aggregateRepository, $this->clock),
Expand Down

0 comments on commit 13eeb1b

Please sign in to comment.