Skip to content

Commit

Permalink
fix: update stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
canvural committed Nov 9, 2022
1 parent 0936d48 commit 6e390bd
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
20 changes: 20 additions & 0 deletions stubs/Collection.stub
Expand Up @@ -29,6 +29,16 @@ class Collection implements ArrayAccess, CanBeEscapedWhenCastToString, Enumerabl
* @throws \InvalidArgumentException
*/
public function random($number = null) {}

/**
* Create a collection by using this collection for keys and another for its values.
*
* @template TCombineValue
*
* @param \Illuminate\Contracts\Support\Arrayable<array-key, TCombineValue>|iterable<array-key, TCombineValue> $values
* @return static<array-key, TCombineValue>
*/
public function combine($values) {}
}

/**
Expand All @@ -43,4 +53,14 @@ class LazyCollection implements CanBeEscapedWhenCastToString, Enumerable
* @use \Illuminate\Support\Traits\EnumeratesValues<TKey, TValue>
*/
use EnumeratesValues;

/**
* Create a collection by using this collection for keys and another for its values.
*
* @template TCombineValue
*
* @param \IteratorAggregate<array-key, TCombineValue>|array<array-key, TCombineValue> $values
* @return static<array-key, TCombineValue>
*/
public function combine($values) {}
}
10 changes: 10 additions & 0 deletions stubs/Enumerable.stub
Expand Up @@ -19,4 +19,14 @@ interface Enumerable extends \Countable, \IteratorAggregate, \JsonSerializable
* @throws \InvalidArgumentException
*/
public function random($number = null) {}

/**
* Create a collection by using this collection for keys and another for its values.
*
* @template TCombineValue
*
* @param \Illuminate\Contracts\Support\Arrayable<array-key, TCombineValue>|iterable<array-key, TCombineValue> $values
* @return static<array-key, TCombineValue>
*/
public function combine($values);
}

0 comments on commit 6e390bd

Please sign in to comment.