Skip to content

Commit 6834cdc

Browse files
committed
Merge branch 'add-firing-phase' of https://github.com/hirethunk/verbs into add-firing-phase
2 parents ddc0f79 + 175e1fc commit 6834cdc

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/Lifecycle/Broker.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ public function __construct(
2020
protected MetadataManager $metadata,
2121
protected EventQueue $queue,
2222
protected StateManager $states,
23-
) {
24-
}
23+
) {}
2524

2625
public function fireIfValid(Event $event): ?Event
2726
{
@@ -78,7 +77,7 @@ public function commit(): bool
7877
return $this->commit();
7978
}
8079

81-
public function replay(callable $beforeEach = null, callable $afterEach = null): void
80+
public function replay(?callable $beforeEach = null, ?callable $afterEach = null): void
8281
{
8382
$this->is_replaying = true;
8483

src/Lifecycle/EventStore.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ class EventStore implements StoresEvents
2323
{
2424
public function __construct(
2525
protected MetadataManager $metadata,
26-
) {
27-
}
26+
) {}
2827

2928
public function read(
30-
State $state = null,
31-
Bits|UuidInterface|AbstractUid|int|string $after_id = null,
29+
?State $state = null,
30+
Bits|UuidInterface|AbstractUid|int|string|null $after_id = null,
3231
bool $singleton = false,
3332
): LazyCollection {
3433
return $this->readEvents($state, $after_id, $singleton)

0 commit comments

Comments
 (0)