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
5 changes: 2 additions & 3 deletions language/types/integer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@ var_dump(round(25/7)); // float(4)
<title>Converting to integer</title>

<simpara>
To explicitly convert a value to <type>int</type>, use either the
<literal>(int)</literal> or <literal>(integer)</literal> casts. However, in
most cases the cast is not needed, since a value will be automatically
To explicitly convert a value to <type>int</type>, use the <literal>(int)</literal> cast.
However, in most cases the cast is not needed, since a value will be automatically
converted if an operator, function or control structure requires an
<type>int</type> argument. A value can also be converted to
<type>int</type> with the <function>intval</function> function.
Expand Down
6 changes: 3 additions & 3 deletions language/types/type-juggling.xml
Original file line number Diff line number Diff line change
Expand Up @@ -317,16 +317,16 @@ var_dump($bar);
<member><literal>(unset)</literal> - cast to <type>NULL</type></member>
</simplelist>

<note>
<warning>
<para>
<literal>(integer)</literal> is an alias of the <literal>(int)</literal> cast.
<literal>(boolean)</literal> is an alias of the <literal>(bool)</literal> cast.
<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>
</warning>

<warning>
<simpara>
Expand Down