[DOC-CVS] [doc-en] master: Fix typo add ref `warn.deprecated.feature-8-1-0` (#4998)

[email protected] (Mikhail Alferov via GitHub)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Mikhail Alferov (mmalferov)
Committer: GitHub (web-flow)
Pusher: kamil-tekiela
Date: 2025-11-15T02:15:02Z

Commit: https://github.com/php/doc-en/commit/69fe083419b7888f6d424595771d54fe2d850d9d
Raw diff: https://github.com/php/doc-en/commit/69fe083419b7888f6d424595771d54fe2d850d9d.diff

Fix typo add ref `warn.deprecated.feature-8-1-0` (#4998)

Changed paths:
  M  language-snippets.ent
  M  reference/pdo/constants.fetch-modes.xml


Diff:

diff --git a/language-snippets.ent b/language-snippets.ent
index 6cce6a0e2e0a..a9acd180d3be 100644
--- a/language-snippets.ent
+++ b/language-snippets.ent
@@ -346,6 +346,11 @@ xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
 <emphasis>DEPRECATED</emphasis> as of PHP 8.0.0. Relying on this function
 is highly discouraged.</simpara></warning>'>
 
+<!ENTITY warn.deprecated.feature-8-1-0 '<warning
+xmlns="http://docbook.org/ns/docbook"><simpara>This feature has been
+<emphasis>DEPRECATED</emphasis> as of PHP 8.1.0. Relying on this feature
+is highly discouraged.</simpara></warning>'>
+
 <!ENTITY warn.deprecated.function-8-1-0 '<warning
 xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
 <emphasis>DEPRECATED</emphasis> as of PHP 8.1.0. Relying on this function
diff --git a/reference/pdo/constants.fetch-modes.xml b/reference/pdo/constants.fetch-modes.xml
index 68f4fed2c118..97a231b655da 100644
--- a/reference/pdo/constants.fetch-modes.xml
+++ b/reference/pdo/constants.fetch-modes.xml
@@ -865,12 +865,7 @@ object(TestEntity)#3 (4) {
 
  <section xml:id="pdo.constants.fetch-serialize" annotations="chunk:false">
   <title>PDO::FETCH_SERIALIZE (<type>int</type>)</title>
-  <warning>
-   <simpara>
-    This feature has been <emphasis>DEPRECATED</emphasis> as of PHP 8.1.0.
-    Relying on this feature is highly discouraged.
-   </simpara>
-  </warning>
+  &warn.deprecated.feature-8-1-0;
   <simpara>
    This fetch mode can only be used combined with
    <constant>PDO::FETCH_CLASS</constant> (and
@@ -912,14 +907,16 @@ class TestEntity implements Serializable
             . (isset($this->name) ? 'Yes' : 'No') . "\n";
     }
 
-    public function serialize() {
+    public function serialize()
+    {
         return join(
             "|",
             [$this->userid, $this->name, $this->country, $this->referred_by_userid]
         );
     }
 
-    public function unserialize(string $data) {
+    public function unserialize(string $data)
+    {
         $parts = explode("|", $data);
         $this->userid = (int) $parts[0];
         $this->name = $parts[1];
@@ -946,7 +943,7 @@ $origObj->referred_by_userid = null;
 $insert = $db->prepare("INSERT INTO serialize (sdata) VALUES (:sdata)");
 $insert->execute(['sdata' => $origObj->serialize()]);
 
-print "\nRetrieve result:\n"
+print "\nRetrieve result:\n";
 $query = "SELECT sdata FROM serialize";
 $stmt = $db->query($query);
 // NOTE: Constructor is never called!
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.