Skip to content

Commit

Permalink
Re-merge pull request #294 from robertlemke/php-81-adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlemke committed Mar 23, 2022
1 parent 03ebe06 commit a7f45c2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Classes/EventListener/Mapping/EventToListenerMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function getOption(string $optionName, $defaultValue)
/**
* @inheritDoc
*/
public function jsonSerialize()
public function jsonSerialize(): array
{
return [
'eventClassName' => $this->eventClassName,
Expand Down
2 changes: 1 addition & 1 deletion Classes/EventListener/Mapping/EventToListenerMappings.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function getIterator(): \Iterator
return new \ArrayIterator($this->mappings);
}

public function jsonSerialize()
public function jsonSerialize(): array
{
return $this->mappings;
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/EventStore/EventStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function next(): void
$this->streamIterator->next();
}

public function key()
public function key(): float|bool|int|string|null
{
return $this->streamIterator->key();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ public function next(): void
}

/**
* @return bool|int
* @return bool|int|null
*/
public function key()
public function key(): bool|int|null
{
return $this->innerIterator->valid() ? $this->innerIterator->current()['sequencenumber'] : null;
}
Expand Down

0 comments on commit a7f45c2

Please sign in to comment.