Skip to content

Commit f75b1c1

Browse files
author
Jason Machado Silva
committed
MINT-5364: Add function shiftUp
1 parent f99a8d8 commit f75b1c1

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Tools/Mapper/Mapper.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,16 @@ public function first(array $array)
194194
return reset($array);
195195
}
196196

197+
/**
198+
* @param array $elements
199+
*
200+
* @return array
201+
*/
202+
public function shiftUp(array $elements)
203+
{
204+
return array_merge(...$elements);
205+
}
206+
197207
/**
198208
* Convert a string to date.
199209
*

0 commit comments

Comments
 (0)