Skip to content

Commit

Permalink
fix: temp files
Browse files Browse the repository at this point in the history
  • Loading branch information
aVadim483 committed May 19, 2024
1 parent 9a3a607 commit e6f7252
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FastExcelWriter/Sheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -2509,7 +2509,7 @@ public function writeDataBegin(Writer $writer)
return;
}

$sheetFileName = $writer->makeTempFile('sheetData');
$sheetFileName = $writer->makeTempFile($this->index . ':sheetData');
$this->setFileWriter($writer->makeFileWriter($sheetFileName));

$this->fileWriter->write('<sheetData>');
Expand Down
2 changes: 1 addition & 1 deletion src/FastExcelWriter/Writer/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ protected function _writeDrawingFile(string $entry, array $imageList, array $cha
*/
protected function _writeSheetHead(Sheet $sheet): FileWriter
{
$fileWriter = $this->makeFileWriter($this->makeTempFile('sheetHead'));
$fileWriter = $this->makeFileWriter($this->makeTempFile($sheet->index . ':sheetHead'));
$fileWriter->write('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' . "\n");
$nameSpaces = [
'xmlns' => 'http://schemas.openxmlformats.org/spreadsheetml/2006/main',
Expand Down

0 comments on commit e6f7252

Please sign in to comment.