Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro authored and github-actions[bot] committed Dec 19, 2024
1 parent 1054d85 commit 175e1fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions src/Lifecycle/Broker.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public function __construct(
protected MetadataManager $metadata,
protected EventQueue $queue,
protected StateManager $states,
) {
}
) {}

public function fireIfValid(Event $event): ?Event
{
Expand Down Expand Up @@ -78,7 +77,7 @@ public function commit(): bool
return $this->commit();
}

public function replay(callable $beforeEach = null, callable $afterEach = null): void
public function replay(?callable $beforeEach = null, ?callable $afterEach = null): void
{
$this->is_replaying = true;

Expand Down
7 changes: 3 additions & 4 deletions src/Lifecycle/EventStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ class EventStore implements StoresEvents
{
public function __construct(
protected MetadataManager $metadata,
) {
}
) {}

public function read(
State $state = null,
Bits|UuidInterface|AbstractUid|int|string $after_id = null,
?State $state = null,
Bits|UuidInterface|AbstractUid|int|string|null $after_id = null,
bool $singleton = false,
): LazyCollection {
return $this->readEvents($state, $after_id, $singleton)
Expand Down

0 comments on commit 175e1fc

Please sign in to comment.