From c248d555f6481dab1df80405b1cb46971612262c Mon Sep 17 00:00:00 2001 From: madflow Date: Thu, 21 Dec 2017 08:59:08 +0100 Subject: [PATCH] wrong parameter count in method call --- src/Spout/Reader/XLSX/Creator/InternalEntityFactory.php | 7 ++++++- src/Spout/Reader/XLSX/Reader.php | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Spout/Reader/XLSX/Creator/InternalEntityFactory.php b/src/Spout/Reader/XLSX/Creator/InternalEntityFactory.php index 1ebc22f..306f4fc 100644 --- a/src/Spout/Reader/XLSX/Creator/InternalEntityFactory.php +++ b/src/Spout/Reader/XLSX/Creator/InternalEntityFactory.php @@ -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); } diff --git a/src/Spout/Reader/XLSX/Reader.php b/src/Spout/Reader/XLSX/Reader.php index 2e8815e..689f6e2 100644 --- a/src/Spout/Reader/XLSX/Reader.php +++ b/src/Spout/Reader/XLSX/Reader.php @@ -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."); }