Skip to content

Commit 13f7cd4

Browse files
authored
Merge pull request #4 from event-engine/feature/php8.4-remove-deprecations
Remove php8.4 deprecation notices
2 parents 69d9cef + 67b1a04 commit 13f7cd4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/LogEngine.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function existingAggregateChanged(string $aggregateType, string $aggregat
5252

5353
public function aggregateStateLoaded(string $aggregateType, string $aggregateId, int $aggregateVersion);
5454

55-
public function aggregateStateLoadedFromCache(string $aggregateType, string $aggregateId, int $expectedVersion = null);
55+
public function aggregateStateLoadedFromCache(string $aggregateType, string $aggregateId, ?int $expectedVersion = null);
5656

5757
public function projectionHandledEvent(string $projectionName, GenericEvent $event);
5858

src/SimpleMessageEngine.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function aggregateStateLoaded(string $aggregateType, string $aggregateId,
105105
$this->logger->info("Loaded aggregate state of type $aggregateType with id $aggregateId and version $aggregateVersion");
106106
}
107107

108-
public function aggregateStateLoadedFromCache(string $aggregateType, string $aggregateId, int $expectedVersion = null)
108+
public function aggregateStateLoadedFromCache(string $aggregateType, string $aggregateId, ?int $expectedVersion = null)
109109
{
110110
$expectedVersionStr = $expectedVersion !== null ? " expected version $expectedVersion" : "";
111111
$this->logger->info("Loaded aggregate state of type $aggregateType with id $aggregateId {$expectedVersionStr} from cache");

0 commit comments

Comments
 (0)