Skip to content

Commit

Permalink
Make Seed::merged deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
dakujem committed Mar 27, 2024
1 parent 5a3c111 commit 4fe9d4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Please report any issues.

## v1.1.x

- Added `Seed::chain` method for iterable collection chaining: the new method takes over `Seed::merged` which becomes its alias.
- Added `Seed::chain` method for iterable collection chaining: the new method takes over `Seed::merged` which becomes its alias for backward compatibility.
- Deprecated `Seed::merged`, use `Seed::chain` instead.


## v1.0
Expand Down
6 changes: 5 additions & 1 deletion src/Seed.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ final class Seed
{
/**
* Chain multiple iterable collections into a single one.
* The input collections are not actually merged, but a generator is produced.
*
* The input collections are not actually merged,
* but a generator that iterates over all the elements of all the input collections is returned.
*
* Can be used to prepend or append data from multiple source collections.
*/
Expand All @@ -39,6 +41,8 @@ public static function chain(iterable ...$input): Generator
*
* Creates a "merged" iterable from multiple collections.
* The input collections are not actually merged, but a generator is produced.
*
* @deprecated Use `Seed::chain` method.
*/
public static function merged(iterable ...$input): Generator
{
Expand Down

0 comments on commit 4fe9d4f

Please sign in to comment.