We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c186a1 commit 0bcb3f8Copy full SHA for 0bcb3f8
1 file changed
src/Migration/Sources/CSV.php
@@ -287,8 +287,10 @@ private function withCsvStream(callable $fn): void
287
/**
288
* @throws \Exception
289
*/
290
- private function validateCSVHeaders(array $headers, array $expectedAttributes): void
+ private function validateCSVHeaders(array $headers, array $attributeTypes): void
291
{
292
+ $expectedAttributes = array_keys($attributeTypes);
293
+
294
// Ignore keys like $id, $permissions, etc.
295
$filteredHeaders = array_filter($headers, fn ($key) => ! str_starts_with($key, '$'));
296
0 commit comments