Skip to content

Commit

Permalink
PHP 7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
unixslayer committed Nov 29, 2021
1 parent 2711066 commit 10a1df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AggregateRepository.php
Expand Up @@ -40,7 +40,7 @@ public function __construct(EventStore $eventStore, Transformer $transformer, Hy
public function saveAggregateRoot(AggregateRoot $aggregateRoot): void
{
if (!$this->canHandle($aggregateRoot)) {
throw new \InvalidArgumentException(sprintf('"%s" cannot handle "%s".', $this::class, get_debug_type($aggregateRoot)));
throw new \InvalidArgumentException(sprintf('"%s" cannot handle "%s".', static::class, get_debug_type($aggregateRoot)));
}

$events = $aggregateRoot->recordedEvents();
Expand Down

0 comments on commit 10a1df3

Please sign in to comment.