Skip to content

Commit 854d454

Browse files
committed
Fix PHPStan Offset might not exist
1 parent dd51962 commit 854d454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Reader/Word2007/AbstractPart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ private function readFormField(XMLReader $xmlReader, array $domNodes, $parent, $
368368
}
369369
}
370370
$formField->setEntries($listEntries);
371-
if (null !== $formField->getValue()) {
371+
if (null !== $formField->getValue() && isset($listEntries[$formField->getValue()])) {
372372
$formField->setText($listEntries[$formField->getValue()]);
373373
}
374374

0 commit comments

Comments
 (0)