Skip to content

Commit a7f45c2

Browse files
committed
Re-merge pull request #294 from robertlemke/php-81-adjustments
#302
1 parent 03ebe06 commit a7f45c2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Classes/EventListener/Mapping/EventToListenerMapping.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function getOption(string $optionName, $defaultValue)
7171
/**
7272
* @inheritDoc
7373
*/
74-
public function jsonSerialize()
74+
public function jsonSerialize(): array
7575
{
7676
return [
7777
'eventClassName' => $this->eventClassName,

Classes/EventListener/Mapping/EventToListenerMappings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function getIterator(): \Iterator
8484
return new \ArrayIterator($this->mappings);
8585
}
8686

87-
public function jsonSerialize()
87+
public function jsonSerialize(): array
8888
{
8989
return $this->mappings;
9090
}

Classes/EventStore/EventStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function next(): void
7171
$this->streamIterator->next();
7272
}
7373

74-
public function key()
74+
public function key(): float|bool|int|string|null
7575
{
7676
return $this->streamIterator->key();
7777
}

Classes/EventStore/Storage/InMemory/InMemoryStreamIterator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ public function next(): void
7676
}
7777

7878
/**
79-
* @return bool|int
79+
* @return bool|int|null
8080
*/
81-
public function key()
81+
public function key(): bool|int|null
8282
{
8383
return $this->innerIterator->valid() ? $this->innerIterator->current()['sequencenumber'] : null;
8484
}

0 commit comments

Comments
 (0)