Skip to content

Commit

Permalink
Fix @psalm-var
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Aug 19, 2023
1 parent dbe3957 commit 57ece13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/QueryBuilder/AbstractDMLQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ public function batchInsert(string $table, array $columns, iterable $rows, array
$columns = $this->getNormalizeColumnNames($columns);
$columnSchemas = $this->schema->getTableSchema($table)?->getColumns() ?? [];

/** @psalm-var array<array-key, array<array-key, string>> $rows */
/** @psalm-var array[] $rows */
foreach ($rows as $row) {
$placeholders = [];
/** @psalm-var mixed $value */
foreach ($row as $i => $value) {
if (isset($columns[$i], $columnSchemas[$columns[$i]])) {
/** @psalm-var mixed $value */
Expand Down

0 comments on commit 57ece13

Please sign in to comment.