[phd] master: Fix deprecated null array offset usage in Reader_Partial
| From: | lacatoire via Gina Peter Banyard | Date: | Tue, 03 Feb 2026 18:37:54 +0000 |
| Subject: | [phd] master: Fix deprecated null array offset usage in Reader_Partial | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-23117@lists.php.net to get a copy of this message | ||
Author: lacatoire (lacatoire)
Committer: Gina Peter Banyard (Girgias)
Date: 2026-02-03T18:35:36Z
Commit: https://github.com/php/phd/commit/f662181225f097aee4df42ae77ac8b8d78a8f0a6
Raw diff: https://github.com/php/phd/commit/f662181225f097aee4df42ae77ac8b8d78a8f0a6.diff
Fix deprecated null array offset usage in Reader_Partial
Changed paths:
M phpdotnet/phd/Reader/Partial.php
Diff:
diff --git a/phpdotnet/phd/Reader/Partial.php b/phpdotnet/phd/Reader/Partial.php
index 6ff1d631..84b341db 100644
--- a/phpdotnet/phd/Reader/Partial.php
+++ b/phpdotnet/phd/Reader/Partial.php
@@ -31,7 +31,7 @@ public function read(): bool {
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])) {