mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-31 04:28:51 +00:00
Ignore unreachable fwrite in leftover flush block
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user