Bug #79898 [Asn]: WeakReference constructor should be documented as private
| From: | cmb@php.net | Date: | Sun, 26 Jul 2020 13:24:34 +0000 |
| Subject: | Bug #79898 [Asn]: WeakReference constructor should be documented as private | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-228230@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79898&edit=1
ID: 79898
Updated by: cmb@php.net
Reported by: michael dot vorisek at email dot cz
Summary: WeakReference constructor should be documented as
private
Status: Assigned
Type: Bug
Package: *General Issues
PHP Version: 7.4.8
Assigned To: krakjoe
Block user comment: N
Private report: N
New Comment:
> Not sure why it's public and throws an exception when called
Perhaps to provide a more useful error message ("use ::create()
instead").
Previous Comments:
------------------------------------------------------------------------
[2020-07-25 14:19:02] requinix@php.net
The constructor is not private.
Not sure why it's public and throws an exception when called... @krakjoe?
------------------------------------------------------------------------
[2020-07-25 13:43:39] michael dot vorisek at email dot cz
Description:
------------
like Closure constructor
is there a git repo to submit PRs like this to?
Test script:
---------------
-
Expected result:
----------------
-
Actual result:
--------------
-
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79898&edit=1