Bug #81157 [NEW]: Wrong documentation for \Ds\Set::__construct

From: Date: Thu, 17 Jun 2021 14:55:26 +0000
Subject: Bug #81157 [NEW]: Wrong documentation for \Ds\Set::__construct
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18869@lists.php.net to get a copy of this message
From: enumag at gmail dot com Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Bug Bug description:Wrong documentation for \Ds\Set::__construct 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 bug report at https://bugs.php.net/bug.php?id=81157&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=81157&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=81157&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=81157&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=81157&r=needscript Try newer version: https://bugs.php.net/fix.php?id=81157&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=81157&r=support Expected behavior: https://bugs.php.net/fix.php?id=81157&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=81157&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=81157&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=81157&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=81157&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=81157&r=dst IIS Stability: https://bugs.php.net/fix.php?id=81157&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=81157&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=81157&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=81157&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=81157&r=mysqlcfg

« previous php.doc.bugs (#18869) next »