From 78f6ba6ef2bda86e4ea2c040995437650cdc3003 Mon Sep 17 00:00:00 2001 From: overflowerror Date: Sun, 7 Jan 2024 16:17:41 +0100 Subject: [PATCH] fix: Argument to getHashForPieces should be reference --- src/Game/GameHistory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Game/GameHistory.php b/src/Game/GameHistory.php index b936b69..bd7b564 100644 --- a/src/Game/GameHistory.php +++ b/src/Game/GameHistory.php @@ -72,7 +72,7 @@ class GameHistory { ",", array_map( [$this, "getHashForPieces"], - [$pawns, $bishops, $knights, $rooks, $queens, $kings] + [&$pawns, &$bishops, &$knights, &$rooks, &$queens, &$kings] ) ) . ($this->hasCastlingRights($rooks, $king) ? "." : ""); }