From 353c17482e56462a73a285516644a30fa143a6ad Mon Sep 17 00:00:00 2001 From: Norman Huth Date: Mon, 18 Dec 2023 19:26:46 +0100 Subject: [PATCH] update test for array key map method --- tests/Support/SupportArrTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Support/SupportArrTest.php b/tests/Support/SupportArrTest.php index 6065d7fde70b..ab746ac8e4b0 100644 --- a/tests/Support/SupportArrTest.php +++ b/tests/Support/SupportArrTest.php @@ -703,9 +703,9 @@ public function testMap() public function testKeyMap() { $data = ['First' => 'taylor', 'Last' => 'otwell']; - $mapped = Arr::keyMap(function ($key) { + $mapped = Arr::keyMap($data, function ($key) { return strtolower($key); - }, $data); + }); $this->assertEquals(['first' => 'taylor', 'last' => 'otwell'], $mapped); $this->assertEquals(['First' => 'taylor', 'Last' => 'otwell'], $data); }