Skip to content

SUNFUNCS_* constants are deprecated as of PHP 8.4.0 #4006

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions reference/datetime/constants.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,27 @@
<appendix xml:id="datetime.constants" xmlns="http://docbook.org/ns/docbook">
&reftitle.constants;
<para>
The <link linkend="datetimeinterface.constants.types"><literal>DATE_*</literal>
constants</link> are defined and they offer standard
The <constant>DATE_<replaceable>*</replaceable></constant>
constants are defined and offer standard
date representations, which can be used along with the date format functions
(like <function>date</function>).
</para>
<para>
Following constants specify a format returned by
functions <function>date_sunrise</function> and
<function>date_sunset</function>.
</para>

<variablelist>
<title>
Available <parameter>returnFormat</parameter> for
<function>date_sunrise</function> and
<function>date_sunset</function>
</title>

<warning>
<simpara>
These constants are deprecated as of PHP 8.4.0.
The corresponding <function>date_sunrise</function> and
<function>date_sunset</function> functions are deprecated as of PHP 8.1.0.
</simpara>
</warning>

<varlistentry xml:id="constant.sunfuncs-ret-timestamp">
<term>
<constant>SUNFUNCS_RET_TIMESTAMP</constant>
Expand Down