diff --git a/exercises/practice/anagram/AnagramTest.php b/exercises/practice/anagram/AnagramTest.php index 36cebf00..d7159d31 100644 --- a/exercises/practice/anagram/AnagramTest.php +++ b/exercises/practice/anagram/AnagramTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void */ public function testNoMatches(): void { - $this->assertEqualsCanonicalizing([], detectAnagrams('diaper', ['hello', 'world', 'zombies', 'pants'])); + $this->assertEqualsCanonicalizing([], array_values(detectAnagrams('diaper', ['hello', 'world', 'zombies', 'pants']))); } /**