1
0
mirror of https://github.com/php/phd.git synced 2026-03-23 22:52:05 +01:00

Fix deprecated null array offset usage in Reader_Partial

This commit is contained in:
lacatoire
2026-01-08 17:42:06 +01:00
committed by Gina Peter Banyard
parent 07973db68b
commit f662181225

View File

@@ -31,7 +31,7 @@ class Reader_Partial extends Reader
static $arraySkip = array();
while($ret = parent::read()) {
$id = $this->getAttributeNs("id", self::XMLNS_XML);
$id = $this->getAttributeNs("id", self::XMLNS_XML) ?? '';
$currentPartial = end($arrayPartial);
$currentSkip = end($arraySkip);
if (isset($this->partial[$id])) {