From 6e390bd5cc7c9d66ae61cf17af78d2a629ffba72 Mon Sep 17 00:00:00 2001 From: Can Vural Date: Wed, 9 Nov 2022 14:14:14 +0100 Subject: [PATCH] fix: update stubs --- stubs/Collection.stub | 20 ++++++++++++++++++++ stubs/Enumerable.stub | 10 ++++++++++ 2 files changed, 30 insertions(+) diff --git a/stubs/Collection.stub b/stubs/Collection.stub index d3ac9b1ed7..8bca8afa34 100644 --- a/stubs/Collection.stub +++ b/stubs/Collection.stub @@ -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|iterable $values + * @return static + */ + public function combine($values) {} } /** @@ -43,4 +53,14 @@ class LazyCollection implements CanBeEscapedWhenCastToString, Enumerable * @use \Illuminate\Support\Traits\EnumeratesValues */ use EnumeratesValues; + + /** + * Create a collection by using this collection for keys and another for its values. + * + * @template TCombineValue + * + * @param \IteratorAggregate|array $values + * @return static + */ + public function combine($values) {} } diff --git a/stubs/Enumerable.stub b/stubs/Enumerable.stub index 7f2f2b0000..0d63c8b1b2 100644 --- a/stubs/Enumerable.stub +++ b/stubs/Enumerable.stub @@ -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|iterable $values + * @return static + */ + public function combine($values); }