diff --git a/src/Reader/FileReader.php b/src/Reader/FileReader.php index a818214..7ca165c 100644 --- a/src/Reader/FileReader.php +++ b/src/Reader/FileReader.php @@ -44,7 +44,7 @@ public function read(): array try { $dir = $this->filesystemIteratorFactory->create([ - 'path' => DirectoryList::MEDIA . DIRECTORY_SEPARATOR . $this->destination, + 'directory' => DirectoryList::MEDIA . DIRECTORY_SEPARATOR . $this->destination, 'flags' => FilesystemIterator::SKIP_DOTS, ]); } catch (\UnexpectedValueException $exception) {