Skip to content

Commit 331c3f3

Browse files
liquid207taylorotwelldriesvints
authored
[8.x] Update PHPDoc of Collection::forget() (#40283)
* Update PHPDoc of Collection::forget() * Update src/Illuminate/Collections/Collection.php Co-authored-by: Dries Vints <[email protected]> Co-authored-by: Taylor Otwell <[email protected]> Co-authored-by: Dries Vints <[email protected]>
1 parent 66c5afc commit 331c3f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Collections/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ public function flip()
397397
/**
398398
* Remove an item from the collection by key.
399399
*
400-
* @param string|array $keys
400+
* @param string|int|array $keys
401401
* @return $this
402402
*/
403403
public function forget($keys)
@@ -1628,7 +1628,7 @@ public function offsetSet($key, $value)
16281628
/**
16291629
* Unset the item at a given offset.
16301630
*
1631-
* @param string $key
1631+
* @param mixed $key
16321632
* @return void
16331633
*/
16341634
#[\ReturnTypeWillChange]

0 commit comments

Comments
 (0)