From a2170c81f194885f244d31c39f791b61e93b49d4 Mon Sep 17 00:00:00 2001 From: zigzagdev Date: Thu, 28 May 2026 20:39:19 +0900 Subject: [PATCH] fix: Use STREAM_FILTER_WRITE instead of STREAM_FILTER_READ in prependStreamFilterOnWrite --- src/AbstractCsv.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AbstractCsv.php b/src/AbstractCsv.php index 7209fed2..eef20803 100644 --- a/src/AbstractCsv.php +++ b/src/AbstractCsv.php @@ -468,7 +468,7 @@ public function prependStreamFilterOnWrite(string $filtername, mixed $params = n { $this->document instanceof Stream || throw UnavailableFeature::dueToUnsupportedStreamFilterApi(get_class($this->document)); - $this->document->prependFilter($filtername, STREAM_FILTER_READ, $params); + $this->document->prependFilter($filtername, STREAM_FILTER_WRITE, $params); $this->stream_filters[$filtername] = true; $this->resetProperties(); $this->input_bom = null;