Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions language/types/integer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ var_dump(round(25/7)); // float(4)
<simpara>
See also <link linkend="language.types.type-juggling">Type Juggling</link>.
</simpara>

<caution>
<simpara>
The <literal>(integer)</literal> cast has been deprecated as of PHP 8.5.0.
</simpara>
</caution>

<sect3 xml:id="language.types.integer.casting.from-boolean">
<title>From <link linkend="language.types.boolean">booleans</link></title>
Expand Down
2 changes: 1 addition & 1 deletion language/types/type-juggling.xml
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ var_dump($bar);
<literal>(binary)</literal> is an alias of the <literal>(string)</literal> cast.
<literal>(double)</literal> and <literal>(real)</literal> are aliases of
the <literal>(float)</literal> cast.
These casts do not use the canonical type name and are not recommended.
These casts do not use the canonical type name and are deprecated as of PHP 8.5.0.
</para>
</note>

Expand Down