[doc-en] master: Type juggling: fix incorrect deprecation version info for (real) (#4929)
| From: | Juliette via GitHub | Date: | Wed, 15 Oct 2025 08:49:11 +0000 |
| Subject: | [doc-en] master: Type juggling: fix incorrect deprecation version info for (real) (#4929) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-22804@lists.php.net to get a copy of this message | ||
Author: Juliette (jrfnl)
Committer: GitHub (web-flow)
Pusher: TimWolla
Date: 2025-10-15T10:49:08+02:00
Commit: https://github.com/php/doc-en/commit/3a97501ec4b56ed700facd0163d11faadc58663d
Raw diff: https://github.com/php/doc-en/commit/3a97501ec4b56ed700facd0163d11faadc58663d.diff
Type juggling: fix incorrect deprecation version info for (real) (#4929)
Page: https://www.php.net/manual/en/language.types.type-juggling.php#language.types.typecasting
The
(real) cast was deprecated in PHP 7.4 and removed in PHP 8.0.
Refs:
* https://wiki.php.net/rfc/deprecations_php_7_4#the_real_type
* https://www.php.net/manual/en/migration74.deprecated.php#migration74.deprecated.core.real
Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
Changed paths:
M language/types/type-juggling.xml
Diff:
diff --git a/language/types/type-juggling.xml b/language/types/type-juggling.xml
index 0c87f7200554..3be3b9b4a43f 100644
--- a/language/types/type-juggling.xml
+++ b/language/types/type-juggling.xml
@@ -330,7 +330,8 @@ var_dump($bar);
<warning>
<simpara>
- The <literal>(real)</literal> cast alias has been deprecated as of PHP 8.0.0.
+ The <literal>(real)</literal> cast alias has been deprecated as of PHP 7.4.0
+ and removed as of PHP 8.0.0.
</simpara>
</warning>