Skip to content

Commit

Permalink
Merge pull request #57 from garak/fix-board
Browse files Browse the repository at this point in the history
🎨 fix Board
  • Loading branch information
garak authored May 30, 2022
2 parents a794cfd + 1b78e70 commit ac89a8a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/Board.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,9 @@ public function current(): ?Piece
return \current($this->squares) !== false ? \current($this->squares): null;
}

/**
* @return Piece|null|false
*/
public function next()
public function next(): void
{
return \next($this->squares);
\next($this->squares);
}

public function key(): ?int
Expand All @@ -137,9 +134,9 @@ public function valid(): bool
return null !== $this->key();
}

public function rewind(): ?Piece
public function rewind(): void
{
return empty($this->squares) ? null : \reset($this->squares);
\reset($this->squares);
}

public function jsonSerialize(): string
Expand Down

0 comments on commit ac89a8a

Please sign in to comment.