|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51750 Add ()'s when rendering methodname elements
Submitted: 2010-05-05 16:59 UTC Modified: 2010-07-02 20:01 UTC
From: Assigned: bjori (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:
36 + 50 = ?
Subscribe to this entry?

 [2010-05-05 16:59 UTC]
<methodname> elements are rendered without parentheses on the end "()".  It would be nice if they were.  Several people on the php-doc list agree.

I am guessing the parentheses are not added currently because we don't want them added inside <methodsynopsis> -- meaning "Foo::Bar() (string $string)" would look silly.  So PhD needs to add "()" only when not in a methodsynopsis.

Test script:

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-07-02 20:00 UTC]
Automatic comment from SVN on behalf of bjori
Log: Fixed bug#51750 (Add ()'s when rendering methodname elements)
 [2010-07-02 20:01 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: bjori
 [2010-07-02 20:01 UTC]
This bug has been fixed in SVN. Since the websites are not directly
updated from the SVN server, the fix might need some time to spread
across the globe to all mirror sites, including itself.

Thank you for the report, and for helping us make better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Mar 02 10:01:28 2024 UTC