Skip to content

Commit

Permalink
Vector3: remove support for sidesArray() with keys
Browse files Browse the repository at this point in the history
this is no longer possible to support with the conversion of Facing to an enum
  • Loading branch information
dktapps committed Dec 3, 2024
1 parent 7653a0a commit 670f525
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Vector3.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,9 @@ public function sides(int $step = 1) : \Generator{
*
* @return Vector3[]
*/
public function sidesArray(bool $keys = false, int $step = 1) : array{
return iterator_to_array($this->sides($step), $keys);
public function sidesArray(int $step = 1) : array{
//we can't include keys since Facing is now an enum
return iterator_to_array($this->sides($step), preserve_keys: false);
}

/**
Expand Down

0 comments on commit 670f525

Please sign in to comment.