[DOC-CVS] [doc-en] master: reflection: Delete outdated paragraph in hasreturntype.xml (#5610)
[email protected] (Mikhail Alferov via GitHub) Sun, 14 Jun 2026 08:22:04 +0000
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Mikhail Alferov (mmalferov)
Committer: GitHub (web-flow)
Pusher: jordikroon
Date: 2026-06-14T10:22:02+02:00
Commit: https://github.com/php/doc-en/commit/c3485c8f1c57caa8ea0fc2924050a175bbc7686d
Raw diff: https://github.com/php/doc-en/commit/c3485c8f1c57caa8ea0fc2924050a175bbc7686d.diff
reflection: Delete outdated paragraph in hasreturntype.xml (#5610)
Changed paths:
M reference/reflection/reflectionfunctionabstract/hasreturntype.xml
Diff:
diff --git a/reference/reflection/reflectionfunctionabstract/hasreturntype.xml b/reference/reflection/reflectionfunctionabstract/hasreturntype.xml
index 42fc2502da54..40846a250b97 100644
--- a/reference/reflection/reflectionfunctionabstract/hasreturntype.xml
+++ b/reference/reflection/reflectionfunctionabstract/hasreturntype.xml
@@ -38,7 +38,8 @@
<![CDATA[
<?php
-function to_int($param) : int {
+function to_int($param): int
+{
return (int) $param;
}
@@ -73,11 +74,6 @@ bool(false)
</screen>
</example>
</para>
- <para>
- This is because many internal functions do not have types specified for their
- parameters or return values. It is therefore best to avoid using this
- method on built-in functions.
- </para>
</refsect1>
<refsect1 role="seealso">