Skip to content

Commit 670f525

Browse files
committed
Vector3: remove support for sidesArray() with keys
this is no longer possible to support with the conversion of Facing to an enum
1 parent 7653a0a commit 670f525

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Vector3.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@ public function sides(int $step = 1) : \Generator{
184184
*
185185
* @return Vector3[]
186186
*/
187-
public function sidesArray(bool $keys = false, int $step = 1) : array{
188-
return iterator_to_array($this->sides($step), $keys);
187+
public function sidesArray(int $step = 1) : array{
188+
//we can't include keys since Facing is now an enum
189+
return iterator_to_array($this->sides($step), preserve_keys: false);
189190
}
190191

191192
/**

0 commit comments

Comments
 (0)