diff --git a/src/A.php b/src/A.php index f7f3823..d8c62ce 100644 --- a/src/A.php +++ b/src/A.php @@ -108,13 +108,13 @@ public static function ensureArray($data): array // A::append([4, 5, 6], [1, 2]) -> [1, 2, 4, 5, 6] public static function append($value, array $data): array { - return self::concat($data, $value); + return self::concat($value, $data); } // A::prepend([4, 5, 6], [1, 2]) -> [4, 5, 6, 1, 2] public static function prepend($value, array $data): array { - return self::concat($value, $data); + return self::concat($data, $value); } // A::pluck('color', [['color' => 'red', ...], ['color' => 'green', ...]]) -> ['red', 'green']