Skip to content

Commit

Permalink
Revert "Merge pull request #294 from robertlemke/php-81-adjustments"
Browse files Browse the repository at this point in the history
This reverts commit 9344dc1, reversing
changes made to 8c43867.

#302
  • Loading branch information
robertlemke committed Mar 23, 2022
1 parent 1e2e365 commit 03ebe06
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(): array
public function jsonSerialize()
{
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(): array
public function jsonSerialize()
{
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(): float|bool|int|string|null
public function key()
{
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|null
* @return bool|int
*/
public function key(): bool|int|null
public function key()
{
return $this->innerIterator->valid() ? $this->innerIterator->current()['sequencenumber'] : null;
}
Expand Down

0 comments on commit 03ebe06

Please sign in to comment.