Skip to content

Commit f662181

Browse files
lacatoireGirgias
authored andcommitted
Fix deprecated null array offset usage in Reader_Partial
1 parent 07973db commit f662181

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

phpdotnet/phd/Reader/Partial.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function read(): bool {
3131
static $arraySkip = array();
3232

3333
while($ret = parent::read()) {
34-
$id = $this->getAttributeNs("id", self::XMLNS_XML);
34+
$id = $this->getAttributeNs("id", self::XMLNS_XML) ?? '';
3535
$currentPartial = end($arrayPartial);
3636
$currentSkip = end($arraySkip);
3737
if (isset($this->partial[$id])) {

0 commit comments

Comments
 (0)