From a17a2eda9a532c272a0dffa0027270c60d2a49e9 Mon Sep 17 00:00:00 2001 From: sigmasternchen Date: Thu, 31 Oct 2024 16:21:25 +0100 Subject: [PATCH] fix: Wrong piece in error message --- src/Game/Game.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Game/Game.php b/src/Game/Game.php index ddb37b3..66cb382 100644 --- a/src/Game/Game.php +++ b/src/Game/Game.php @@ -46,7 +46,7 @@ class Game { } } - throw new \RuntimeException("piece not found: " . $piece); + throw new \RuntimeException("piece not found: " . $needle); } private function removePiece(Piece $needle): void {