Skip to content

Commit cc8a8f2

Browse files
committed
Deprecated non-canonical cast names
1 parent 1987020 commit cc8a8f2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

language/types/integer.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ var_dump(round(25/7)); // float(4)
168168
<simpara>
169169
See also <link linkend="language.types.type-juggling">Type Juggling</link>.
170170
</simpara>
171+
172+
<caution>
173+
<simpara>
174+
The <literal>(integer)</literal> cast has been deprecated as of PHP 8.5.0.
175+
</simpara>
176+
</caution>
171177

172178
<sect3 xml:id="language.types.integer.casting.from-boolean">
173179
<title>From <link linkend="language.types.boolean">booleans</link></title>

language/types/type-juggling.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ var_dump($bar);
324324
<literal>(binary)</literal> is an alias of the <literal>(string)</literal> cast.
325325
<literal>(double)</literal> and <literal>(real)</literal> are aliases of
326326
the <literal>(float)</literal> cast.
327-
These casts do not use the canonical type name and are not recommended.
327+
These casts do not use the canonical type name and are deprecated as of PHP 8.5.0.
328328
</para>
329329
</note>
330330

0 commit comments

Comments
 (0)