From 45f079b5dd4db45676b00741bd7e9b872531fa7c Mon Sep 17 00:00:00 2001 From: Fonata Date: Fri, 2 Apr 2021 22:18:38 +0200 Subject: [PATCH] Code comment for future me: I was afraid the code would surprise users --- src/Csv.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Csv.php b/src/Csv.php index 225b76d..48c1e6d 100644 --- a/src/Csv.php +++ b/src/Csv.php @@ -612,6 +612,11 @@ class Csv { } if (empty($this->file_data)) { + /** + * @see self::keep_file_data + * Usually, _parse_string will clean this + * Instead of leaving stale data for the next parseFile call behind. + */ $this->load_data($file); }