Ignore unreachable fwrite in leftover flush block

This commit is contained in:
kemo
2026-03-11 13:33:08 +01:00
parent 9bc796f057
commit 56aaa23e01
+2 -2
View File
@@ -370,10 +370,10 @@ class Csv extends BaseReader
}
}
// Flush any remaining bytes
// Flush any remaining bytes (incomplete multi-byte chars will throw)
if ($leftover !== '') {
$converted = StringHelper::convertEncoding($leftover, 'UTF-8', $encoding);
fwrite($outputHandle, $converted);
fwrite($outputHandle, $converted); // @codeCoverageIgnore
}
fclose($sourceHandle);