|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66644 Remove ()'s when rendering methodname in constructorsynopsis/destructorsynopsis
Submitted: 2014-02-04 21:15 UTC Modified: 2015-04-16 18:58 UTC
From: Assigned: salathe (profile)
Status: Closed Package: Doc Build problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
48 + 17 = ?
Subscribe to this entry?

 [2014-02-04 21:15 UTC]
Bug #51750 (Add ()'s when rendering methodname elements) was fixed back in 2010 (thanks bjori!).

The fix involved adding parentheses after methodname, when they occur outside of methodsysnopsis. Unfortunately, this applies the parentheses inside constructorsynopsis/destructorsynopsis elements, resulting in exactly the "silly" output mentioned in that bug.  

Expected result:
Foo::__construct (string $string)

Actual result:
Foo::__construct() (string $string)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-02-04 21:21 UTC]
-Summary: Remove ()'s when rending methodname in constructorsynopsis/destrutorsynopsis +Summary: Remove ()'s when rendering methodname in constructorsynopsis/destructorsynopsis
 [2014-02-04 21:21 UTC]
[Update summary]
 [2015-04-16 18:37 UTC]
-Assigned To: +Assigned To: salathe
 [2015-04-16 18:37 UTC]
This issue appears to have been fixed in the meantime. Can you
confirm, Peter?
 [2015-04-16 18:58 UTC]
-Status: Assigned +Status: Closed
 [2015-04-16 18:58 UTC]
Whoops. This was fixed the same day I reported it.  Closing!
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Mar 26 03:03:47 2023 UTC