[DOC-CVS] [phd] master: Fix deprecated null array offset usage in Reader_Partial

[email protected] (lacatoire via Gina Peter Banyard)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
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])) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.