Skip to content

Commit 7913e8b

Browse files
authored
SUNFUNCS_* constants are deprecated as of PHP 8.4.0 (#4006)
Improve grouping and add a warning for the whole group
1 parent 117340b commit 7913e8b

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

reference/datetime/constants.xml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,27 @@
33
<appendix xml:id="datetime.constants" xmlns="http://docbook.org/ns/docbook">
44
&reftitle.constants;
55
<para>
6-
The <link linkend="datetimeinterface.constants.types"><literal>DATE_*</literal>
7-
constants</link> are defined and they offer standard
6+
The <constant>DATE_<replaceable>*</replaceable></constant>
7+
constants are defined and offer standard
88
date representations, which can be used along with the date format functions
99
(like <function>date</function>).
1010
</para>
11-
<para>
12-
Following constants specify a format returned by
13-
functions <function>date_sunrise</function> and
14-
<function>date_sunset</function>.
15-
</para>
11+
1612
<variablelist>
13+
<title>
14+
Available <parameter>returnFormat</parameter> for
15+
<function>date_sunrise</function> and
16+
<function>date_sunset</function>
17+
</title>
18+
19+
<warning>
20+
<simpara>
21+
These constants are deprecated as of PHP 8.4.0.
22+
The corresponding <function>date_sunrise</function> and
23+
<function>date_sunset</function> functions are deprecated as of PHP 8.1.0.
24+
</simpara>
25+
</warning>
26+
1727
<varlistentry xml:id="constant.sunfuncs-ret-timestamp">
1828
<term>
1929
<constant>SUNFUNCS_RET_TIMESTAMP</constant>

0 commit comments

Comments
 (0)