php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #60474 [DE] Method signature of Exception::getCode doesn't match EN
Submitted: 2011-12-08 16:25 UTC Modified: 2011-12-08 16:47 UTC
From: hairmare at purplehaze dot ch Assigned: nikic (profile)
Status: Closed Package: Translation problem
PHP Version: 5.3.8 OS:
Private report: No CVE-ID: None
 [2011-12-08 16:25 UTC] 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.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-08 16:43 UTC] 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:47 UTC] nikic@php.net
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!
 [2011-12-08 16:47 UTC] nikic@php.net
-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 -Assigned To: +Assigned To: nikic
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 18:01:30 2024 UTC