Skip to content

Commit 3c186a1

Browse files
committed
fix: passed invalid variable for checks.
1 parent 81de3b3 commit 3c186a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Migration/Sources/CSV.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ private function exportDocuments(int $batchSize): void
160160
}
161161
}
162162

163-
$this->withCSVStream(function ($stream) use ($attributes, $attributeTypes, $manyToManyKeys, $collection, $batchSize) {
163+
$this->withCSVStream(function ($stream) use ($attributeTypes, $manyToManyKeys, $collection, $batchSize) {
164164
$headers = fgetcsv($stream);
165165
if (! is_array($headers) || count($headers) === 0) {
166166
return;
167167
}
168168

169-
$this->validateCSVHeaders($headers, $attributes);
169+
$this->validateCSVHeaders($headers, $attributeTypes);
170170

171171
$buffer = [];
172172

0 commit comments

Comments
 (0)