Doc #78677 [Ver->Csd]: Parameter Type Widening not properly documented
| From: | tiffany@php.net | Date: | Thu, 12 Mar 2020 15:01:15 +0000 |
| Subject: | Doc #78677 [Ver->Csd]: Parameter Type Widening not properly documented | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-17397@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78677&edit=1
ID: 78677
Updated by: tiffany@php.net
Reported by: pavel at bunaev dot ru
Summary: Parameter Type Widening not properly documented
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: Class/Object related
Operating System: 18.04.1-Ubuntu
PHP Version: 7.2.23
Assigned To: tiffany
Block user comment: N
Private report: N
New Comment:
The fix for this bug has been committed.
If you are still experiencing this bug, try to check out latest source from https://github.com/php/php-src and re-test.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2020-03-12 14:56:09] tiffany@php.net
This bug is fixed with the recent revision:
http://svn.php.net/viewvc?view=revision&revision=349390
------------------------------------------------------------------------
[2019-10-17 14:20:22] sjon@php.net
reopening as a documentation bug
------------------------------------------------------------------------
[2019-10-17 10:53:51] pavel at bunaev dot ru
Indeed, this is not a bug.
Somehow I missed this point in the documentation :(
I apologize for wasting your time in vain
Thanks for the clarification.
------------------------------------------------------------------------
[2019-10-17 09:12:32] cmb@php.net
Well, there is a note in the Interfaces section[1], but this is
only correct for PHP 7.2 and up (and even too general for 7.2),
and it doesn't cater to inheritance in general. It seems to me
that this should be documented in the Inheritance section[2]; we
could link to that section from other parts of the manual where
appropriate.
[1] <https://www.php.net/manual/en/language.oop5.interfaces.php>
[2] <https://www.php.net/manual/en/language.oop5.inheritance.php>
------------------------------------------------------------------------
[2019-10-17 08:05:43] sjon@php.net
@cmb shouldn't this functionality also be documented on https://www.php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration
?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=78677
--
Edit this bug report at https://bugs.php.net/bug.php?id=78677&edit=1