Doc #60474 [Opn->Csd]: [DE] Method signature of Exception::getCode doesn't match EN

From: Date: Thu, 08 Dec 2011 16:47:04 +0000
Subject: Doc #60474 [Opn->Csd]: [DE] Method signature of Exception::getCode doesn't match EN
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7628@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60474&edit=1 ID: 60474 Updated by: nikic@php.net Reported by: hairmare at purplehaze dot ch -Summary: method signature of Exception::getCode different in en and de +Summary: [DE] Method signature of Exception::getCode doesn't match EN -Status: Open +Status: Closed Type: Documentation Problem Package: Translation problem PHP Version: 5.3.8 -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. The mixed type is correct as subclasses of Exception can return different types. Thanks for helping! Previous Comments: ------------------------------------------------------------------------ [2011-12-08 16:43:34] nikic@php.net Automatic comment from SVN on behalf of nikic Revision: http://svn.php.net/viewvc/?view=revision&revision=320677 Log: Fix Doc Bug #60474: method signature of Exception::getCode different in en and de ------------------------------------------------------------------------ [2011-12-08 16:25:37] hairmare at purplehaze dot ch Description: ------------ The signature of the Exception::getCode Method differs from the english translation in the german one. On http://php.net/manual/en/class.exception.php the signature is lke so: final public int Exception::getCode ( void ) On http://php.net/manual/de/class.exception.php the signature is like so: final public mixed Exception::getCode ( void ) The return value of the method is given as int in the english version and mixed in the german version. I believe that it should be int in both but wasn't able to verify that in the code. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60474&edit=1

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