Doc #75318 [Opn->Ver]: The parameter of UConverter::getAliases() is not optional

From: Date: Fri, 06 Oct 2017 14:05:39 +0000
Subject: Doc #75318 [Opn->Ver]: The parameter of UConverter::getAliases() is not optional
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15036@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75318&edit=1 ID: 75318 Updated by: cmb@php.net Reported by: fabien dot villepinte at gmail dot com Summary: The parameter of UConverter::getAliases() is not optional -Status: Open +Status: Verified Type: Documentation Problem Package: intl PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Not only the documentation is wrong, but also the reflection, see <https://3v4l.org/7Bm7N>. Previous Comments: ------------------------------------------------------------------------ [2017-10-05 13:41:18] fabien dot villepinte at gmail dot com Description: ------------ According the documentation ( http://php.net/manual/en/uconverter.getaliases.php ) the parameter $name of UConverter::getAliases() is optional, but we get a warning if we call this method with no parameter ( https://3v4l.org/ERNFW ). The parameter should be documented as mandatory. Test script: --------------- <?php var_dump(UConverter::getAliases()); Actual result: -------------- Warning: UConverter::getAliases() expects exactly 1 parameter, 0 given in /in/ERNFW on line 2 bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75318&edit=1

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