php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #77702 Ds\Set::first() incorrect return type
Submitted: 2019-03-06 08:02 UTC Modified: 2019-03-11 13:27 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: demyan112rv at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Any
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: demyan112rv at gmail dot com
New email:
PHP Version: OS:

 

 [2019-03-06 08:02 UTC] demyan112rv at gmail dot com
Description:
------------
---
From manual page: https://php.net/ds-set.first
---

Return type void for this method is incorrect. 

Test script:
---------------
$set = new Ds\Set();
$set->add('foo', 'bar');
var_dump($set->first());


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-03-06 12:33 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2019-03-11 13:21 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=346995
Log: Fix #77702: Ds\Set::first() incorrect return type
 [2019-03-11 13:22 UTC] cmb@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: cmb
 [2019-03-11 13:27 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2019-03-21 19:30 UTC] salathe@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=5c1af8518bd6377209e99f3c246ffdd77880b6a9
Log: Fix #77702: Ds\Set::first() incorrect return type
 [2020-02-07 06:05 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=2efe514b78781ea44bdc373dbb659d1f5ad7cb9b
Log: Fix #77702: Ds\Set::first() incorrect return type
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 20:00:02 2026 UTC