wrong parameter count in method call

This commit is contained in:
madflow authored and Adrien Loison committed 2018-01-16 14:22:10 +01:00
1 parent 4c7adbb33f
commit 88eee3be72
2 files changed
+11 -2

No files matched your search

@@ -43,7 +43,12 @@ class InternalEntityFactory implements InternalEntityFactoryInterface
*/
public function createSheetIterator($filePath, $optionsManager, $sharedStringsManager)
{
$sheetManager = $this->managerFactory->createSheetManager($filePath, $optionsManager, $sharedStringsManager, $this);
$sheetManager = $this->managerFactory->createSheetManager(
$filePath,
$optionsManager,
$sharedStringsManager,
$this
);
return new SheetIterator($sheetManager);
}
+5 -1
View File
@@ -92,7 +92,11 @@ class Reader extends ReaderAbstract
$this->sharedStringsManager->extractSharedStrings();
}
$this->sheetIterator = $entityFactory->createSheetIterator($filePath, $this->optionsManager, $this->sharedStringsManager, $this->globalFunctionsHelper);
$this->sheetIterator = $entityFactory->createSheetIterator(
$filePath,
$this->optionsManager,
$this->sharedStringsManager
);
} else {
throw new IOException("Could not open $filePath for reading.");
}