Skip to content

Commit 9c86dd9

Browse files
authored
Correct parameter type of Collection::diffKeys() (#53441)
1 parent 7745f03 commit 9c86dd9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Illuminate/Collections/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public function diffAssocUsing($items, callable $callback)
284284
/**
285285
* Get the items in the collection whose keys are not present in the given items.
286286
*
287-
* @param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items
287+
* @param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items
288288
* @return static
289289
*/
290290
public function diffKeys($items)
@@ -295,7 +295,7 @@ public function diffKeys($items)
295295
/**
296296
* Get the items in the collection whose keys are not present in the given items, using the callback.
297297
*
298-
* @param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items
298+
* @param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items
299299
* @param callable(TKey, TKey): int $callback
300300
* @return static
301301
*/

src/Illuminate/Collections/Enumerable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,15 +226,15 @@ public function diffAssocUsing($items, callable $callback);
226226
/**
227227
* Get the items whose keys are not present in the given items.
228228
*
229-
* @param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items
229+
* @param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items
230230
* @return static
231231
*/
232232
public function diffKeys($items);
233233

234234
/**
235235
* Get the items whose keys are not present in the given items, using the callback.
236236
*
237-
* @param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items
237+
* @param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items
238238
* @param callable(TKey, TKey): int $callback
239239
* @return static
240240
*/

src/Illuminate/Collections/LazyCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public function diffAssocUsing($items, callable $callback)
375375
/**
376376
* Get the items whose keys are not present in the given items.
377377
*
378-
* @param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items
378+
* @param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items
379379
* @return static
380380
*/
381381
public function diffKeys($items)
@@ -386,7 +386,7 @@ public function diffKeys($items)
386386
/**
387387
* Get the items whose keys are not present in the given items, using the callback.
388388
*
389-
* @param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items
389+
* @param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items
390390
* @param callable(TKey, TKey): int $callback
391391
* @return static
392392
*/

0 commit comments

Comments
 (0)