Doc #81157 [Ver->Csd]: Wrong documentation for \Ds\Set::__construct
Edit report at https://bugs.php.net/bug.php?id=81157&edit=1
ID: 81157
Updated by: git@php.net
Reported by: enumag at gmail dot com
Summary: Wrong documentation for \Ds\Set::__construct
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmb69
Revision: https://github.com/php/doc-en/commit/9e3e335d2f2319d11323185445fe91fb40352fe9
Log: Fix #81157: Wrong documentation for \Ds\Set::__construct
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)