| @@ -202,9 +202,9 @@ | ||
| 202 | 202 | private function readEnding(): string |
| 203 | 203 | { |
| 204 | 204 | $meta = stream_get_meta_data($this->fileHandle); |
| 205 | 205 | // Phpstan incorrectly flags following line for Php8.2-, corrected in 8.3 |
| 206 | - $filename = $meta['uri']; //@phpstan-ignore-line | |
| 206 | + $filename = $meta['uri']; //@phpstan-ignore offsetAccess.notFound (fixable when Php < 8.3 is no longer possible) | |
| 207 | 207 | |
| 208 | 208 | clearstatcache(true, $filename); |
| 209 | 209 | $size = (int) filesize($filename); |
| 210 | 210 | if ($size === 0) { |
| @@ -370,15 +370,15 @@ | ||
| 370 | 370 | } |
| 371 | 371 | $sheet->setCellValue($column . $row, $attributeArray['data-value'] ?? $cellContent); |
| 372 | 372 | $sheet->setHyperlink($column . $row, $hyperlink); |
| 373 | 373 | } |
| 374 | - $this->dataArray[$row][$column] = $cellContent; // @phpstan-ignore-line | |
| 374 | + $this->dataArray[$row][$column] = $cellContent; // @phpstan-ignore property.deprecated (fixable when $this.data is removed) | |
| 375 | 375 | } |
| 376 | 376 | } else { |
| 377 | 377 | // We have a Rich Text run. |
| 378 | 378 | // I don't actually see any way to reach this line. |
| 379 | 379 | // TODO |
| 380 | - // @phpstan-ignore-next-line | |
| 380 | + // @phpstan-ignore property.deprecated (fixable when $this->data is removed) | |
| 381 | 381 | $this->dataArray[$row][$column] = 'RICH TEXT: ' . StringHelper::convertToString($cellContent); // @codeCoverageIgnore |
| 382 | 382 | } |
| 383 | 383 | $cellContentx = ''; |
| 384 | 384 | } |
| @@ -775,9 +775,9 @@ | ||
| 775 | 775 | } |
| 776 | 776 | |
| 777 | 777 | protected function processDomElement(DOMNode $element, Worksheet $sheet, int &$row, string &$column, string &$cellContent): void |
| 778 | 778 | { |
| 779 | - foreach ($element->childNodes as $child) { | |
| 779 | + foreach ($element->childNodes ?? [] as $child) { | |
| 780 | 780 | if ($child instanceof DOMText) { |
| 781 | 781 | $domText = Preg::replace('/\s+/', ' ', trim($child->nodeValue ?? '')); |
| 782 | 782 | if ($domText === "\u{a0}") { |
| 783 | 783 | $domText = ''; |