Skip to content

Commit

Permalink
remove Generator in DMLQueryBuilderInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Oct 30, 2023
1 parent 47746f8 commit da705d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QueryBuilder/DMLQueryBuilderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ interface DMLQueryBuilderInterface
*
* @param string $table The table to insert new rows into.
* @param string[] $columns The column names of the table.
* @param Generator|iterable $rows The rows to batch-insert into the table.
* @param iterable $rows The rows to batch-insert into the table.
* @param array $params The binding parameters. This parameter exists.
*
* @throws Exception
Expand All @@ -48,7 +48,7 @@ interface DMLQueryBuilderInterface
* - That the values in each row must match the corresponding column names.
* - The method will escape the column names, and quote the values to insert.
*/
public function batchInsert(string $table, array $columns, iterable|Generator $rows, array &$params = []): string;
public function batchInsert(string $table, array $columns, iterable $rows, array &$params = []): string;

/**
* Creates a `DELETE` SQL statement.
Expand Down

0 comments on commit da705d2

Please sign in to comment.