From e623e624ab8e893f27c7985b724fa9f927cf2f84 Mon Sep 17 00:00:00 2001 From: rahul Date: Sun, 17 Sep 2023 15:57:34 +0530 Subject: [PATCH] correction: removed extra argument Signed-off-by: rahul --- src/CsvFileHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CsvFileHandler.php b/src/CsvFileHandler.php index 9d7710e..4f8cded 100644 --- a/src/CsvFileHandler.php +++ b/src/CsvFileHandler.php @@ -65,7 +65,7 @@ public function findAndReplaceInCsv( try { $count = 0; - foreach ($this->getRows($filename, $headers) as $row) { + foreach ($this->getRows($filename) as $row) { $count += (!$column) ? $this->replaceKeywordInRow($row, $keyword, $replace) : $this->replaceKeywordInColumn($row, $column, $keyword, $replace);