diff --git a/src/Vector3.php b/src/Vector3.php index 52de271..bce5943 100644 --- a/src/Vector3.php +++ b/src/Vector3.php @@ -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); } /**