Skip to content

Commit 2b949cd

Browse files
author
Jonathan Kraut
committed
use func_get_args to pass array_prepend call through to Arr::prepend to ensure correct handling of $key argument
1 parent 0fa15d7 commit 2b949cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ function array_pluck($array, $value, $key = null)
199199
*/
200200
function array_prepend($array, $value, $key = null)
201201
{
202-
return Arr::prepend($array, $value, $key);
202+
return Arr::prepend(...func_get_args());
203203
}
204204
}
205205

0 commit comments

Comments
 (0)