From 572b11e11cf266b806645de1e922ac4242c70db0 Mon Sep 17 00:00:00 2001 From: Darshan Date: Thu, 1 May 2025 11:05:29 +0530 Subject: [PATCH] fix: documents count. --- src/Migration/Sources/CSV.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Migration/Sources/CSV.php b/src/Migration/Sources/CSV.php index 75c489da..aee145d9 100644 --- a/src/Migration/Sources/CSV.php +++ b/src/Migration/Sources/CSV.php @@ -67,7 +67,6 @@ public function report(array $resources = []): array $file->seek(PHP_INT_MAX); $rowCount = max(0, $file->key()); - $rowCount = $rowCount > 0 ? $rowCount - 1 : 0; $report[Resource::TYPE_DOCUMENT] = $rowCount;