Skip to content

Commit

Permalink
fix: Solve return type issues with Objectiterator (port of #682)
Browse files Browse the repository at this point in the history
See #682
  • Loading branch information
DannyvdSluijs committed Aug 2, 2024
1 parent 77cad15 commit 875e787
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/JsonSchema/Iterator/ObjectIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function __construct($object)
/**
* {@inheritdoc}
*/
#[\ReturnTypeWillChange]
public function current()
{
$this->initialize();
Expand All @@ -49,7 +50,7 @@ public function current()
/**
* {@inheritdoc}
*/
public function next()
public function next(): void
{
$this->initialize();
$this->position++;
Expand All @@ -58,7 +59,7 @@ public function next()
/**
* {@inheritdoc}
*/
public function key()
public function key(): int
{
$this->initialize();

Expand All @@ -68,7 +69,7 @@ public function key()
/**
* {@inheritdoc}
*/
public function valid()
public function valid(): bool
{
$this->initialize();

Expand All @@ -78,7 +79,7 @@ public function valid()
/**
* {@inheritdoc}
*/
public function rewind()
public function rewind(): void
{
$this->initialize();
$this->position = 0;
Expand All @@ -87,7 +88,7 @@ public function rewind()
/**
* {@inheritdoc}
*/
public function count()
public function count(): int
{
$this->initialize();

Expand Down

0 comments on commit 875e787

Please sign in to comment.