[DOC-CVS] [phd] master: Replace deprecated SplObjectStorage::detach() with offsetUnset()

[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/34f18a654beea9d6abe212ee522fbc2b9363775d
Raw diff: https://github.com/php/phd/commit/34f18a654beea9d6abe212ee522fbc2b9363775d.diff

Replace deprecated SplObjectStorage::detach() with offsetUnset()

Changed paths:
  M  phpdotnet/phd/TestRender.php


Diff:

diff --git a/phpdotnet/phd/TestRender.php b/phpdotnet/phd/TestRender.php
index a0f82f21..95cc79e9 100644
--- a/phpdotnet/phd/TestRender.php
+++ b/phpdotnet/phd/TestRender.php
@@ -17,7 +17,7 @@ public function run() {
             $this->attach($this->index);
             $this->reader->open($this->config->xmlFile);
             $this->execute($this->reader);
-            $this->detach($this->index);
+            $this->offsetUnset($this->index);
         }
 
         if ($this->format !== null) {
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.