php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #80504 [ZH] Documentation ERROR in `Exception::getCode `
Submitted: 2020-12-11 04:44 UTC Modified: 2020-12-28 05:47 UTC
From: thomasjiao at vip dot qq dot com Assigned: jhdxr (profile)
Status: Closed Package: Translation problem
PHP Version: 7.4.13 OS: Windows
Private report: No CVE-ID: None
 [2020-12-11 04:44 UTC] thomasjiao at vip dot qq dot com
Description:
------------
---
From manual page: https://php.net/exception.getcode
---
In the Chinese documentation ``, `Exception::getCode ` shows that it will return type `int`, while in other languages the return type is `mixed`.

Something here should be wrong, the Chinese documentation should be fixed any way.

Many thanks to you PHP team. 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-12-11 06:13 UTC] requinix@php.net
-Summary: Documentation ERROR in `Exception::getCode ` +Summary: [ZH] Documentation ERROR in `Exception::getCode ` -Status: Open +Status: Verified -Package: Documentation problem +Package: Class/Object related
 [2020-12-11 13:04 UTC] cmb@php.net
-Package: Class/Object related +Package: Translation problem
 [2020-12-28 05:47 UTC] jhdxr@php.net
Automatic comment from SVN on behalf of jhdxr
Revision: http://svn.php.net/viewvc/?view=revision&revision=352234
Log: fix #80504  sync with en version
 [2020-12-28 05:47 UTC] jhdxr@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: jhdxr
 [2020-12-28 05:47 UTC] jhdxr@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.


 [2020-12-28 05:50 UTC] phpdocbot@php.net
Automatic comment on behalf of jhdxr
Revision: http://git.php.net/?p=doc/zh.git;a=commit;h=90cfb27070b05c304df402d466bcddb0111129d6
Log: fix #80504  sync with en version
 [2020-12-30 10:47 UTC] nikic@php.net
Automatic comment on behalf of jhdxr
Revision: http://git.php.net/?p=doc/zh.git;a=commit;h=51d5438ab8c2d5a5f62707fc07bd6acf79b958e1
Log: fix #80504  sync with en version
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 01 18:03:35 2021 UTC