Add stub for `zip()`.

This commit is contained in:
CismonX 2018-09-20 15:23:17 +08:00
parent 28e2cef92c
commit c9f785935a
1 changed files with 12 additions and 0 deletions

View File

@ -923,4 +923,16 @@ class Collection implements ArrayAccess, Countable
* @return Collection
*/
function values() {}
/**
* Returns a collection of pairs built from the elements of this array and other array
* with the same index. The returned collection has length of the shortest array.
*
* Both arrays must be packed.
*
* @param array|Collection $other
* @param callable $transform[optional] ($value, $key) -> $new_value
* @return Collection
*/
function zip($other, $transform) {}
}