[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] [doc-en] master: Fix markup issues in DateTime extension docs (#3327)
From: Gina Peter Banyard via GitHub <noreply () php ! net>
Date: 2024-04-22 14:18:49
Message-ID: BAqDlyWCjimygRgDbmjhYUdC8KD9faE8KuXiCPcKwVA () main ! php ! net
[Download RAW message or body]
Author: Gina Peter Banyard (Girgias)
Committer: GitHub (web-flow)
Pusher: Girgias
Date: 2024-04-22T15:18:42+01:00
Commit: https://github.com/php/doc-en/commit/ac83abe55f4da019036de5ec14400d674fa3f9f5
Raw diff: https://github.com/php/doc-en/commit/ac83abe55f4da019036de5ec14400d674fa3f9f5.diff
Fix markup issues in DateTime extension docs (#3327)
Changed paths:
M reference/datetime/dateperiod.xml
M reference/datetime/formats.xml
Diff:
diff --git a/reference/datetime/dateperiod.xml b/reference/datetime/dateperiod.xml
index fd508a9cb783..b477839f0954 100644
--- a/reference/datetime/dateperiod.xml
+++ b/reference/datetime/dateperiod.xml
@@ -154,7 +154,7 @@
<constant>DatePeriod::INCLUDE_END_DATE</constant>.
</para>
<para>
- <example>
+ <informalexample>
<programlisting role="php">
<![CDATA[<?php
$start = new DateTime('2018-12-31 00:00:00');
@@ -188,7 +188,7 @@ echo $period->recurrences, "\n";
1
0
</screen>
- </example>
+ </informalexample>
</para>
<para>
See also <methodname>DatePeriod::getRecurrences</methodname>.
diff --git a/reference/datetime/formats.xml b/reference/datetime/formats.xml
index 52e6a1e8f939..21d57cc4f074 100644
--- a/reference/datetime/formats.xml
+++ b/reference/datetime/formats.xml
@@ -78,7 +78,7 @@
<listitem>
<para>
There is an additional check if an invalid date is provided:
- <example>
+ <informalexample>
<programlisting role="php">
<![CDATA[
<?php
@@ -96,7 +96,7 @@ array(1) {
}
]]>
</screen>
- </example>
+ </informalexample>
</para>
</listitem>
<listitem>
@@ -104,7 +104,7 @@ array(1) {
It is already possible to handle the edge cases, but then
<function>DateTimeImmutable::createFromFormat</function> must be used
while supplying the correct format.
- <example>
+ <informalexample>
<programlisting role="php">
<![CDATA[
<?php
@@ -125,7 +125,7 @@ object(DateTimeImmutable)#1 (3) {
}
]]>
</screen>
- </example>
+ </informalexample>
</para>
</listitem>
</orderedlist>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic