diff --git a/Classes/EventListener/Mapping/EventToListenerMapping.php b/Classes/EventListener/Mapping/EventToListenerMapping.php index 305082e..2d51d0f 100644 --- a/Classes/EventListener/Mapping/EventToListenerMapping.php +++ b/Classes/EventListener/Mapping/EventToListenerMapping.php @@ -71,7 +71,7 @@ public function getOption(string $optionName, $defaultValue) /** * @inheritDoc */ - public function jsonSerialize(): array + public function jsonSerialize() { return [ 'eventClassName' => $this->eventClassName, diff --git a/Classes/EventListener/Mapping/EventToListenerMappings.php b/Classes/EventListener/Mapping/EventToListenerMappings.php index 717e798..05156ac 100644 --- a/Classes/EventListener/Mapping/EventToListenerMappings.php +++ b/Classes/EventListener/Mapping/EventToListenerMappings.php @@ -84,7 +84,7 @@ public function getIterator(): \Iterator return new \ArrayIterator($this->mappings); } - public function jsonSerialize(): array + public function jsonSerialize() { return $this->mappings; } diff --git a/Classes/EventStore/EventStream.php b/Classes/EventStore/EventStream.php index 925086e..b5a1cd6 100644 --- a/Classes/EventStore/EventStream.php +++ b/Classes/EventStore/EventStream.php @@ -71,7 +71,7 @@ public function next(): void $this->streamIterator->next(); } - public function key(): float|bool|int|string|null + public function key() { return $this->streamIterator->key(); } diff --git a/Classes/EventStore/Storage/InMemory/InMemoryStreamIterator.php b/Classes/EventStore/Storage/InMemory/InMemoryStreamIterator.php index 1229264..34e9d1f 100644 --- a/Classes/EventStore/Storage/InMemory/InMemoryStreamIterator.php +++ b/Classes/EventStore/Storage/InMemory/InMemoryStreamIterator.php @@ -76,9 +76,9 @@ public function next(): void } /** - * @return bool|int|null + * @return bool|int */ - public function key(): bool|int|null + public function key() { return $this->innerIterator->valid() ? $this->innerIterator->current()['sequencenumber'] : null; }