Skip to content

Commit fa7f8b4

Browse files
committed
Handle permissions as array
1 parent cf36ced commit fa7f8b4

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
@@ -147,7 +147,7 @@ private function exportDocuments(int $batchSize): void
147147
}
148148
}
149149

150-
$arrayKeys = [];
150+
$arrayKeys = ['$permissions'];
151151
$attributeTypes = [];
152152
$manyToManyKeys = [];
153153

@@ -182,7 +182,7 @@ private function exportDocuments(int $batchSize): void
182182

183183
$this->withCSVStream(function ($stream) use ($attributeTypes, $manyToManyKeys, $arrayKeys, $collection, $batchSize) {
184184
$headers = fgetcsv($stream);
185-
if (! is_array($headers) || count($headers) === 0) {
185+
if (!is_array($headers) || count($headers) === 0) {
186186
return;
187187
}
188188

0 commit comments

Comments
 (0)