Add Some @var Doc Blocks

This commit is contained in:
oleibman
2026-08-04 22:34:04 -07:00
parent 608da6024e
commit 7e7c5eb2c8
+6 -4
View File
@@ -342,7 +342,7 @@ class Xlsx extends BaseWriter
// Create drawing dictionary
$this->drawingHashTable->addFromSource($this->getWriterPartDrawing()->allDrawings($this->spreadSheet));
/** @var string[] */
/** @var array<string, string> */
$zipContent = [];
$richDataCount = 0;
@@ -444,7 +444,7 @@ class Xlsx extends BaseWriter
// Add worksheet relationships (drawings, ...)
for ($i = 0; $i < $this->spreadSheet->getSheetCount(); ++$i) {
// Add relationships
/** @var string[] $zipContent */
/** @var array<string, string> $zipContent */
$zipContent['xl/worksheets/_rels/sheet' . ($i + 1) . '.xml.rels'] = $this->getWriterPartRels()->writeWorksheetRelationships($this->spreadSheet->getSheet($i), ($i + 1), $this->includeCharts, $tableRef1, $zipContent);
// Add unparsedLoadedData
@@ -593,10 +593,12 @@ class Xlsx extends BaseWriter
}
// Add pass-through media files (original media that may not be in the drawing collection)
$this->addPassThroughMediaFiles($zipContent); // @phpstan-ignore argument.type (zipContent should be string[] but might be mised[])
/** @var array<string, string> $zipContent */
$this->addPassThroughMediaFiles($zipContent);
// Add preserved pivot table parts (pivot tables, caches and their rels)
$this->addPivotTableFiles($zipContent); // @phpstan-ignore argument.type
/** @var array<string, string> $zipContent */
$this->addPivotTableFiles($zipContent);
Functions::setReturnDateType($saveDateReturnType);
Calculation::getInstance($this->spreadSheet)->getDebugLog()->setWriteDebugLog($saveDebugLog);