[DOC-CVS] [doc-en] master: Rephrase warning to prevent weird rendering issue

[email protected] (Gina Peter Banyard)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Gina Peter Banyard (Girgias)
Date: 2025-11-04T05:22:30Z

Commit: https://github.com/php/doc-en/commit/0cf48a5a4869bd8b42f84e7032076756cde6a474
Raw diff: https://github.com/php/doc-en/commit/0cf48a5a4869bd8b42f84e7032076756cde6a474.diff

Rephrase warning to prevent weird rendering issue

Changed paths:
  M  reference/datetime/dateperiod/construct.xml


Diff:

diff --git a/reference/datetime/dateperiod/construct.xml b/reference/datetime/dateperiod/construct.xml
index dcbf7fa328d7..ff475f023385 100644
--- a/reference/datetime/dateperiod/construct.xml
+++ b/reference/datetime/dateperiod/construct.xml
@@ -24,14 +24,17 @@
    <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
   </constructorsynopsis>
   <warning>
+   <simpara>
+    The following constructor variant has been deprecated:
+   </simpara>
    <constructorsynopsis role="DatePeriod">
     <modifier>public</modifier> <methodname>DatePeriod::__construct</methodname>
     <methodparam><type>string</type><parameter>isostr</parameter></methodparam>
     <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
    </constructorsynopsis>
    <simpara>
-    This variant of the constructor has been deprecated, use
-    <methodname>DatePeriod::createFromISO8601String</methodname> instead.
+    Instead the <methodname>DatePeriod::createFromISO8601String</methodname>
+    static factory method should be used.
    </simpara>
   </warning>
   <para>
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.