[DOC-CVS] [doc-en] master: Fix exception name in createFromDateString documentation (#5521)

[email protected] (Mikko Pesari via GitHub) Sun, 3 May 2026 13:20:00 +0000
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Mikko Pesari (mpesari)
Committer: GitHub (web-flow)
Pusher: TimWolla
Date: 2026-05-03T15:19:57+02:00

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

Fix exception name in createFromDateString documentation (#5521)

Ref:
- https://github.com/php/php-src/blob/master/ext/date/tests/DateInterval_createFromDateString_broken.phpt
- https://3v4l.org/EF631

Changed paths:
  M  reference/datetime/dateinterval/createfromdatestring.xml


Diff:

diff --git a/reference/datetime/dateinterval/createfromdatestring.xml b/reference/datetime/dateinterval/createfromdatestring.xml
index 0ec5291fc22b..2c461344bdb4 100644
--- a/reference/datetime/dateinterval/createfromdatestring.xml
+++ b/reference/datetime/dateinterval/createfromdatestring.xml
@@ -62,7 +62,7 @@
   &reftitle.errors;
   <para>
    Object Oriented API only: If an invalid Date/Time string is passed,
-   <exceptionname>DateMalformedStringException</exceptionname> is thrown.
+   <exceptionname>DateMalformedIntervalStringException</exceptionname> is thrown.
   </para>
  </refsect1>
 
@@ -81,7 +81,7 @@
       <entry>8.3.0</entry>
       <entry>
        <methodname>DateInterval::createFromDateString</methodname> now throws
-       <exceptionname>DateMalformedStringException</exceptionname> if an
+       <exceptionname>DateMalformedIntervalStringException</exceptionname> if an
        invalid string is passed.  Previously, it returned <literal>false</literal>,
        and a warning was emitted.
        <function>date_interval_create_from_date_string</function> has not been