Skip to content

Commit

Permalink
Merge branch 'add-firing-phase' of https://github.com/hirethunk/verbs
Browse files Browse the repository at this point in the history
…into add-firing-phase
  • Loading branch information
inxilpro committed Dec 19, 2024
2 parents ddc0f79 + 175e1fc commit 6834cdc
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 6834cdc

Please sign in to comment.