We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 916b688 commit 2c927b1Copy full SHA for 2c927b1
src/PhpSpreadsheet/Reader/Xlsx/Hyperlinks.php
@@ -41,7 +41,7 @@ private function setHyperlink(SimpleXMLElement $hyperlink, Worksheet $worksheet)
41
foreach (Coordinate::extractAllCellReferencesInRange($hyperlink['ref']) as $cellReference) {
42
$cell = $worksheet->getCell($cellReference);
43
if (isset($linkRel['id'])) {
44
- $hyperlinkUrl = $this->hyperlinks[(string) $linkRel['id']];
+ $hyperlinkUrl = $this->hyperlinks[(string) $linkRel['id']] ?? null;
45
if (isset($hyperlink['location'])) {
46
$hyperlinkUrl .= '#' . (string) $hyperlink['location'];
47
}
0 commit comments