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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: enumag at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 07:00:02 2026 UTC