Skip to content

Commit 91ab190

Browse files
committed
Fixed missing mode flag for Arr::map MAP_ARRAY_VALUE_KEY mode test
1 parent 66299f5 commit 91ab190

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ArrTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,11 +640,11 @@ public function testMap()
640640
/** @noinspection PhpParamsInspection */
641641
$this->assertSame(['0a', '1b', '2c'], Arr::map($funcKeyVal, $array));
642642
/** @noinspection PhpParamsInspection */
643-
$this->assertSame(['0a', '1b', '2c'], Arr::map($funcValKey, $array));
643+
$this->assertSame(['0a', '1b', '2c'], Arr::map($funcValKey, $array, Arr::MAP_ARRAY_VALUE_KEY));
644644
/** @noinspection PhpParamsInspection */
645645
$this->assertSame([], Arr::map($funcKeyVal, []));
646646
/** @noinspection PhpParamsInspection */
647-
$this->assertSame([], Arr::map($funcValKey, []));
647+
$this->assertSame([], Arr::map($funcValKey, [], Arr::MAP_ARRAY_VALUE_KEY));
648648
/** @noinspection PhpParamsInspection */
649649
$this->assertSame(range(0, 2), Arr::map(function ($key) {
650650
return $key;

0 commit comments

Comments
 (0)