diff --git a/src/Csv/CsvReader.php b/src/Csv/CsvReader.php index 00a3507..494391c 100644 --- a/src/Csv/CsvReader.php +++ b/src/Csv/CsvReader.php @@ -13,8 +13,7 @@ class CsvReader private readonly string $filePath ) { if (!file_exists($this->filePath)) { - $handle = fopen($this->filePath, 'wb'); - fclose($handle); + throw new RuntimeException('Input file does not exist.'); } }