php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #81157 Wrong documentation for \Ds\Set::__construct
Submitted: 2021-06-17 14:55 UTC Modified: 2021-06-17 15:15 UTC
From: enumag at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
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: enumag at gmail dot com
New email:
PHP Version: OS:

 

 [2021-06-17 14:55 UTC] enumag at gmail dot com
Description:
------------
php.net/manual/en/ds-set.construct.php

The method is documented as:

public Ds\Set::__construct ( mixed ...$values )

But it is actually:

public Ds\Set::__construct ([ mixed $values ])

The php-ds polyfill has it correct: https://github.com/php-ds/polyfill/blob/5652e5870b20713ebe02182050df98aee5856d5b/src/Set.php#L37

I tried with the actual extension as well.

Also reported in the ds extension repo as I'm unsure who maintains the docs: https://github.com/php-ds/ext-ds/issues/167


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-17 15:15 UTC] cmb@php.net
-Status: Open +Status: Verified -Type: Bug +Type: Documentation Problem
 [2021-06-17 15:33 UTC] git@php.net
Automatic comment on behalf of cmb69
Revision: https://github.com/php/doc-en/commit/9e3e335d2f2319d11323185445fe91fb40352fe9
Log: Fix #81157: Wrong documentation for \Ds\Set::__construct
 [2021-06-17 15:33 UTC] git@php.net
-Status: Verified +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 01 01:01:28 2024 UTC