Skip to content

Commit

Permalink
fix: Remove php deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
paxuclus committed Oct 31, 2024
1 parent 9debe5d commit 5b33011
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Tests/Unit/Domain/Service/ArrayQueryResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,52 +20,52 @@ public function __construct(array $result)
$this->iterator = (new ArrayObject($result))->getIterator();
}

public function current()
public function current(): mixed
{
return $this->iterator->current();
}

public function next()
public function next(): void
{
$this->iterator->next();
}

public function key()
public function key(): mixed
{
return $this->iterator->key();
}

public function valid()
public function valid(): bool
{
return $this->iterator->valid();
}

public function rewind()
public function rewind(): void
{
$this->iterator->rewind();
}

public function offsetExists($offset)
public function offsetExists(mixed $offset): bool
{
return $this->iterator->offsetExists($offset);
}

public function offsetGet($offset)
public function offsetGet(mixed $offset): mixed
{
return $this->iterator->offsetGet($offset);
}

public function offsetSet($offset, $value)
public function offsetSet(mixed $offset, mixed $value): void
{
$this->iterator->offsetSet($offset, $value);
}

public function offsetUnset($offset)
public function offsetUnset(mixed $offset): void
{
$this->iterator->offsetUnset($offset);
}

public function count()
public function count(): int
{
return $this->iterator->count();
}
Expand Down

0 comments on commit 5b33011

Please sign in to comment.