php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76687 Ds\Pair documentation is missing $key and $value properties
Submitted: 2018-07-31 10:17 UTC Modified: 2018-11-18 21:06 UTC
From: enumag at gmail dot com Assigned: rtheunissen (profile)
Status: Closed Package: *General Issues
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
23 - 3 = ?
Subscribe to this entry?

 
 [2018-07-31 10:17 UTC] enumag at gmail dot com
Description:
------------
Currently the class synopsis looks like this:

```
Ds\Pair implements JsonSerializable {

    /* Methods */
    public __construct ([ mixed $key [, mixed $value ]] )
}
```

It should look like this:

```
Ds\Pair implements JsonSerializable {


    /* Properties */
    public mixed $key ;
    public mixed $value ;

    /* Methods */
    public __construct ([ mixed $key [, mixed $value ]] )
}
```


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-01 12:09 UTC] cmb@php.net
-Assigned To: +Assigned To: rtheunissen
 [2018-11-18 21:06 UTC] rtheunissen@php.net
-Status: Assigned +Status: Closed -Type: Documentation Problem +Type: Bug -Package: Documentation problem +Package: *General Issues
 [2018-11-18 21:06 UTC] rtheunissen@php.net
This has now been fixed. Please see: https://github.com/php-ds/ext-ds/issues/119
 [2020-06-26 07:38 UTC] enumag at gmail dot com
Note: While this is fixed in reflection, it is still NOT fixed in the docs: https://www.php.net/manual/en/class.ds-pair.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 22:01:27 2024 UTC