Bug->Doc #81157 [Opn->Ver]: Wrong documentation for \Ds\Set::__construct
Edit report at https://bugs.php.net/bug.php?id=81157&edit=1
ID: 81157
Updated by: cmb@php.net
Reported by: enumag at gmail dot com
Summary: Wrong documentation for \Ds\Set::__construct
-Status: Open
+Status: Verified
-Type: Bug
+Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2021-06-17 14:55:26] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81157&edit=1
Thread (3 messages)