wrong parameter count in method call

This commit is contained in:
madflow 2017-12-21 08:59:08 +01:00 committed by Adrien Loison
parent 4c7adbb33f
commit 88eee3be72
2 changed files with 11 additions and 2 deletions

View File

@ -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);
}

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.");
}